Minecraft: How to Randomly Teleport Players Using Commands?
Join us on Reddit for the latest Marvel & DC news!
It’s no secret that Minecraft features an incredibly vast overworld, with many regions and biomes that can be tricky to get around. Minecraft commands can be used for a range of things in-game, including teleporting players to specific locations, but many still wonder how to randomly teleport players using commands in Minecraft.
Teleporting players in Minecraft
Commands are an incredible way to change up your Minecraft gameplay experience, but they do require some restrictions to be lifted before they can be used. Players will need to have cheats enabled in their Minecraft world before they can input various commands.
Typically, Minecraft players would get the option to allow cheats or not when creating their Minecraft world, specifically through the ON or OFF option under New World Generation. But if you haven’t gotten cheats to be enabled in your Minecraft world yet, follow the steps below:
- Open up the Game Menu.
- Navigate to “Open to LAN”.
- You should find a tab that reads “Allow Cheats.”
- You will need to change this setting to “ON.”
- Then, click on “Start LAN World”.
Once you have cheats enabled in your Minecraft world, you’ll be able to start going ahead with the commands. There is an assortment of command variations that you can choose from in-game, depending on what sort of teleportation you’re looking for.
For teleporting players, there are different commands and syntaxes for different Minecraft versions. Below are all of the classic teleportation commands for Minecraft on different platforms:
Minecraft Java Edition (PC/Mac)
Teleportation Type | /tp Command |
Teleport your character to a set of coordinates | /tp <location> |
Teleport your character to the location of another target | /tp <destination> |
Teleport a target to the location of another target | /tp <targets> <destination> |
Teleport a target to a set of coordinates, facing another set of coordinates | /tp <targets> <location> facing <facingLocation> |
Teleport a target to a set of coordinates, rotating the direction the target will face | /tp <targets> <location> [<yRot> <xRot>] |
Teleport to a set of coordinates | /tp [target player] <x> <y> <z> [<y-rot> <x-rot>] |
Teleport to another player | /tp [target player] <destination player> |
Console & others
These /tp commands would apply to the Pocket Edition (PE), Xbox One, PlayStation 4, Nintendo Switch, Windows 10 Edition, and Education Edition.
Teleportation Type | /tp Command |
Teleport your character to a set of coordinates | /tp <x> <y> <z> [yRot] [xRot] |
Teleport your character to the location of another target | /tp <destination> |
Teleport your character to a set of coordinates, facing another set of coordinates | /tp <x> <y> <z> facing <lookAtPositon> |
Teleport your character to a set of coordinates facing a target entity | /tp <victim> <x> <y> <z> facing <lookAtEntity> |
Teleport a target to a set of coordinates, facing another set of coordinates | /tp <victim> <x> <y> <z> facing <lookAtPositon> |
Teleport a target to a set of coordinates | /tp <victim> <x> <y> <z> [yRot] [xRot] |
Teleport a target to another target | tp/ <victim> <destination> |
To make some sense of all of these command inputs while you teleport around the overworld, below is an overview of what each command input translates to in-game:
“location” “x y z” | This indicates the coordinate to teleport to. |
“destination” “destination player” | This indicates the name of a player (or a target selector) to teleport to. |
“targets” | This indicates the name of a player (or a target selector) to teleport. |
“target player” | This is optional and indicates the name of a player (or a target selector) to teleport. If no target player is specified, then the player running the command will be teleported instead. |
“facingLocation” | This indicates the x y z coordinate that the entity will face after being teleported. |
“yRot” “y-rot” | This is optional and indicates the y-rotation that the entity is facing after teleportation in degrees. |
“xRot” “x-rot” | This is optional and indicates the x-rotation that the entity will face after being teleported, specifically in degrees. Positive values look downward, while negative values look upward. |
How to randomly teleport players using commands
Using commands to teleport players and targets to specific locations can be really handy throughout the game. But what about when you’d want to teleport players randomly?
In these cases, you would need to use the same principles and values in terms of the commands but would need to switch out “/tp” for “/spreadplayers” instead. The /spreadplayers command will automatically teleport players randomly within a given radius.
Below are all of the classic /spreadplayers commands for Minecraft on different platforms:
Minecraft Java Edition (PC/Mac)
The following command will work on versions 1.13, 1.14, 1.15, 1.16, 1.17, and 1.18:
/spreadplayers <center> <spreadDistance> <maxRange> <respectTeams> <targets>
The following command will work on versions 1.8, 1.9, 1.10, 1.11, and 1.12:
/spreadplayers <x> <z> <spreadDistance> <maxRange> <respectTeams> <player>
Console & others
This /spreadplayers command would apply to the Pocket Edition (PE), Xbox One, PlayStation 4, Nintendo Switch, Windows 10 Edition, and Education Edition. In this case, players would need to input the following command to spread players in a region:
/spreadplayers <x> <y> <spreadDistance <maxRange> <victim>
Below is an overview of what each value or command input translates to in-game:
“center” “x” “z” | East/West and North/South coordinates of the region’s center that players can be teleported. |
“spreadDistance” | The minimum number of blocks between each player after teleportation. |
“maxRange” | The maximum number of blocks from the region’s center after teleportation. |
“respectTeams” | Either “true” or “false”. True means that members of the same team will be teleported to the same location, while false means that all players will be teleported to different locations. |
“targets” “player” | name of the player (or target selectors) that you wish to teleport. |
If you are unsure about the commands, you can start off by using objects (targets) instead of players, such as armor stands. These can be marked with wool to indicate whether the commands are working as well.
Certain platforms do not support the use of the teleportation commands at all, namely Xbox 360, PlayStation 3, and Wii U. Others do support the command but primarily on specific versions, as seen below:
Minecraft Platform | Teleport Command Supported (Version) |
Java Edition (PC/Mac) | Yes |
Pocket Edition (PE) | Yes (0.16.0) |
Xbox One | Yes (1.2) |
PlayStation 4 | Yes (1.14.0) |
Nintendo Switch | Yes (1.5.0) |
Windows 10 Edition | Yes (0.16.0) |
Education Edition | Yes |
For a quick overview of the process, possible variations, as well as some extra commands, check out the video below by Jragon:
Having the ability to teleport players to specific and random locations can revolutionize the gameplay experience, especially in Minecraft multiplayer mode. Make sure to double-check that your chosen Minecraft version and platform support the /tp and /spreadplayers commands before going ahead.
Have something to add? Let us know in the comments below!
Liked this article? Join us on Reddit for the latest Marvel & DC news!