function olink:ch1/find_linked
function olink:ch2/find_linked
# Follow player
tp @s ~ ~ ~ ~8 ~
execute at @a[tag=ch1_olinked,limit=1] run tp @s ~ ~ ~

# Stone
tp @e[type=#as,tag=istone,tag=ch2_olinked,limit=1] ^1.3 ^ ^

# Damage
execute at @e[type=#as,tag=istone,tag=ch2_olinked,limit=1] as @e[distance=..0.8,tag=!freeze,tag=!unspellable,type=!#no_interaction_p] run function items:obj/spinning_ice_stone/freeze

# Sound
execute if score @s countdown matches 0 at @e[type=#as,tag=istone,tag=ch2_olinked,limit=1] run particle falling_dust ice ~ ~1 ~ .1 .2 .1 0 3 force
execute if score @s countdown matches 0 run playsound custom.spinning_stone ambient @a ~ ~ ~ .25 .98
execute if score @s countdown matches 0 run scoreboard players set @s countdown 10
