execute at @s run execute as @p[tag=StealMySoul] run loot spawn ~ 255 ~ loot minecraft:randomevents/player
execute at @s run execute at @p[tag=StealMySoul] run summon minecraft:armor_stand ~ ~.5 ~ {Pose:{Head:[0f,180f,0f]},Small:1b,Invisible:1b,Silent:1b,Silent:1b,Marker:0b,Tags:["DiePls","PlayerSoul"],NoGravity:1,ArmorItems:[{},{},{},{}]}
execute at @s positioned ^ ^-1 ^1 positioned ~ 255 ~ run summon minecraft:armor_stand ~ ~ ~ {Pose:{Head:[0f,180f,0f]},Small:1b,Invisible:1b,Silent:1b,Silent:1b,Marker:0b,Tags:["DiePls","PlayerSoul2"],NoGravity:1,ArmorItems:[{},{},{},{}]}
#execute at @s positioned ^ ^-1 ^1 run execute as @e[distance=..2,limit=1,sort=nearest,tag=PlayerSoul] run execute at @s run tp @s ~ ~ ~ facing entity @e[type=skeleton_horse,tag=CadeyrnTP,limit=1] feet
#execute at @s positioned ^ ^-1 ^1 run execute as @e[distance=..2,limit=1,sort=nearest,tag=PlayerSoul] run execute at @s run tp @s ~ ~ ~ ~180 ~
execute at @s positioned ^ ^-1 ^1 positioned ~ 255 ~ run execute as @e[distance=..2,limit=1,sort=nearest,tag=PlayerSoul2] positioned ~ 255 ~ run data modify entity @s ArmorItems[3] set from entity @e[type=item,sort=nearest,limit=1,nbt={Item:{id:"minecraft:player_head"}}] Item
execute at @s positioned ^ ^-1 ^1 positioned ~ 255 ~ run execute as @e[distance=..2,limit=1,sort=nearest,tag=PlayerSoul2] positioned ~ 255 ~ run kill @e[distance=..5,type=item,sort=nearest,limit=1,nbt={Item:{id:"minecraft:player_head"}}]
execute at @s run particle minecraft:damage_indicator ~ ~-1 ~ 0.5 0.5 0.5 0.2 50