summon minecraft:armor_stand 0 100 0 {Invisible:1b,NoGravity:1b,Tags:[TEMP_CHECKPOINT]}
execute store result entity @e[tag=TEMP_CHECKPOINT,limit=1,sort=nearest] Pos[0] double 1 run data get entity @s SpawnX
execute store result entity @e[tag=TEMP_CHECKPOINT,limit=1,sort=nearest] Pos[1] double 1 run data get entity @s SpawnY
execute store result entity @e[tag=TEMP_CHECKPOINT,limit=1,sort=nearest] Pos[2] double 1 run data get entity @s SpawnZ

execute positioned as @e[tag=TEMP_CHECKPOINT,limit=1,sort=nearest] align xyz positioned ~0.5 ~ ~0.5 run tp @s ~ ~ ~ ~ ~

kill @e[tag=TEMP_CHECKPOINT]