execute as @s store result score @s pos.x run data get entity @s Pos[0]
execute as @s store result score @s pos.y run data get entity @s Pos[1]
execute as @s store result score @s pos.z run data get entity @s Pos[2]