/teleport (/tp) command
The /tp command teleports a player or entity to specific coordinates, to another player or between dimensions. It's one of the most used commands in the game.
Syntax
Java Edition
/tp <target> <x> <y> <z> [<yRot> <xRot>] Bedrock Edition
/tp <target> <x> <y> <z> [checkForBlocks: Boolean] [<yRot> <xRot>] Parameters in <angle brackets> are required. Parameters in [square brackets] are optional.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| target | selector/player | Yes | The player or entity to teleport. You can use a selector (@a, @p, @r, @s, @e) or a player name. |
| x y z | coordinates | Yes | The destination coordinates. You can use ~ (relative) or ^ (local). Example: ~ ~10 ~ teleports you 10 blocks up. |
| yRot | number | No | Horizontal rotation (yaw) in degrees. |
| xRot | number | No | Vertical rotation (pitch) in degrees: -90 is straight up, 90 is straight down. |
Usage examples
Tips and tricks
Coordinates with a tilde (~) are relative. /tp @s ~10 ~ ~ moves you 10 blocks east without changing Y or Z.
In Java Edition you can use /tp @s ~ ~ ~ facing entity @e[type=zombie,limit=1,sort=nearest] to turn and face the nearest zombie.
Avoid teleporting into solid blocks: the player can get stuck and start suffocating. Add 1 to Y to land on top of the surface.
/tp and /teleport are aliases. They work exactly the same, but /tp is quicker to type.
Related commands
/spreadplayers
Randomly spreads players or entities across a given area, with a minimum distance between them. P...
/execute
The most powerful command in Minecraft. It runs other commands in a modified context: as another ...
/spawnpoint
Sets a player's spawn point. After dying, the player respawns there instead of at the world's def...
Frequently asked questions
How do you use the /tp command in Minecraft?
Open the chat with the T or / key and type the command using this syntax: /tp <target> <x> <y> <z> [<yRot> <xRot>]. The /tp command teleports a player or entity to specific coordinates, to another player or between dimensions. It's one of the most used commands in the game.
What permissions does /tp require?
The /tp command requires permission level 2: Operator (OP 2). In singleplayer with cheats turned on, you automatically have full permissions. On a multiplayer server, you need operator status, which is granted with the /op command.
Does /tp work in Bedrock Edition?
Yes, the /tp command works in both editions, but the syntax differs between Java and Bedrock Edition. You'll find the syntax for both versions above.



