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

scoreboard players add pos ec_calc 1
execute if score pos ec_calc <= range ec_calc positioned ^ ^ ^.5 run function items:obj/electric_charge/electrocute/ray_loop
