particle flame ~ ~ ~ 0.1 0.1 0.1 0.03 1 force
particle smoke ~ ~ ~ 0.1 0.1 0.1 0.05 3 force

function mrcd:ray_tick

# 3 dmg
execute as @e[distance=..1.5,tag=!unspellable,type=!player] run function items:obj/fire_ray/burn
execute positioned ~ ~-1 ~ as @e[distance=..1.5,tag=!unspellable,type=!player] run function items:obj/fire_ray/burn

kill @s[tag=mrcd_touch_edge]
