Ad · Sztuka HarmoniiAdCouples therapy in English · −50% off your first visit · Sztuka HarmoniiCouples therapy in English · −50% · Sztuka HarmoniiBook
Discord
Ad · Sztuka Harmonii5.0 · 190+ reviewsA centre recommended by patientsRecommended by patients6 offices in Gdańsk, Gdynia and Sopot, plus online sessions.−50%off your first visitBook an appointmentBook

/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.

Player and movement OP 2 since Beta 1.3

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

Example 1
/tp Steve 100 64 200

Teleports the player Steve to X=100, Y=64, Z=200.

Example 2
/tp @a @p

Teleports all players to the player nearest to whoever runs the command.

Example 3
/tp @s ~ ~50 ~

Teleports you 50 blocks up from your current position.

Example 4 Java
/tp @p 0 -60 0 facing 0 100 0

Teleports the nearest player to 0 -60 0, facing the point 0 100 0.

Example 5 Java
/execute in minecraft:the_nether run tp @s ~ ~ ~

Teleports you to the Nether at the same coordinates (note: the 1:8 scale isn't applied automatically).

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

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.