![]() |
VOOZH | about |
/teleport| Aliases | /tp
|
|---|---|
| Permission level required |
|
| Restrictions | Cheat onlyβ[BE only] |
{
"title": "<code>/teleport</code>",
"rows": [
{
"field": "<!-- Command --><code ><span>/tp</span></code><!-- /Command -->",
"label": "Aliases"
},
{
"field": "\n* 2 β<sup class=\" nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Java Edition\">(link to Java Edition article, displayed as JE) only</span></i>]</sup>\n* 1 β<sup class=\" nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Bedrock Edition\">(link to Bedrock Edition article, displayed as BE) only</span></i>]</sup>",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "(link to Cheat article, displayed as Cheat) onlyβ<sup class=\" nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Bedrock Edition\">(link to Bedrock Edition article, displayed as BE) only</span></i>]</sup>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Teleports entities (players, mobs, etc.).
Although most commands can affect only chunks that have already been generated, / can send entities into chunks that have yet to be generated. Right before teleporting, the game generates the destination chunk.
teleport <destination>teleport <targets> <destination>
teleport <location>
teleport <targets> <location>
teleport <targets> <location> <rotation>teleport <targets> <location> facing <facingLocation>teleport <targets> <location> facing entity <facingEntity> [<facingAnchor>]
teleport <destination: target>teleport <victim: target> <destination: target> [checkForBlocks: Boolean]
teleport <destination: x y z> [checkForBlocks: Boolean]teleport <victim: target> <destination: x y z> [checkForBlocks: Boolean]
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]
JE: <targets>: entity
BE: victim: target: CommandSelector<Actor>
JE: <location>: vec3
BE: destination: x y z: CommandPositionFloat
JE: <destination>: entity
BE: destination: target: CommandSelector<Actor>
JE: <rotation>: rotation
BE: yRot: value: RelativeFloat and <xRot: value>: RelativeFloat
JE: <facingLocation>: vec3
BE: lookAtPosition: x y z: CommandPositionFloat
JE: <facingEntity>: entity
BE: lookAtEntity: target: CommandSelector<Actor>
JE: <facingAnchor>: entity_anchor
/execute anchored. In Bedrock Edition, always facing the entity's feet from the targets' feet.eyes or feet.BE: checkForBlocks: Boolean: enum
true or false).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)).| Command | Trigger | Java Edition | Bedrock Edition |
|---|---|---|---|
| Any | The command is incomplete, or any argument is 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 | |
| Otherwise | Successful | ||
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| Any | Java Edition | On fail | 0 | 0 | 0 |
| On success | 1 | 1 | the number of the specified entities | ||
| Bedrock Edition | On fail | 0 | N/A | N/A | |
/teleport <destination: x y z> ... | On success | 1 | N/A | N/A | |
/teleport <victim: target> <destination: x y z> ... | On success | the number of targeted victim entities | N/A | N/A | |
/teleport <destination: target> ... | On success | 2 | N/A | N/A | |
/teleport <victim: target> <destination: target> ... | On success | the number of victims plus 1 | N/A | N/A |
teleport Aliceteleport @a @steleport 100 ~3 100teleport ^ ^ ^1execute as @p at @s run teleport @s ~ ~ ~ ~10 ~execute in minecraft:the_nether run teleport ~ ~ ~β[Java Edition only]execute in nether run teleport ~ ~ ~β[Bedrock Edition only]execute as @a in minecraft:the_end run teleport 84 57 79β[Java Edition only]execute as @a in the_end run teleport 84 57 79β[Bedrock Edition only]execute as Alex in minecraft:overworld run teleport 251 64 -160β[Java Edition only]execute as Alex in overworld run teleport 251 64 -160β[Bedrock Edition only]| Java Edition Classic | |||||||
|---|---|---|---|---|---|---|---|
| 0.0.18a | server 1.4 | Added /teleport. | |||||
| 0.0.19a_06 | server 1.7 | Added /tp as an alias for /teleport. | |||||
| Java Edition Indev | |||||||
| 0.31 | 20091231-1856 | Removed /teleport.[is this the correct version?] | |||||
| Java Edition | |||||||
| 1.10 | pre1 | Added /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.13 | 17w45a | /tp is no longer different from /teleport now, and became an alias of /teleport. | |||||
| 18w01a | Added 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. | ||||||
| 1.16 | 20w06a | /teleport now cannot teleport an entity to a position where <x> or <z> exceeds the range of [-30000000, 30000000), or <y> exceeds the range of [-20000000, 20000000) | |||||
| Pocket Edition Alpha | |||||||
|---|---|---|---|---|---|---|---|
| v0.16.0 | build 1 | Added /teleport. | |||||
| The coordinates have a maximum of 999,999,999 although it's possible to teleport beyond the maximum by using relative coordinates. | |||||||
| Bedrock Edition | |||||||
| 1.2.0 | beta 1.2.0.2 | Added facing mode.
| |||||
The maximum coordinates for /teleport have been increased from 999,999,999 to ~3.402824e+38 (2128). | |||||||
| 1.2.5 | beta 1.2.5.15 | The maximum coordinates for /teleport have been reduced to 30,000,000.
| |||||
| Attempting to teleport beyond the maximum coordinates no longer outputs an error message. | |||||||
| Exceeding the maximum coordinates is no longer possible. | |||||||
| 1.13.0 | beta 1.13.0.13 | Added checkForBlocks: Boolean. | |||||
| 1.19.40 | Preview 1.19.40.23 | Players can now teleport to entities in other dimensions, with the "Upcoming Creator Features" experimental toggle enabled. | |||||
| 1.19.50 | Preview 1.19.50.23 | Teleporting to entities in other dimension no longer requires the "Upcoming Creator Features" experimental toggle to be enabled. | |||||
| 1.19.70 | Preview 1.19.70.20 | Rotation in the teleport command is now relative to the executor of the command instead of the target. Old usage of rotations in commands remain relative to the target mob for backward compatibility. | |||||
/teleport Command" β Microsoft Learn, October 11, 2023.