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.
/teleport at a glance
Syntax
/teleport [<targets>] <destination>|<location>…Who may run it
OP (L2)
What it does
Teleports entities to a location, another entity, or adjusts their rotation. Full form of /tp with extended…
Three things /teleport is actually used for
/teleport Steve 120 64 -340Sets Steve down at those exact coordinates. Read your own from the F3 screen on Java or the coordinates gamerule on Bedrock.
/teleport @s ~ ~10 ~Moves you ten blocks straight up from wherever you stand. The tildes mean relative, so X and Z stay as they are.
/teleport @a @sPulls every online player to your position, which is the fastest way to gather a server for an event.
/teleport sits with the player commands in Minecraft, 12 of them in total. The ones with a guide here: /effect, /enchant, /experience, /gamemode, /give, /tp, /xp.
Every command with its full argument list lives in the command reference.
Blocks and items in this guide
All 2 of these are named in the guide above, starting with Trial Key. Look them up in the item database.
More guides on this site
Guides that go with this one
How to Use the /setblock Command in Minecraft
Place any block at exact coordinates with /setblock. Learn relative ~ and absolute syntax, block states,...
How to Use the /summon Command in Minecraft
Spawn any mob with /summon, set exact coordinates with ~ ~ ~, and customize it using NBT tags like...
How to Set the World Spawn in Minecraft
Use /setworldspawn to fix where new players appear, and /spawnpoint to send specific players to a chosen...
How to Change the Time With Commands in Minecraft
Use /time set day, night, and midnight plus /time add to control the day-night cycle on your Minecraft...
How to Use the /enchant Command in Minecraft
Apply enchantments instantly with /enchant @p sharpness 5, no XP, no anvil. Syntax, level limits,...
How to Use the /fill Command in Minecraft
Fill any region with one block using /fill x y z x2 y2 z2 block. Learn solid, hollow, outline and...
Database →
Command Reference
Syntax, arguments and examples for every command.
Hosting →
Managed Hosting
Skip the setup: a managed server online in minutes.
Database →
Item Database
Every item with its stats, IDs, recipes and uses.
Guides →
More Server & Admin guides
Run a server: setup, hosting, permissions, worlds and crossplay.