Teleport back to your beacon with your teleportation scroll.
Minecraft PE, simple loops, simple conditionals,