
# -> Reset success
scoreboard players set #or.position_set_success OverlyRealistic.General.ArbitraryData 0

# -> Move player
execute as @a[tag=OverlyRealistic.Player.PlayerMustMoveToSurface] at @s run \
    function overly_realistic:players/revive/randomized_respawning/set_position_surface_1

# -> If position success != 1 then loop
execute unless score #or.position_set_success OverlyRealistic.General.ArbitraryData matches 1 run \
    schedule function overly_realistic:players/revive/randomized_respawning/set_position_surface_0 10t
