particle enchanted_hit ~ ~ ~ .2 .2 .2 .1 5 force
particle dust 0.878 0.878 0.296 1 ~ ~ ~ .1 .1 .1 .1 3 force
particle dust 0.980 0.957 0.241 1 ~ ~ ~ .1 .1 .1 .1 3 force

function mrcd:ray_tick

scoreboard players set duration n_effects 6
execute positioned ~ ~-1.35 ~ as @e[distance=..1.3,tag=!unspellable,type=!#no_interaction_p] unless score @s electric_charge matches 0.. run function effects:electric_charge/give

kill @s[tag=mrcd_touch_edge]
