execute as @e[type=minecraft:armor_stand,distance=..100,name=CadeyrnFight] run execute store result score @s PosX run data get entity @s Pos[0]
execute as @e[type=minecraft:armor_stand,distance=..100,name=CadeyrnFight] run execute store result score @s PosY run data get entity @s Pos[1]
execute as @e[type=minecraft:armor_stand,distance=..100,name=CadeyrnFight] run execute store result score @s PosZ run data get entity @s Pos[2]

execute as @e[type=minecraft:armor_stand,distance=..100,tag=GetCoords] run execute store result score @s PosX run data get entity @s Pos[0]
execute as @e[type=minecraft:armor_stand,distance=..100,tag=GetCoords] run execute store result score @s PosY run data get entity @s Pos[1]
execute as @e[type=minecraft:armor_stand,distance=..100,tag=GetCoords] run execute store result score @s PosZ run data get entity @s Pos[2]

execute as @e[type=minecraft:armor_stand,distance=..100,tag=GetCoords] run scoreboard players operation @s PosX -= @e[type=minecraft:armor_stand,limit=1,name=CadeyrnFight] PosX
execute as @e[type=minecraft:armor_stand,distance=..100,tag=GetCoords] run scoreboard players operation @s PosY -= @e[type=minecraft:armor_stand,limit=1,name=CadeyrnFight] PosY
execute as @e[type=minecraft:armor_stand,distance=..100,tag=GetCoords] run scoreboard players operation @s PosZ -= @e[type=minecraft:armor_stand,limit=1,name=CadeyrnFight] PosZ

execute as @e[type=minecraft:armor_stand,distance=..100,tag=GetCoords] run tellraw @a ["",{"score":{"name":"@s","objective":"PosX"}},{"text":"x "},{"score":{"name":"@s","objective":"PosY"}},{"text":"y "},{"score":{"name":"@s","objective":"PosZ"}},{"text":"z"}]