Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheats/teleport

Switch game

23 Wikis · pick your game
/teleport

Command

/teleport

Moves entities to a position or to another entity, optionally setting where they look. /tp is a shorter name for the same command.

Syntax

/teleport <destination>
/teleport <location>
/teleport <targets> <destination>
/teleport <targets> <location>
/teleport <targets> <location> facing entity <facingEntity> [<facingAnchor>]
/teleport <targets> <location> facing <facingLocation>
/teleport <targets> <location> <rotation>
/tp ... (the same as /teleport)

Arguments

ArgumentKind of valueWhat to type
<destination>Target selectorThe single entity to teleport to. One entity only.
<location>Exact positionThe position to teleport to, as x y z. Accepts ~ and ^ relative coordinates.
<targets>Target selectorThe entities to move. Any number of entities, given as a selector, a player name or a UUID. One or more entities.
<facingEntity>Target selectorA single entity that the targets turn to look at. One entity only.
<facingAnchor>Entity anchorWhich part of the facing entity to look at: eyes or feet. Default: feet.
<facingLocation>Exact positionA position, as x y z, that the targets turn to look at.
<rotation>RotationThe direction to face after arriving, as two numbers in degrees: horizontal first, then vertical. Accepts ~ for relative values.

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inServer operators, players in a singleplayer or LAN world with cheats enabled, the server console, command blocks and functions.
Short forms/tp
ResultReports who was teleported and where (the coordinates, or the name of the destination entity). Returns the number of entities teleported.
Forms/teleport <location> and /teleport <destination> move the entity running the command. /teleport <targets> <location> and /teleport <targets> <destination> move the listed entities. Rotation and facing are only available in the form with targets and a location.
To an entityThe targets take the position, the dimension and the facing direction of the destination entity.
To coordinatesThe targets arrive in the dimension where the command is run. Without a rotation or facing, each target keeps the direction it was looking in.
Relative coordinates~ is relative to where the command is run (for a player typing it, their own position). ^ is relative to the direction the command is run in, as ^left ^up ^forward. The two styles cannot be mixed in one position.
RotationTwo numbers in degrees: the horizontal turn first, then the vertical tilt. ~ makes a value relative to the current rotation of each target.
Facingfacing <position> turns the targets toward a position. facing entity <entity> [eyes|feet] turns them toward an entity; without the last word they look at its feet.
LimitsFails with "Invalid position for teleport" if X or Z is below -30000000 or at 30000000 or more, or if Y is below -20000000 or at 20000000 or more.
After arrivingVertical speed is reset to zero unless the target is gliding with an Elytra, and mobs stop walking to where they were going.
Alias/tp accepts exactly the same forms as /teleport.

Examples

/tp 100 64 -200

Teleports you to X 100, Y 64, Z -200.

/teleport @s ~ ~10 ~

Moves you 10 blocks straight up from where you are.

/teleport @s ^ ^ ^5

Moves you 5 blocks forward in the direction you are looking.

/tp @a @s

Teleports every player to you.

/tp @p @e[type=minecraft:villager,limit=1,sort=nearest]

Teleports the nearest player to the nearest Villager.

/teleport @a 0 100 0 90 0

Teleports every player to 0, 100, 0 with a horizontal rotation of 90 degrees and a level view.

/teleport @s 0 64 0 facing 10 64 10

Teleports you to 0, 64, 0 and turns you to look at 10, 64, 10.

/teleport @e[type=minecraft:pig] ~ ~ ~ facing entity @p eyes

Brings every Pig to your position and turns each one to look at the eyes of the nearest player.

/tp @s ~ ~ ~ ~180 ~

Keeps you in place and turns you around by 180 degrees.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)