Random teleport button

Press a button and the nearest player is dropped at a random safe spot up to 1,000 blocks away.

EasyWorld2 commandsEvery command accepted by the game (1.26.66.1)

You need

1Wire the button

Impulse block set to Needs Redstone with a button on it, then one chain block (Always Active) after it.

Impulse block
/spreadplayers ~ ~ 200 1000 @p

Moves the nearest player to a random surface spot between 200 and 1,000 blocks away.

Chain block
/title @p actionbar §aTeleported to a random place

Tells them what just happened.

No command blocks? Use the function pack

This creation is included in the free 9Minecraft Command Creations behavior pack. Add the pack to your world, then type one command. It does the same thing as the command blocks above, driven by a tick function.

/function n9/random_teleport_button_run

Runs the whole sequence once.

Download the pack (.mcpack) How to install it

How it works

/spreadplayers picks a random position inside maxRange, at least spreadDistance away from other targets, and always puts the player on the top solid block, so nobody lands inside a cave or in the air.

Make it your own

Commands used

More command creations

More from 9Minecraft

Command reference © 2026 9Minecraft.net. Syntax read from Minecraft Bedrock Edition 1.26.66.1.