Editing
MinecraftCommands
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== teleport === {{/infobox |tp |op |1.10|1.10-pre1 }} Teleports entities (players, mobs, items, etc.). ;Syntax : <code>teleport <''target entity''> <''x''> <''y''> <''z''> [<''y-rot''> <''x-rot''>]</code> ;Arguments : ''target entity'' :: Specifies the entity(s) to be teleported. Must be either a player name or a [[#Target selectors|target selector]]. : ''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 notation|tilde notation]] to specify a position relative to the position of the executor of the command. {{cmd|tp}} or {{cmd|execute}} can be used to teleport using coordinates relative to the target. : ''y-rot'' (optional) :: Specifies the horizontal rotation (-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). Tilde notation can be used to specify a rotation relative to the target's previous rotation. : ''x-rot'' (optional) :: Specifies the vertical rotation (-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.{{verify|this behavior is merely copied from /tp, should be verified}} : On success, teleports the targets to the specified destination. ;Examples : To teleport all cows to yourself: <code>teleport @e[type=Cow] ~ ~ ~</code> : To teleport yourself to x=100 and z=100, but three blocks above your current position: <code>teleport @p 100 ~3 100</code> : To rotate yourself 10 degrees to the right without changing your position: <code>teleport @p ~ ~ ~ ~10 ~</code> <!-- please retain double newline above for section differentiation -->
Summary:
Please note that all contributions to Hegemon Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Hegemon Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information