/teleport
In this tutorial, I will be showing you how to use the /teleport command along with showing some example commands.
/teleport <entity> <x> <y> <z> [<y-rot> <x-rot>]
The difference between /tp and /teleport is:
For example:
/tp @e[type=pig,name=APig] ~ ~3 ~ Will teleport the pig named "APig" 3 blocks above itself.
/teleport @e[type=pig,name=APig] ~ ~3 ~ Will teleport the pig named "APig" 3 blocks above you if ran it in chat.
This is mainly useful for maintaining head rotations while teleporting entities but you will see this more if you do the basic creations course ;) ~Blue
/teleport <entity> <x> <y> <z> [<y-rot> <x-rot>]
The difference between /tp and /teleport is:
- When running a /tp command and using relative coordinates, the coordinates are calculated from the entity focused by the command
- When running a /teleport command, relatives coordinates are calculated from the entity who is executing the command
For example:
/tp @e[type=pig,name=APig] ~ ~3 ~ Will teleport the pig named "APig" 3 blocks above itself.
/teleport @e[type=pig,name=APig] ~ ~3 ~ Will teleport the pig named "APig" 3 blocks above you if ran it in chat.
This is mainly useful for maintaining head rotations while teleporting entities but you will see this more if you do the basic creations course ;) ~Blue