scoreboard players add pos mtp_high 1

# particle flame ~ ~ ~ 0 0 0 0 1 force

function mrcd:ray_tick
execute if entity @s[tag=mrcd_touch_edge] run tp @s ~ ~1 ~
execute if entity @s[tag=mrcd_touch_edge] if score pos mtp_high matches ..5 at @s run function items:obj/meteor_rain/mt_spawn_point/hit_top_find
execute if entity @s[tag=mrcd_touch_edge] if score pos mtp_high matches 6.. run kill @s
