Skip to main content
← All Guides
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.

server console, astroworldmc
> /tp Steve Alex
[+] Teleported Steve to Alex
> /teleport Steve 120 64 -340
[+] Teleported Steve to 120.0, 64.0, -340.0
> /tp @s ~ ~10 ~
[10:42:07] [Server thread/INFO]: Teleported Steve to 120.0, 74.0, -340.0
The three ways to teleport
  1. 1
    Enable cheats or use op
    On a world, turn on Allow Cheats. On a server, run /op YourName from console so commands work.
  2. 2
    Teleport to a player
    Type /tp Steve Alex to move Steve to Alex. With one name, /tp Alex sends yourself to Alex.
  3. 3
    Teleport to coordinates
    Type /teleport Steve 120 64 -340 to jump to an exact X Y Z. Press F3 to read your current coordinates.
  4. 4
    Use relative offsets
    Type /tp @s ~ ~10 ~ to move 10 blocks up from where you stand. ~ keeps the current axis value.
  5. 5
    Target with selectors
    Use @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.
Hosting
Skip the setup
Get a managed server with one click instead of configuring it all yourself.
Database
Browse coordinates and blocks
Look up block IDs, items, and structures to pair with your teleport destinations.