Aliases |
|
---|---|
Restrictions | |
First introduced | Java Edition 1.10 (1.10-pre1) PE Alpha 0.16.0 (PE Alpha 0.16.0 build 1) |
/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.teleport <destination>
teleport <location>
teleport <targets> <destination>
teleport <targets> <location> [<rotation>]
teleport <targets> <location> facing <facingLocation>
teleport <targets> <location> facing entity <facingEntity> [<facingAnchor>]
teleport <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]
teleport <destination: target> [checkForBlocks: Boolean]
teleport <victim: target> <destination: target> [checkForBlocks: Boolean]
<targets>
: entityvictim: target
: CommandSelector<Actor><location>
: vec3destination: x y z
: CommandPositionFloat<destination>
: entitydestination: target
: CommandSelector<Actor><rotation>
: rotationBE: yRot: value
: RelativeFloat and <xRot: value>
: RelativeFloat<facingLocation>
: vec3lookAtPosition: x y z
: CommandPositionFloat<facingEntity>
: entitylookAtEntity: target
: CommandSelector<Actor><facingAnchor>
: entity_anchoreyes
or feet
.checkForBlocks: Boolean
: booltrue
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 arguments are not specified correctly | Unparseable | Failed |
if <targets> or player: target fails to resolve to one or more entities (named players must be online) | Failed | ||
if <destination> , <facingEntity> , destination: target , or lookAtEntity: target fails to resolve to a single entity (named player must be online) | |||
if destinated position's <x> or <z> exceeds the range of [-30000000, 30000000), or <y> exceeds the range of (-20000000, 20000000] | Successful | ||
if checkForBlocks: Boolean is true and the specified position is obscured | N/A | Failed | |
On success | Teleports the targets to the specified destination. |
Command | Edition | Situation | Success Count | /execute store succeess . | /execute store result . |
---|---|---|---|---|---|
any | Java Edition | On fail | 0 | 0 | 0 |
On success | 1 | 1 | the number of entities that are teleported | ||
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 Alice
teleport @a @s
teleport 100 ~3 100
execute @p ~ ~ ~ teleport @s ~ ~ ~ ~10 ~
[Bedrock Edition only]execute as @p at @s teleport @s ~ ~ ~ ~10 ~
[Java Edition only]execute in minecraft:the_nether run teleport ~ ~ ~
execute as @a in minecraft:the_end run teleport 84 57 79
execute as Alice in minecraft:overworld run teleport 251 64 -160
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 become 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. | ||||
Pocket Edition Alpha | |||||
0.16.0 | build 1 | Added /teleport . | |||
? | Added facing mode. | ||||
Added checkForBlocks: Boolean . |
GPU anisotropic filtering enabled | GPU anisotropic filtering disabled |
---|---|
nm
, tnm
, andnmare
abbreviationsXd
and (n_n)
triggers,respectively