Server Commands
How to Use the Teleport Command
The teleport command moves any player instantly: to another player, to exact X Y Z coordinates, or by a relative ~ ~ ~ offset. Here is the real syntax with /tp and /teleport, plus the target selectors that make it powerful.
The three ways to teleport
- 1Enable cheats or use opOn a world, turn on Allow Cheats. On a server, run /op YourName from console so commands work.
- 2Teleport to a playerType /tp Steve Alex to move Steve to Alex. With one name, /tp Alex sends yourself to Alex.
- 3Teleport to coordinatesType /teleport Steve 120 64 -340 to jump to an exact X Y Z. Press F3 to read your current coordinates.
- 4Use relative offsetsType /tp @s ~ ~10 ~ to move 10 blocks up from where you stand. ~ keeps the current axis value.
- 5Target with selectorsUse @p (nearest), @a (everyone), @s (self), or @e[type=...] to teleport groups instead of one name.
What you need
Coordinates (F3)
Target selectors
Player names
Relative ~ offsets
Quick answers
?
What is the difference between /tp and /teleport?
Nothing. /tp is the short alias of /teleport in modern Java and Bedrock. Both take the same arguments.
?
How do I teleport to coordinates?
Run /teleport <player> <x> <y> <z>for example /teleport Steve 120 64 -340. Get your coords from the F3 screen on Java.
?
What do the ~ symbols mean?
Tilde means relative to your current position. ~ ~10 ~ keeps X and Z and adds 10 to Y, moving you straight up.
?
Can I teleport another player to me?
Yes. From console or op, run /tp PlayerName @s, or /tp PlayerName YourName, to pull them to your location.
?
Why does it say Unknown command or no permission?
Cheats are off, or you are not op. Enable cheats in the world, or run /op YourName from the server console first.
?
Can I teleport everyone at once?
Use the @a selector: /tp @a 120 64 -340 sends every online player to that coordinate.