How to do tp commands in minecraft

The ability to teleport in Minecraft may not be obvious at a glance, but there’s a way to do it not only on PC but consoles and mobile too. That’s the good news. The bad news is that the process of teleporting in Minecraft differs between platforms, so there’s no one-size-fits-all answer for Minecraft fans.

To remedy this issue, we’ve split our tutorial into platform-specific sections covering PC, console and mobile versions of Minecraft to help you learn to teleport and get where you’re going in the blink of an eye.

  1. Open Minecraft on your PC.
  2. Create or load the world that you want to play in.
  3. Head to the location you want to teleport to in future – this could be your base, a farm or recreation you’re working on.
  4. Press F3 + Fn + F3 on PC or Alt + Fn + F3 on Mac to display your current coordinates below the mini-map. Make a note of these coordinates as you’ll need them to teleport back.
  5. When you want to teleport, open the console by pressing the / key on your keyboard.
  6. Enter the teleport command teleport name x y z replacing name with the username of your character, x with the east/west coordinate, y with the vertical coordinate and z with the north/south coordinate – this should be in the same order that you originally wrote the coordinates down in. Your finished command should look something like this: teleport LewwyPaints 2 43 72
  7. You can also teleport to another player’s location (or bring them to you) by using the command teleport Bert Ernie, which will teleport Bert to Ernie’s current location.
  8. Once you’ve typed out the command, simply hit Enter to teleport your player to the selected coordinates.

A word of warning: it’s possible that, if you don’t type the coordinates correctly, you could teleport yourself into solid ground. This would result in you quickly losing health and death will follow soon after. To avoid this, simply add the word true to the end of your command. This forces the game to verify that there aren’t solid blocks at your teleport location, and if there is, it’ll cancel the teleport. 

Other quick teleport commands include:

  • /tp @a @s: Want all players to gather at your location? This command does exactly that. If you want to teleport everyone else to another direction, replace s with your desired coordinates.
  • /tp £e[type=EnemyName] @X Y Z: This command teleports nearby enemies of a certain type to your location. Replace EnemyName with the type of mod you want to spawn, and X Y Z with your coordinates.
  • /tp ~ 62 ~: This command allows you to lock certain coordinates while changing others – ideal if you want to jump up or down to a certain level. Simply replace the coordinate you want to keep the same with a tide (~) and change the others. 

Teleporting in Minecraft on console

Before we delve into the console-focused teleportation tutorial, it’s worth pointing out that you’re only able to teleport when you’re hosting a multiplayer world and, unlike on PC, you’ll only be able to teleport to another player’s location.

Now that’s out of the way, here’s how to teleport in Minecraft on PlayStation, Xbox or Nintendo Switch.

  1. Load up Minecraft from your console’s main menu.
  2. Select Play Game and select the world that you’d like to load – but don’t load it just yet.
  3. Head to Game Options and make sure that Host Privileges is ticked.
  4. Select Load and click OK on the warning that notifies players about the lack of achievements and leaderboard updates when playing with host privileges.
  5. Once the game has loaded, press Options on Xbox or the Touchpad on PlayStation to access the Host menu.
  6. Select Host Options and select Teleport to Player.
  7. This should take you to a list of all players currently playing in your world. Simply select a user from this list and you’ll be instantly teleported to their current location.

Teleporting in Minecraft on mobile

While the lack of a physical keyboard might make entering coordinates a fairly tiresome job, there is also a way to teleport in Minecraft on mobile.

  1. Open the Minecraft app and load the world that you’d like to play in.
  2. Access the pause menu by tapping the top-right of the display – the icon isn’t always displayed, but it’s there.
  3. Tap Settings and toggle the Cheats switch on to enable the use of teleportation.
  4. Close the menu and tap Resume Game.
  5. Tap the Chat icon at the top of the display.
  6. To get your current coordinates for future reference, hit the text box and type /tp YourUsername ~ ~ ~ making sure to replace YourUsername with your Minecraft username. this won’t teleport you anywhere, but the command menu should display your current coordinates.
  7. To teleport, tap the Chat icon once again, bring up the text box and type /tp YourUsername X Y Z, with X representing the east/west coordinate, Y representing the vertical coordinate and Z representing the north/south coordinate.
  8. Tap the Enter button (resembling a chat bubble with an arrow in it) to teleport your character to the specified coordinates.

And there you have it! For more Minecraft goodness, take a look at  and the too. 

teleport

Aliases
  • /tp
Permission level
required

2‌[JE only]
1‌[BE only]

Restrictions

Cheat only‌[BE only]

This article is about the command in the current version (since Java Edition 1.13 (17w45a)). For the command in former game versions, see Commands/tp/Before Java Edition 17w45a.

Teleports entities (players, mobs, etc.).

Although most commands can affect only chunks that have already been generated, /teleport can send entities into chunks that have yet to be generated. If this happens to a player, then the chunks around and including that player's destination are newly generated.

Contents

  • 1 Syntax
  • 2 Arguments
  • 3 Result
  • 4 Output
  • 5 Examples
  • 6 History

Syntax[]

  • Java Edition
teleport <destination> teleport <targets> <destination> Teleports the executor or the specified entity(s) to the position of an entity, and makes its rotation the same as the specified entity's. teleport <location> Teleports the executor or the specified entity(s) to a certain position (and changes its rotation to the command's execution rotation). teleport <targets> <location> Teleports the entity(s) to a certain position (without changing their rotation). teleport <targets> <location> <rotation> teleport <targets> <location> facing <facingLocation> teleport <targets> <location> facing entity <facingEntity> [<facingAnchor>] Teleports the entity(s) to a certain position and changes their rotation to the specified rotation.
  • Bedrock Edition
teleport <destination: target> [checkForBlocks: Boolean] teleport <victim: target> <destination: target> [checkForBlocks: Boolean] Teleports the executor or the specified entity(s) to the position of an entity, and makes it face horizontally and its horizontal rotation the same as the specified entity's. teleport <destination: x y z> [checkForBlocks: Boolean] teleport <victim: target> <destination: x y z> [checkForBlocks: Boolean] Teleports the executor or the specified entity(s) to a certain position (without changing its rotation). teleport <destination: x y z> [yRot: value] [xRot: value] [checkForBlocks: Boolean] teleport <destination: x y z> facing <lookAtPosition: x y z> [checkForBlocks: Boolean] teleport <destination: x y z> facing <lookAtEntity: target> [checkForBlocks: Boolean] teleport <victim: target> <destination: x y z> [yRot: value] [xRot: value] [checkForBlocks: Boolean] teleport <victim: target> <destination: x y z> facing <lookAtPosition: x y z> [checkForBlocks: Boolean] teleport <victim: target> <destination: x y z> facing <lookAtEntity: target> [checkForBlocks: Boolean] Teleports the executor or the specified entity(s) to a certain position and changes their rotation to the specified rotation.

Arguments[]

JE:<targets>: entity
BE: victim: target: CommandSelector<Actor>

Specifies the entity(s) to be teleported. If not specified, defaults to the command's executor. Must be a player name, a target selector or a UUID‌[Java Edition only].

JE:<location>: vec3
BE: destination: x y z: CommandPositionFloat

Specifies the coordinates to teleport the target(s) to. Must be a three-dimensional coordinates with floating-point number elements. Accepts tilde and caret notations.

JE:<destination>: entity
BE: destination: target: CommandSelector<Actor>

Specifies the entity to teleport the target(s) to. Must be a player name, a target selector or a UUID‌[Java Edition only]. In Java Edition, the target selector must be in single type.

JE: <rotation>: rotation
BE: yRot: value: RelativeFloat and <xRot: value>: RelativeFloat

Specifies the rotation. Must be a rotation with double‌[JE only] or float‌[BE only] number elements, including yaw and pitch, measured in degrees.
  • For the horizontal rotation (yaw), -180.0 for due north, -90.0 for due east, 0.0 for due south, 90.0 for due west, to 179.9 for just west of due north, before wrapping back around to -180.0.
  • For the vertical rotation (pitch), -90.0 for straight up to 90.0 for straight down.
Tilde notation can be used to specify a rotation relative to the executor's rotation‌[JE only] or the target's previous rotation‌[BE only].

JE:<facingLocation>: vec3
BE: lookAtPosition: x y z: CommandPositionFloat

Specifies the coordinates to make the target(s) facing to.

JE:<facingEntity>: entity
BE: lookAtEntity: target: CommandSelector<Actor>

Specifies the entity to make the target(s) facing to. Must be a player name, a target selector or a UUID‌[Java Edition only].

JE: <facingAnchor>: entity_anchor

Specifies whether the entity'eyes or feet to make the target(s) facing to. If not specified, defaults to eyes. In Bedrock Edition, always facing eyes. Must be either eyes or feet.

BE: checkForBlocks: Boolean: enum

Must be a boolean (either true or false). If set to true, teleports the target(s) only if the target(s) would not collide with a block it cannot be inside (Note: this allows teleporting into flowers as well as midair). If false or not specified, the default behavior applies (do no check; just teleport the target(s)).

Result[]

CommandTriggerJava EditionBedrock Edition
anythe arguments are not specified correctly Unparseable Unparseable
<targets> or player: target fails to resolve to one or more entities (named players must be online) Failed Failed
<destination>, <facingEntity>, destination: target, or lookAtEntity: target fails to resolve to a single entity (named player must be online)
destinated position's <x> or <z> exceeds the range of [-30000000, 30000000), or <y> exceeds the range of [-20000000, 20000000) Successful
checkForBlocks: Boolean is true and the specified position is obscured N/A Failed
On successTeleports the targets to the specified destination.

Output[]

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
anyJava EditionOn fail000
On success11the number of the specified entities
Bedrock EditionOn fail0N/AN/A
/teleport <destination: x y z> ...On success1N/AN/A
/teleport <victim: target> <destination: x y z> ...On successthe number of targeted victim entitiesN/AN/A
/teleport <destination: target> ...On success2N/AN/A
/teleport <victim: target> <destination: target> ...On successthe number of victims plus 1N/AN/A

Examples[]

  • To teleport the executing player to Alice: teleport Alice
  • To teleport all players to the executing player: teleport @a @s
  • To teleport the executing player to x=100 and z=100, but three blocks above their current position: teleport 100 ~3 100
  • To rotate the nearest player 10 degrees to the right without changing their position:
    • execute @p ~ ~ ~ teleport @s ~ ~ ~ ~10 ~‌[Bedrock Edition only]
    • execute as @p at @s run teleport @s ~ ~ ~ ~10 ~‌[Java Edition only]
  • In Java Edition, when used via the execute command, can teleport between the Overworld, the Nether and the End:
    • To teleport the executing player to the same coordinates, but in the Nether: execute in minecraft:the_nether run teleport ~ ~ ~
    • To teleport all players to x=84 y=57 z=79 in the End: execute as @a in minecraft:the_end run teleport 84 57 79
    • To teleport Alice to x=251 y=64 z=-160 in the Overworld: execute as Alice in minecraft:overworld run teleport 251 64 -160

History[]

Java Edition
1.10pre1Added /teleport, which is like /tp, except that the target parameter is mandatory, the 'teleport to other player' usage is unavailable, and the use of relative coordinates is relative to the executor of the command, rather than relative to the target.
1.1317w45a/tp is no longer different from /teleport now, and became an alias of /teleport.
18w01aAdded facing to /teleport, which causes the target entity to face an entity or a location.
18w02a/teleport has been simplified a bit and players can now teleport to entities in other dimensions.
Pocket Edition Alpha
v0.16.0build 1Added /teleport.
?Added facing mode.
Added checkForBlocks: Boolean.
Bedrock Edition
?The maximum coordinates for /teleport have been reduced from 999,999,999 to 30,000,000.
Attempting to teleport beyond the maximum coordinates no longer outputs an error message.

Commands

View at: Template:Commands/content [edit]