/teleport
Teleports entities to a location, another entity, or adjusts their rotation. Full form of /tp with extended facing options.
Overview
Teleports entities to a location, another entity, or adjusts their rotation. Full form of /tp with extended facing options. In vanilla Minecraft Java Edition it is one of the player commands, first added in Classic 0.0.18a.
It is invoked as /teleport [<targets>] <destination>|<location> [<rotation>] [facing <facingLocation>] [facing entity <facingEntity> <facingAnchor>] and accepts one required argument (<destination>) and 4 optional arguments ([targets], [rotation], [facingLocation], and [facingEntity]).
/teleport also works as /tp, which behaves identically, so you can use whichever you prefer.
In Java Edition, teleporting to coordinates in another dimension requires /execute in <dimension> run teleport, while teleporting to an entity follows it into its dimension. The facing keyword allows orienting the entity after teleporting.
The 'facing' clause orients the entity after the move; teleporting to coordinates in another dimension requires /execute in <dimension> run teleport, while teleporting to an entity follows it across dimensions.
Syntax & Arguments
/teleport [<targets>] <destination>|<location> [<rotation>] [facing <facingLocation>] [facing entity <facingEntity> <facingAnchor>]The full syntax is /teleport [<targets>] <destination>|<location> [<rotation>] [facing <facingLocation>] [facing entity <facingEntity> <facingAnchor>]. Angle brackets < > mark required arguments and square brackets [ ] mark optional ones; a vertical bar | between words means you pick exactly one of those literals. You must always supply <destination>. The arguments [targets], [rotation], [facingLocation], and [facingEntity] may be omitted, in which case the documented default applies.
- targets
- Optional, of type an entity. The entity or entities to teleport.
- destination
- Required, of type an entity. Target entity or coordinates to teleport to.
- rotation
- Optional, of type a rotation. The yaw and pitch.
- facingLocation
- Optional, of type a vec3. Coordinates to face after teleporting (used with 'facing' keyword).
- facingEntity
- Optional, of type an entity. An entity to face after teleporting (used with 'facing entity' keywords).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| targets | entity | Optional | The entity or entities to teleport. |
| destination | entity | Required | Target entity or coordinates to teleport to. |
| rotation | rotation | Optional | The yaw and pitch. |
| facingLocation | vec3 | Optional | Coordinates to face after teleporting (used with 'facing' keyword). |
| facingEntity | entity | Optional | An entity to face after teleporting (used with 'facing entity' keywords). |
Examples
The 3 examples below are ready to copy and adapt. For instance, /teleport @s 0 100 0 facing 0 64 0 teleports you to 0,100,0 and rotates you to face coordinates 0,64,0. Each example varies the arguments to show a different real use of /teleport; read the note under every snippet to see exactly what changes.
/teleport @s 0 100 0 facing 0 64 0Teleports you to 0,100,0 and rotates you to face coordinates 0,64,0.
/teleport @e[type=villager] ~ ~5 ~Teleports all villagers 5 blocks upward.
/teleport @p @rTeleports the nearest player to a random player.
Permission Level & Requirements
/teleport sits at permission Level 2 - Game Master / Cheats, which means it needs permission level 2, the level cheats grant to single-player worlds and that operators hold by default.
In a single-player world you must have "Allow Cheats" turned on (or open the world to LAN with cheats) before it will run; on a multiplayer server the player needs to be an operator at the matching level.
This reference describes the Java Edition 1.21 form of the command; Bedrock Edition may use slightly different argument formats.
Common Mistakes
- Using both rotation and facing in the same command, only one can be used.
- Expecting coordinates to change the dimension. Coordinates stay in the dimension the command runs in, so use /execute in first; only teleporting to an entity follows it into another dimension.
Notes
In Java Edition, teleporting to coordinates in another dimension requires /execute in <dimension> run teleport, while teleporting to an entity follows it into its dimension. The facing keyword allows orienting the entity after teleporting.
Related Commands
If /teleport is part of your toolkit, the commands below are the ones you will most often reach for alongside it: /tp, /spreadplayers, and /spawnpoint. They cover closely related tasks, so the links above jump straight to each one.
Frequently Asked Questions about /teleport
What does the /teleport command do in Minecraft?
Teleports entities to a location, another entity, or adjusts their rotation. Full form of /tp with extended facing options. It belongs to the player command group and was first added in Java Edition Classic 0.0.18a.
What is the correct syntax for /teleport?
/teleport [<targets>] <destination>|<location> [<rotation>] [facing <facingLocation>] [facing entity <facingEntity> <facingAnchor>]. The required argument is destination, and the optional ones are targets, rotation, facingLocation, and facingEntity.
What permission level does /teleport need?
It requires permission Level 2 - Game Master / Cheats. On a server the player must be an operator at that level, or have cheats enabled in single-player.
What is a common mistake when using /teleport?
Using both rotation and facing in the same command, only one can be used.
Can you give an example of /teleport in use?
Yes. /teleport @e[type=villager] ~ ~5 ~: teleports all villagers 5 blocks upward.
Can /teleport move a player to another dimension?
Yes, when the destination is an entity: /teleport @s Alex takes you to Alex in whatever dimension they are in. Coordinates stay in the dimension the command runs in, so for a position wrap it in execute, e.g. /execute in minecraft:the_nether run teleport @s ~ ~ ~, to change dimension and position together.
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting