Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/tp/Before Java Edition 17w45a: Difference between revisions

From SAS Gaming Wiki
imported>Minecrafter2025
 
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{about|the {{cmd|tp|link=none}} command before [[Minecraft:Java Edition 1.13]]|the main command in Java Edition 1.13 and Bedrock Edition|Commands/teleport}}
{{about|the {{MC/Cmd|tp|link=none}} command before Java Edition 1.13|the main command in Java Edition 1.13 and Bedrock Edition|Commands/teleport}}
{{outdated feature}}
{{outdated feature}}
{{Infobox command
{{Infobox command
Line 8: Line 8:
Teleports entities (players, mobs, items, etc.).
Teleports entities (players, mobs, items, etc.).


The primary difference between this command and the {{cmd|teleport}} command is that {{cmd|tp|link=none}} uses coordinates relative to the teleported targets, while {{cmd|teleport}} uses coordinates relative to the command's execution.
The primary difference between this command and the {{MC/Cmd|teleport}} command is that {{MC/Cmd|tp|link=none}} uses coordinates relative to the teleported targets, while {{MC/Cmd|teleport}} uses coordinates relative to the command's execution.


Although most commands can only affect chunks that have already been generated, {{cmd|tp|link=none}} 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 will be newly generated.
Although most commands can only affect chunks that have already been generated, {{MC/Cmd|tp|link=none}} 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 will be newly generated.


==Syntax==
==Syntax==
Line 22: Line 22:


<code><target player></code>
<code><target player></code>
: Specifies the entity(s) to be teleported. Must be a player name, a [[Minecraft:target selector]], or a [[Minecraft:UUID]].
: Specifies the entity(s) to be teleported. Must be a player name, a target selector, or a [[Minecraft:UUID]].
: Permits entities other than players.
: Permits entities other than players.


<code><x> <y> <z></code> (BE: <code>destination: x y z</code>)
<code><x> <y> <z></code> (BE: <code>destination: x y z</code>)
: Specifies the coordinates to teleport the target(s) to. <code><x></code> and <code><z></code> must fall within the range -30,000,000 to 30,000,000 (exclusive, without the commas), and <code><y></code> must be within the range -4096 to 4096, inclusive. May use [[Minecraft:tilde notation|tilde]] and [[Minecraft:caret notation]] to specify a position relative to the target's current position – an exception to tilde notation's usual rule of being relative to the executor of the command. {{cmd|teleport}} can be used to teleport relative to executor of the command.
: Specifies the coordinates to teleport the target(s) to. <code><x></code> and <code><z></code> must fall within the range -30,000,000 to 30,000,000 (exclusive, without the commas), and <code><y></code> must be within the range -4096 to 4096, inclusive. May use tilde and caret notation to specify a position relative to the target's current position – an exception to tilde notation's usual rule of being relative to the executor of the command. {{MC/Cmd|teleport}} can be used to teleport relative to executor of the command.


<code><destination player></code>
<code><destination player></code>
: Specifies the entity to teleport the target(s) to. Must be a player name, a [[Minecraft:target selector]], or a [[Minecraft:UUID]].
: Specifies the entity to teleport the target(s) to. Must be a player name, a target selector, or a [[Minecraft:UUID]].
: Permits entity other than players.
: Permits entity other than players.


Line 54: Line 54:


{{HistoryTable
{{HistoryTable
|{{HistoryLine|java classic}}
|{{MC/HistoryLine|java classic}}
|{{HistoryLine||0.0.18a|Added {{cmd|teleport|link=none}}.}}
|{{HistoryLine||0.0.18a|Added {{MC/Cmd|teleport|link=none}}.}}
|{{HistoryLine||server 1.7|Added {{cmd|tp|link=none}}, an alias for {{cmd|teleport|link=none}}.}}
|{{HistoryLine||server 1.7|Added {{MC/Cmd|tp|link=none}}, an alias for {{MC/Cmd|teleport|link=none}}.}}
|{{HistoryLine|java indev}}
|{{MC/HistoryLine|java indev}}
|{{HistoryLine||0.31|dev=20091223-0040|Removed all commands.}}
|{{MC/HistoryLine||0.31|dev=20091223-0040|Removed all commands.}}
|{{HistoryLine|java alpha}}
|{{MC/HistoryLine|java alpha}}
|{{HistoryLine||v1.0.16_01|Re-added {{cmd|tp|link=none}}.}}
|{{HistoryLine||v1.0.16_01|Re-added {{MC/Cmd|tp|link=none}}.}}
|{{HistoryLine|java}}
|{{MC/HistoryLine|java}}
|{{HistoryLine||1.3.1|dev=12w25a|Can now be used to teleport to any coordinates rather than just another player.}}
|{{MC/HistoryLine||1.3.1|dev=12w25a|Can now be used to teleport to any coordinates rather than just another player.}}
|{{HistoryLine||1.8|dev=14w03a|Added rotation arguments to {{cmd|tp|link=none}}.}}
|{{HistoryLine||1.8|dev=14w03a|Added rotation arguments to {{MC/Cmd|tp|link=none}}.}}
|{{HistoryLine||1.9.3|dev=pre1|{{cmd|tp|link=none}} no longer teleports the player to a y-coordinate outside the range -512 to 512.}}
|{{HistoryLine||1.9.3|dev=pre1|{{MC/Cmd|tp|link=none}} no longer teleports the player to a y-coordinate outside the range -512 to 512.}}
|{{HistoryLine||1.10|dev=16w21b|The y-coordinate range of {{cmd|tp|link=none}} is increased to &minus;4096 to 4096.
|{{HistoryLine||1.10|dev=16w21b|The y-coordinate range of {{MC/Cmd|tp|link=none}} is increased to &minus;4096 to 4096.
|Now the specified destination is relative to executor of the command, instead of the target's current position.}}
|Now the specified destination is relative to executor of the command, instead of the target's current position.}}
|{{HistoryLine|||dev=pre1|Behavior is reverted back to 16w20a and previous versions.}}
|{{MC/HistoryLine|||dev=pre1|Behavior is reverted back to 16w20a and previous versions.}}
|{{HistoryLine||1.13|dev=17w45a|{{cmd|tp|link=none}} is no longer different from {{cmd|teleport}} now, and become an alias of {{cmd|teleport}}.}}
|{{HistoryLine||1.13|dev=17w45a|{{MC/Cmd|tp|link=none}} is no longer different from {{MC/Cmd|teleport}} now, and become an alias of {{MC/Cmd|teleport}}.}}
}}
}}


== Navigation ==
== Navigation ==
{{Navbox commands}}
{{MC/Navbox commands}}


[[Minecraft:ja:コマンド/tp/Java Edition 17w45a以前]]
ja:コマンド/tp/Java Edition 17w45a以前
[[Minecraft:zh:命令/tp/Java版17w45a前]]
zh:命令/tp/Java版17w45a前

Latest revision as of 20:14, 9 April 2026

Template:Outdated feature Template:Infobox command

Teleports entities (players, mobs, items, etc.).

The primary difference between this command and the

  1. REDIRECT Template:Command

Template:Redr command is that

  1. REDIRECT Template:Command

Template:Redr uses coordinates relative to the teleported targets, while

  1. REDIRECT Template:Command

Template:Redr uses coordinates relative to the command's execution.

Although most commands can only affect chunks that have already been generated,

  1. REDIRECT Template:Command

Template:Redr 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 will be newly generated.

Syntax

tp <destination player>
tp <x> <y> <z> [<yaw> <pitch>]
tp <target player> <destination player>
tp <target player> <x> <y> <z> [<yaw> <pitch>]

Arguments

<target player>

Specifies the entity(s) to be teleported. Must be a player name, a target selector, or a Minecraft:UUID.
Permits entities other than players.

<x> <y> <z> (BE: destination: x y z)

Specifies the coordinates to teleport the target(s) to. <x> and <z> must fall within the range -30,000,000 to 30,000,000 (exclusive, without the commas), and <y> must be within the range -4096 to 4096, inclusive. May use tilde and caret notation to specify a position relative to the target's current position – an exception to tilde notation's usual rule of being relative to the executor of the command.
  1. REDIRECT Template:Command

Template:Redr can be used to teleport relative to executor of the command.

<destination player>

Specifies the entity to teleport the target(s) to. Must be a player name, a target selector, or a Minecraft:UUID.
Permits entity other than players.

<yaw> and <pitch>

Specifies the rotation.
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.
For the vertical rotation (pitch), -90.0 for straight up to 90.0 for straight down.
Tilde notation can be used to specify a rotation relative to the target's previous rotation.

Result

Fails if the arguments are not specified correctly, if <target player> fails to resolve to one or more entities (named players must be online), or if <destination player> fails to resolve to a single entity (a named player must be online). Fails individually for each entity referenced by <target player> that is not in the same dimension as the <destination player>, if specified.

On success, teleports the targets to the specified destination.

Examples

  • To teleport yourself to Alice: tp Alice
  • To teleport all players to yourself: tp @a @s
  • To teleport yourself to x=100 and z=100, but three blocks above your current position: tp 100 ~3 100
  • To rotate the nearest player 10 degrees to the right without changing their position: tp @p ~ ~ ~ ~10 ~

History

Template:HistoryTable

Navigation

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

ja:コマンド/tp/Java Edition 17w45a以前 zh:命令/tp/Java版17w45a前