execute as @s store result score @s player_x run data get entity @s Pos[0] 1
execute as @s store result score @s player_y run data get entity @s Pos[1] 1
execute as @s store result score @s player_z run data get entity @s Pos[2] 1

#return player back to the roof if they jumped off
execute if entity @s[scores={player_y=..75,player_x=60..,player_z=-3..34}] run tp @s 60 85 ~
execute if entity @s[scores={player_y=..75,player_z=35..,player_x=-3..59}] run tp @s ~ 85 35
execute if entity @s[scores={player_y=..75,player_x=..-4,player_z=-3..34}] run tp @s -4 85 ~
execute if entity @s[scores={player_y=..75,player_z=..-4,player_x=-3..59}] run tp @s ~ 85 -4

execute if entity @s[scores={player_y=..75,player_x=60..,player_z=..-4}] run tp @s 60 85 -4
execute if entity @s[scores={player_y=..75,player_x=60..,player_z=35..}] run tp @s 60 85 35
execute if entity @s[scores={player_y=..75,player_z=35..,player_x=..-4}] run tp @s -4 85 35
execute if entity @s[scores={player_y=..75,player_x=..-4,player_z=..-4}] run tp @s -3 85 -4