Show
teleport
This article is about the command in the current version (since Java Edition 1.13 (17w45a)). For the command in former game versions, see Commands/tp/Before Java Edition 17w45a. Teleports entities (players, mobs, etc.). Although most commands can affect only chunks that have already been generated, /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. Contents
Syntax[]
Arguments[]JE:<targets>: entity JE:<location>: vec3 JE:<destination>: entity JE: <rotation>: rotation
JE:<facingLocation>: vec3 JE:<facingEntity>: entity JE: <facingAnchor>: entity_anchor Specifies whether the entity'eyes or feet to make the target(s) facing to. If not specified, defaults to eyes. In Bedrock Edition, always facing eyes. Must be either eyes or feet.BE: checkForBlocks: Boolean: enum Must be a boolean (either true or false). If set to 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)).Result[]
Output[]
Examples[]
History[]
Commands View at: Template:Commands/content [edit] |