particle block slime_block ~ ~ ~ 0 0 0 0 1 force

function mrcd:ray_tick

# Gavity for the arch trajectory
execute if score @s mrcd_y0 matches -19999.. run scoreboard players remove @s mrcd_y0 50
execute if score @s mrcd_y0 matches ..-20001 run scoreboard players set @s mrcd_y0 -20000

# Y- axies bounces fine
execute if entity @s[tag=mrcd_touch_edge] run function attacks:slime_bounce/hit
scoreboard players add @e[type=!#no_interaction,type=!slime,tag=!slime_bounce,distance=..1] damage 200


execute if score @s countdown matches ..0 run tp @s ~ -5 ~
execute if score @s countdown matches ..0 run kill @s
