# Follow path
execute unless entity @p[tag=ch1_olinked,distance=..1] facing entity @e[type=#aec,tag=next_point,tag=ch1_olinked,limit=1] feet run tp @s ^ ^ ^.35 ~ 0
kill @e[type=#aec,tag=shadow_point,tag=ch1_olinked,limit=1,distance=..0.22]

# Damage entity
scoreboard players add @e[distance=..0.8,tag=!unspellable,type=!#no_interaction_p] damage 70

# Particles
# particle squid_ink ~ ~.3 ~ .15 .4 .15 0 1 force
particle smoke ~ ~.7 ~ .1 .7 .1 .01 2 force
particle dust_color_transition 0.110 0.102 0.090 1 0.333 0.239 0.388 ~ ~.7 ~ .3 .7 .3 1 5 force
particle dust_color_transition 0.110 0.102 0.090 1 0.333 0.239 0.388 ~ ~.7 ~ .15 .7 .15 1 7 force

# sound
scoreboard players remove @s countdown 1
execute if score @s countdown matches ..0 run function items:passive/shadow_clone/sound_trigger
