Skip to main content
MC COMMANDS logoMC COMMANDS
Command Reference

Minecraft /tp Command

playerJavaBedrock

Teleports entities (players, mobs, vehicles) to specific coordinates, another entity, or across relative offsets with optional rotation angles.

Version Compatibility

Java Edition:1.21.4 (1.13+)
Bedrock Edition:1.21.60

Command Syntax

Both Editions/tp <targets> <destination> | /tp <targets> <x> <y> <z> [<yRot> <xRot>]

Arguments Explained

Practical Examples

beginnerBoth
/tp @s 100 64 -250

Teleports yourself to absolute world coordinates X=100, Y=64, Z=-250.

Standard waypoint navigation.

beginnerBoth
/tp @s ~ ~5 ~

Teleports yourself 5 blocks straight up from your current position.

Great for getting unstuck or surveying surrounding terrain.

intermediateBoth
/tp @a 0 100 0 0 0

Teleports all online players to world spawn, facing due South with a level horizon.

Setting precise spawn orientation for servers and lobbies.

intermediateJava
/tp @e[type=item,distance=..15] @s

Teleports all dropped item entities within 15 blocks directly into your position.

Instant item vacuum for mining pits or mob farm drops.

advancedBoth
/tp @s ^ ^ ^5

Teleports yourself exactly 5 blocks in the direction you are currently looking.

Local caret coordinates (^) move relative to player crosshair view.

Advertisement

Common Mistakes

Mistake:

Forgetting the tilde ~ in relative coordinates, accidentally teleporting to absolute Y=5 (the bedrock layer void)

Fix:

Always prepend relative coordinates with ~: /tp @s ~ ~5 ~ (not /tp @s 0 5 0)

Mistake:

Teleporting into unloaded chunks, causing temporary client freezing or suffocation in blocks

Fix:

Ensure chunks are loaded with /forceload add or verify safe landing coordinates first.

Mistake:

Attempting cross-dimension teleportation directly with /tp

Fix:

Standard /tp cannot switch dimensions. In Java, use: /execute in minecraft:the_nether run tp @s 0 64 0

Command Block Usage & Automation

In Command Blocks, never rely on @s because the block itself cannot be moved as a player. Use @p for player-triggered teleporters (e.g. stepping on a pressure plate), or @a[distance=..3] for walk-in portal cuboids. For spawn or lobby warp pads, always supply rotation angles (e.g. "/tp @p 100 65 -50 90 0") so players land facing forward rather than staring at a blank wall.

Automation Tip: Command blocks require Operator permissions (permission level 2+) and cheats enabled. In Java Edition, command blocks can execute commands up to 32,767 characters long compared to the 256-character player chat limit.

Useful Tips

  • Press F3 in Java Edition to view exact decimal coordinates and facing angles.

  • In Bedrock Edition, toggle "Show Coordinates" in World Settings for always-on HUD coordinates.

  • Use local coordinates (/tp @s ^ ^ ^3) to dash forward through barriers or test raycast mechanics.

Important Notes

In Java Edition, `/teleport` and `/tp` are interchangeable aliases. You can append `facing <entity|pos>` in Java 1.13+ to orient the teleported entity toward a focal point instead of specifying yaw and pitch degrees.

Frequently Asked Questions

Related Commands

Ready to build your command?

Use our interactive generator to create error-free /tp commands with a visual interface.

Open Command Generator
Advertisement