Minecraft PE tp Command (teleport)

Minecraft PE tp (teleport) Command

The tp command teleports a player or players to a different point and/or how they are facing in Minecraft PE. The command was first added to Minecraft PE in version 0.16.0. The tp command and teleport command are the same in MCPE. Substituting ‘teleport’ for ‘tp’ in the documentation below will achieve the same behavior.

/tp Syntax

/tp <destination: target>
/tp <destination: x y z> [y-rot:rotation] [x-rot:rotation]
/tp <victim: target> <destination: target>
/tp <victim: target> <destination: x y z> [y-rot:rotation] [x-rot:rotation]

/tp Arguments

  • <destination: target>
    • The entity to teleport the target or target(s) to. Accepts a player name or a target selector as input.
  • <destination: x y z>
    • The x, y and z coordinates
    • Tilde notation (~) can be used as to reference the player’s current location.
  • [y-rot:rotation] (optional)
    • Yaw, or horizontal rotation
    • Tilde notation (~) can be used as to reference the player’s current location.
  • [x-rot:rotation] (optional)
    • Pitch, or vertical rotation
    • Tilde notation (~) can be used as to reference the player’s current location.
  • <victim: target> (optional)
    • The entity or entities to teleport. Accepts a player name or a target selector.

Success/Failure

  • Success: The player or targets specified are teleported to the specified x, y and z coordinates. If supplied rotation and yaw will also be applied.
  • Failure: If the command is malformed or a non-numeric or invalid x, y or z  coordinate is supplied or no players or targets are resolved the command fails and no teleportation takes place.

Usage Notes

  • To use the tp (or any other command) in Minecraft PE cheats must be enabled.
  • In MCPE the tp and teleport commands are identical. Substituting ‘teleport’ for ‘tp’ in the examples below will yield the same result.

Examples

Teleport your player to 401, 97, 220

/tp 401 97 220

Stay in the same position but change your player’s yaw and pitch to 25 and 90 respectively

/tp ~ ~ ~ 25 90

Teleport all players to 100, 50, 125

/tp @a 100 50 125

History

  • Introduced: 0.16.0

Leave a Reply