execute at @s[tag=!AtCad] run tp @s ^ ^ ^-.5
#execute at @s[tag=!AtCad] run fill ^1 ^1 ^1 ^-1 ^-1 ^-1 air replace iron_bars
execute at @s[tag=!AtCad] run tp @p[tag=PullMe,limit=1,sort=nearest,distance=..4] ~ ~ ~ facing entity @e[type=stray,limit=1,tag=CadeyrnTP]
execute at @s run execute if entity @e[type=stray,tag=CadeyrnTP,distance=..1] run tag @s add AtCad
execute at @s run effect clear @p[tag=PullMe,limit=1,sort=nearest,distance=..2] poison

execute at @s[tag=!AtCad] run tp @s ^ ^ ^-.5
#execute at @s[tag=!AtCad] run fill ^1 ^1 ^1 ^-1 ^-1 ^-1 air replace iron_bars
execute at @s[tag=!AtCad] run tp @p[tag=PullMe,limit=1,sort=nearest,distance=..4] ~ ~ ~ facing entity @e[type=stray,limit=1,tag=CadeyrnTP]
execute at @s run execute if entity @e[type=stray,tag=CadeyrnTP,distance=..1] run tag @s add AtCad
execute at @s run playsound minecraft:block.chain.break hostile @a[distance=..100] ~ ~ ~ 3 0.5 1

execute as @s[tag=AtCad] run execute as @e[tag=CadeyrnTP,type=stray] run function zzzzdonotuse:cadeyrn/attacks/getoverhere/reset
kill @s[tag=AtCad]