
execute as @n[distance=..25,tag=same_id] run function svm_ep:system/calculate_true_rotation
function svm_ep:system/calculate_true_rotation




execute if score @n[distance=..25,tag=same_id] rot.x > @s rot.x at @s run tp @s ~ ~ ~ ~15 ~
execute if score @n[distance=..25,tag=same_id] rot.x < @s rot.x at @s run tp @s ~ ~ ~ ~-15 ~

execute if score @n[distance=..25,tag=same_id] rot.y < @s rot.y at @s run tp @s ~ ~ ~ ~ ~-4
execute if score @n[distance=..25,tag=same_id] rot.y > @s rot.y at @s run tp @s ~ ~ ~ ~ ~6



#tellraw @a ["",{"text":"X KULA"},{"score":{"name":"@s","objective":"rot.x"},"color":"red"},{"text":" X JA "},{"score":{"name":"@n[distance=..25,tag=same_id]","objective":"rot.x"},"color":"green"}]
#tellraw @a ["",{"text":"Y KULA"},{"score":{"name":"@s","objective":"rot.y"},"color":"red"},{"text":" Y JA "},{"score":{"name":"@n[distance=..25,tag=same_id]","objective":"rot.y"},"color":"green"}]

