Commands/teleport

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. If this happens to a player, then the chunks around and including that player's destination are newly generated.

Syntax

 * Java Edition
 * Teleports the executor or the specified entity(s) to the position of an entity, and makes its rotation the same as the specified entity's.
 * Teleports the executor or the specified entity(s) to a certain position (and changes its rotation to the command's execution rotation).
 * Teleports the entity(s) to a certain position (without changing their rotation).
 * Teleports the entity(s) to a certain position and changes their rotation to the specified rotation.
 * Teleports the executor or the specified entity(s) to a certain position (and changes its rotation to the command's execution rotation).
 * Teleports the entity(s) to a certain position (without changing their rotation).
 * Teleports the entity(s) to a certain position and changes their rotation to the specified rotation.
 * Teleports the entity(s) to a certain position and changes their rotation to the specified rotation.
 * Teleports the entity(s) to a certain position and changes their rotation to the specified rotation.
 * Teleports the entity(s) to a certain position and changes their rotation to the specified rotation.
 * Teleports the entity(s) to a certain position and changes their rotation to the specified rotation.


 * Bedrock Edition
 * Teleports the executor or the specified entity(s) to the position of an entity, and makes it face horizontally and its horizontal rotation the same as the specified entity's.
 * Teleports the executor or the specified entity(s) to a certain position (without changing its rotation).
 * Teleports the executor or the specified entity(s) to a certain position and changes their rotation to the specified rotation.
 * Teleports the executor or the specified entity(s) to a certain position (without changing its rotation).
 * Teleports the executor or the specified entity(s) to a certain position and changes their rotation to the specified rotation.
 * Teleports the executor or the specified entity(s) to a certain position (without changing its rotation).
 * Teleports the executor or the specified entity(s) to a certain position and changes their rotation to the specified rotation.
 * Teleports the executor or the specified entity(s) to a certain position and changes their rotation to the specified rotation.
 * Teleports the executor or the specified entity(s) to a certain position and changes their rotation to the specified rotation.
 * Teleports the executor or the specified entity(s) to a certain position and changes their rotation to the specified rotation.
 * Teleports the executor or the specified entity(s) to a certain position and changes their rotation to the specified rotation.
 * Teleports the executor or the specified entity(s) to a certain position and changes their rotation to the specified rotation.
 * Teleports the executor or the specified entity(s) to a certain position and changes their rotation to the specified rotation.

Arguments

 * Specifies the entity(s) to be teleported. If not specified, defaults to the command's executor.


 * Specifies the coordinates to teleport the target(s) to.


 * Specifies the entity to teleport the target(s) to.


 * and
 * Specifies the rotation.
 * Specifies the rotation.


 * Specifies the coordinates to make the target(s) facing to.


 * Specifies the entity to make the target(s) facing to.


 * Specifies whether the entity'eyes or feet to make the target(s) facing to. If not specified, defaults to eyes. $$, always facing eyes.
 * Specifies whether the entity'eyes or feet to make the target(s) facing to. If not specified, defaults to eyes. $$, always facing eyes.


 * If set to, 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   or not specified, the default behavior applies (do no check; just teleport the target(s)).
 * If set to, 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   or not specified, the default behavior applies (do no check; just teleport the target(s)).
 * If set to, 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   or not specified, the default behavior applies (do no check; just teleport the target(s)).

Examples

 * To teleport the executing player to Alice:


 * To teleport all players to the executing player:


 * To teleport the executing player to x=100 and z=100, but three blocks above their current position:


 * To rotate the nearest player 10 degrees to the right without changing their position:


 * ⇭⇭⇭⇭⇭[upcoming: BE 1.19.40], when used via the execute command, can teleport between the Overworld, the Nether and the End:
 * To teleport the executing player to the same coordinates, but in the Nether:
 * To teleport all players to x=84 y=57 z=79 in the End:
 * To teleport Alice to x=251 y=64 z=-160 in the Overworld:
 * To teleport Alice to x=251 y=64 z=-160 in the Overworld:
 * To teleport Alice to x=251 y=64 z=-160 in the Overworld:

History
Befehl/teleport コマンド/teleport 命令/teleport