MC Commands

Minecraft Teleport(tp) Command Generator

Easily generate the /tp or /teleport command to move players or entities to specific coordinates, other entities, or with specific rotations.

/tp @p ~ ~ ~

What this generator does

Choose the target, the destination (coordinates or an entity) and where to look on arrival, and the generator builds the /tp command. The facing options for looking at coordinates or an entity need 1.13, so they are disabled when you pick an older version. The share link button sends your exact settings to someone else.

Command Usage Examples

1. Gather nearby zombies in one place

Brings only zombies within 30 blocks to your position. Since 1.13 the radius is written distance=..30; in 1.11–1.12 it is r=30.

1.13+/tp @e[type=zombie,distance=..30] ~ ~ ~
1.11 ~ 1.12/tp @e[type=zombie,r=30] ~ ~ ~

2. Pull in dropped diamonds only

Picks only diamonds among dropped items and brings them to you. In 1.12 and earlier there is no way to filter by item (no nbt condition), so all items are pulled.

1.13+/tp @e[type=item,nbt={Item:{id:"minecraft:diamond"}}] @s
~ 1.12/tp @e[type=item] @p

3. Dash 10 blocks where you look

Local coordinates (^) follow your view direction, so you move 10 blocks forward and keep your rotation. Local coordinates need 1.13.

/tp @s ^ ^ ^10

4. Look at the nearest villager

Keeps your position and only turns your head toward the eyes of a villager within 5 blocks. facing needs 1.13.

/tp @s ~ ~ ~ facing entity @e[type=villager,distance=..5,limit=1] eyes

5. Go to coordinates in the Nether

/tp reads coordinates within your current dimension only. To go to another dimension, set it with execute in first. (1.13+)

/execute in minecraft:the_nether run tp @s 0 100 0

/tp changes by version (Java Edition)

When a /tp command from an old tutorial fails in a current version, it is usually because of these changes.

VersionChange
1.11Entity IDs switched to lowercase with underscores, for example type=Zombie became type=zombie.
1.13/tp and /teleport became the same command, and local coordinates (^) and the facing option were added. Selector radius uses distance= instead of r= and rm=.

How we checked: the commands and error messages on this page were run and confirmed by the site operator on our own Java server (except permission cases involving other players). Version data is extracted from the official server jar's data generator reports, and FAQ error messages are quoted from the game's language file (en_us). Last checked: November 2026.

Useful values

Values people look up most often for positions and rotation. All for Java Edition.

1. Three kinds of coordinates

· Numbers (100 64 100): a fixed position in the world · ~ (~ ~10 ~): offsets east-west, up-down and north-south from where the command runs · ^ (^ ^ ^5): offsets left-right, up-down and forward-back from where you look (1.13+) ~ and ^ cannot be mixed in one position.

2. Rotation values (yaw, pitch)

Add yaw and pitch after the coordinates, as in /tp @s ~ ~ ~ 90 0, to set where the target looks. · yaw 0: south (+Z) / 90: west (-X) / 180: north (-Z) / -90: east (+X) · pitch -90: straight up / 0: straight ahead / 90: straight down

3. Old selector syntax vs. new

Common snags when following old tutorials. (1.12 and earlier → 1.13+) · r=10 → distance=..10 · rm=5,r=10 → distance=5..10 · c=1 → limit=1,sort=nearest · type=Zombie (1.10 and earlier) → type=zombie

Frequently Asked Questions (FAQ)

Q. I get 'Cannot mix world & local coordinates'.

A. You mixed ~ (relative) and ^ (local) in one position. For example ~ ~ ^5 is invalid; write all three with ^ (^ ^ ^5) or all with ~ or numbers.

Q. I get 'Only one entity is allowed, but the provided selector allows more than one'.

A. The destination uses a selector that can match several entities. The destination must be a single entity, so add limit=1, as in @e[type=cow,limit=1,sort=nearest]. The entities being moved can be many.

Q. A command block says 'An entity is required to run this command here'.

A. Without a target, as in /tp 100 64 100, the command tries to move whoever runs it, and a command block is not an entity. Always name the target, as in /tp @p 100 64 100.

Q. I get 'No entity was found'.

A. No entity matches the selector. Check the type spelling (lowercase since 1.11), the distance range, and whether the target is in an unloaded chunk.

Q. I get 'Invalid position for teleport'.

A. The destination is outside the area you can teleport to. X and Z must be within ±30,000,000, so double-check the number of digits.

Q. What is the difference between /tp and /teleport?

A. Since 1.13 /tp is just short for /teleport, so they are identical. In 1.12 and earlier they were separate commands, and /teleport always required a target.

Q. How do I go straight to coordinates in the Nether or the End?

A. /tp alone cannot change dimensions. Set the dimension with execute in, as in /execute in minecraft:the_nether run tp @s 0 100 0. The End is minecraft:the_end and the Overworld is minecraft:overworld.