Skip to content
MC Command Generator

/tp Command Generator

Beta

Pick who to move and where — exact coordinates, a spot relative to them, a few blocks ahead of where they look, or another player — and which way they should face when they land. The map shows the jump.

Describe it — AI writes the command

Type what you want in plain words. The AI fills the form below, so you can see it and change anything. It follows the edition and version you picked.

Checking the AI…

Paste a command— edit it here or move it to another version
Destination~ relative · ^ local

^ ^ ^5 = five blocks forward from where they look (left, up, forward).

NEstartlook here
Height64pitch 0°
You stand at 0 64 0 facing south. Lands 20.0 blocks away at 0 64 20, facing south.

Your command · Java 26.3

29 characters
/tp @p ~ ~ ~20 facing ~ ~ ~40

Raw editor

How it works

Coordinates: absolute, relative and local

tp @p 100 64 -20       exact spot
tp @p ~ ~10 ~          10 blocks up from where they are
tp @p ^ ^ ^5           5 blocks forward from where they look

~ counts from the player’s position; ^ counts left, up and forward from where they are looking, and all three numbers must then use ^. Java added ^ in 1.13.

Facing

tp @p 0 64 0 180 0                         yaw 180 = north, pitch 0 = level
tp @p ~ ~ ~20 facing ~ ~ ~                  look back at where you were
tp @p ~ ~ ~ facing entity @e[type=cow,limit=1] eyes   (Java 1.13+)
tp @p ~ ~ ~ facing @e[type=cow,c=1]            (Bedrock)

Yaw is the compass direction: 0 south, 90 west, 180 north, -90 east. Pitch is up and down, from -90 (straight up) to 90 (straight down). ~ keeps the current angle. Facing a position or an entity needs Java 1.13 or later; Java 1.8 to 1.12 only take yaw and pitch. Bedrock always faces the entity’s feet.

To another player or mob

tp @a Steve
tp @s @e[type=villager,limit=1]

The destination must be exactly one entity, so add limit=1 (Java) or c=1 (Bedrock) to an @e selector. On Bedrock you can add true at the end (checkForBlocks) so the teleport only happens when the spot is free. Use the Build button or the target selector generator for the selectors.

FAQ

What is the difference between /tp and /teleport?

None on Java 1.13 and later or on Bedrock: /tp is a short name for /teleport. On Java 1.10 to 1.12 /teleport had a slightly different syntax, so the generator writes /tp, which works everywhere.

How do I teleport someone up without moving them sideways?

Use relative coordinates: tp @p ~ ~10 ~ moves them 10 blocks up. The ~ means "from where they are".

How do I teleport a player and make them face north?

Add yaw and pitch after the coordinates: tp @p 0 64 0 180 0. Yaw 180 is north, 0 south, 90 west, -90 east.

Why does /tp to @e fail?

The destination has to be a single entity. Add limit=1 (Java) or c=1 (Bedrock), or use @n for the nearest one.

How do I teleport someone forward in the direction they look?

Use local coordinates: tp @p ^ ^ ^10 moves them 10 blocks ahead. All three values must start with ^. It needs Java 1.13+; Bedrock has it too.