scoreboard players add @e[type=armor_stand,tag=PlayerSoul] SoulStealTimer 1
execute as @e[type=armor_stand,tag=PlayerSoul,scores={SoulStealTimer=1}] run execute at @s run tp @s ~ ~ ~ facing entity @e[type=skeleton_horse,tag=CadeyrnTP,limit=1] feet

execute as @e[type=armor_stand,tag=PlayerSoul,scores={SoulStealTimer=5}] run execute at @s positioned ^ ^ ^ positioned ~ 255 ~ run data modify entity @s ArmorItems[3] set from entity @e[type=armor_stand,sort=nearest,limit=1,tag=PlayerSoul2] ArmorItems[3]
execute as @e[type=armor_stand,tag=PlayerSoul,scores={SoulStealTimer=5}] run execute at @s positioned ^ ^ ^ positioned ~ 255 ~ run kill @e[distance=..5,type=armor_stand,sort=nearest,limit=1,tag=PlayerSoul2]
execute as @e[type=armor_stand,tag=PlayerSoul,scores={SoulStealTimer=5..}] run execute at @s run tp @s ^ ^ ^.5
execute as @e[type=armor_stand,tag=PlayerSoul,scores={SoulStealTimer=5..}] run execute at @s run execute if entity @e[tag=CadeyrnTP,distance=..2] run function zzzzdonotuse:cadeyrn/attacks/soulsteal/killsoul
execute as @e[type=armor_stand,tag=PlayerSoul,scores={SoulStealTimer=5..}] run execute at @s run tp @s ^ ^ ^.5
execute as @e[type=armor_stand,tag=PlayerSoul,scores={SoulStealTimer=5..}] run execute at @s run execute if entity @e[tag=CadeyrnTP,distance=..2] run function zzzzdonotuse:cadeyrn/attacks/soulsteal/killsoul