Teleport Command Generator — /tp to Coordinates or an Entity (Java Edition)
Most of these need operator permission — run them from an op's chat, a command block, or the server console.
How to Use the Teleport Command Generator
- Pick a mode: To Coordinates for an exact X Y Z position, or To Entity to jump straight to wherever another entity currently is.
- Set the Target – the entity being moved. The default
@smeans the command’s own executor; swap in a player name or a selector like@e[type=minecraft:cow]to move something else. - In coordinate mode, fill in X/Y/Z (each accepts
~relative notation, e.g.~ ~10 ~), then optionally choose a facing mode – none, facing a fixed point, or facing another entity – or set yaw/pitch directly. - Copy the generated
/tpcommand into a command block, the console, or an operator’s chat.
Command Syntax Reference
/tp <target> <x> <y> <z> [facing <fx> <fy> <fz> | facing entity <facingTarget>] /tp <target> <x> <y> <z> [<yaw> <pitch>] /tp <target> <destination>
/tp is the modern alias of the old /teleport command – both work identically in current Java Edition. There are two independent forms: teleport to a literal position (with an optional facing override), or teleport directly to wherever another entity is standing. Facing and explicit yaw/pitch are mutually exclusive – the generator applies whichever one is selected. Coordinates accept the usual ~ (relative to command origin) and ^ (local/directional) notation as well as absolute numbers.
Frequently Asked Questions
What’s the difference between /tp and /teleport?
None functionally – /teleport is the original command name and /tp is a shorter alias added later. Both accept the exact same arguments and produce identical behavior in Java Edition.
Can I teleport a player to another player instead of coordinates?
Yes – that’s the To Entity mode. /tp @s @e[type=cow,limit=1] moves the executor to the nearest cow’s exact position, and the same pattern works with a player name or any single-entity selector as the destination.
Why does teleporting sometimes ignore my yaw and pitch?
Yaw and pitch only apply when you’re teleporting to fixed coordinates without a facing override. If a facing clause is present, the game calculates the look direction toward that point or entity instead, and any yaw/pitch you entered is not used.
Does /tp work across dimensions?
Not directly with a plain /tp to coordinates – that command operates within the executor’s current dimension. To move a player between the Overworld, Nether, and End, use /execute in <dimension> run tp @s <x> <y> <z>.
Related Tools
- Spawnpoint Command Generator – set where a player respawns instead of moving them right now.
- Spreadplayers Command Generator – scatter many players randomly instead of teleporting one to an exact spot.
- Spectate Command Generator – follow an entity’s camera without actually teleporting to it.