Random teleport button
Press a button and the nearest player is dropped at a random safe spot up to 1,000 blocks away.
You need
- 1 impulse command block
- 1 chain command block
- A button on the impulse block
1Wire the button
Impulse block set to Needs Redstone with a button on it, then one chain block (Always Active) after it.
/spreadplayers ~ ~ 200 1000 @pMoves the nearest player to a random surface spot between 200 and 1,000 blocks away.
/title @p actionbar §aTeleported to a random placeTells 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_runRuns the whole sequence once.
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
- Change 1000 to a bigger range for a larger world.
- Use @a[r=5] to send everyone standing near the button together.
Commands used
More command creations
Coins HUD above the hotbarShows each player their own coin balance above the hotbar at all times, using a scoreboard and titleraw.Easy HUD · 7 commands · videoIce bridge under your feetWater turns to ice in a 3 by 3 square under the player, so tagged players can walk across lakes and oceans.Easy Gameplay · 3 commandsJump pads and speed padsStep on an emerald block to be launched into the air, or on a gold block for a burst of speed.Easy Gameplay · 4 commandsLow gravity roomInside a box-shaped room, players jump high and float down slowly, like on the Moon.Easy Gameplay · 3 commandsMore from 9Minecraft
Command reference © 2026 9Minecraft.net. Syntax read from Minecraft Bedrock Edition 1.26.66.1.