

execute as Alice in overworld run teleport 251 64 -160 Īdded /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.execute as Alice in minecraft:overworld run teleport 251 64 -160.To teleport Alice to x=251 y=64 z=-160 in the Overworld:.execute as in the_end run teleport 84 57 79 .execute as in minecraft:the_end run teleport 84 57 79.To teleport all players to x=84 y=57 z=79 in the End:.execute in nether run teleport ~ ~ ~ .execute in minecraft:the_nether run teleport ~ ~ ~.To teleport the executing player to the same coordinates, but in the Nether:.In Java Edition, when used via the execute command, can teleport between the Overworld, the Nether and the End:.execute as at run teleport ~ ~ ~ ~10 ~.To rotate the nearest player 10 degrees to the right without changing their position:.To teleport all players to the executing player: teleport To teleport the executing player to x=100 and z=100, but three blocks above their current position: teleport 100 ~3 100.To teleport the executing player to Alice: teleport Alice.Teleports the targets to the specified destination. ,, destination: target, or lookAtEntity: target fails to resolve to a single entity (named player must be online)ĭestinated position's or exceeds the range of [-30000000, 30000000), or exceeds the range of [-20000000, 20000000)ĬheckForBlocks: Boolean is true and the specified position is obscured or player: target fails to resolve to one or more entities (named players must be online) The arguments are not specified correctly If false or not specified, the default behavior applies (do no check just teleport the target(s)). 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). Must be either eyes or feet.īE: checkForBlocks: Boolean: enum Must be a boolean (either true or false). JE: : entity_anchor Specifies whether the entity'eyes or feet to make the target(s) facing to. Must be a player name, a target selector or a UUID. īE: lookAtPosition: x y z: CommandPositionFloat Specifies the coordinates to make the target(s) facing to.īE: lookAtEntity: target: CommandSelector Specifies the entity to make the target(s) facing to. Tilde notation can be used to specify a rotation relative to the executor's rotation or the target's previous rotation. For the vertical rotation (pitch), -90.0 for straight up to 90.0 for straight down.For the horizontal rotation (yaw), -180.0 for due north, -90.0 for due east, 0.0 for due south, 90.0 for due west, to 179.9 for just west of due north, before wrapping back around to -180.0.Must be a rotation with double or float number elements, including yaw and pitch, measured in degrees. In Java Edition, the target selector must be in single type.īE: yRot: value: RelativeFloat and : RelativeFloat Specifies the rotation. Accepts tilde and caret notations.īE: destination: target: CommandSelector Specifies the entity to teleport the target(s) to. Must be a three-dimensional coordinates with floating-point number elements. īE: destination: x y z: CommandPositionFloat Specifies the coordinates to teleport the target(s) to.

If not specified, defaults to the command's executor. Arguments īE: victim: target: CommandSelector Specifies the entity(s) to be teleported. teleport teleport facing teleport facing teleport teleport facing teleport facing Teleports the executor or the specified entity(s) to a certain position and changes their rotation to the specified rotation. teleport teleport Teleports the executor or the specified entity(s) to a certain position (without changing its rotation). Teleport teleport 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. teleport teleport facing teleport facing entity Teleports the entity(s) to a certain position and changes their rotation to the specified rotation. teleport Teleports the entity(s) to a certain position (without changing their rotation). teleport Teleports the executor or the specified entity(s) to a certain position (and changes its rotation to the command's execution rotation). Teleport teleport 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.
