scoreboard players add @s[scores={dummy_z=..-2048}] dummy_z 2048

execute unless score @s dummy_z matches ..-1024 run function bd:control/warp/warp_to_saved_coords/z/n512
execute if score @s dummy_z matches ..-1024 positioned ~ ~ ~-1024 run function bd:control/warp/warp_to_saved_coords/z/n512