Our server Your next world? minecraft.pl Join
Discord
Our server Adventure? Jump in with us. minecraft.pl • Java & Bedrock Join the game
Guide 9 of 12

Teleportation: /tp and /teleport

Everything about teleportation: relative and local coordinates, and teleporting between dimensions.

Difficulty: Easy 9 topics 4 tips

Introduction

The teleport command is one of the most frequently used commands in Minecraft, both in everyday play and in advanced projects. The /tp and /teleport commands are synonyms: they work exactly the same. The basic syntax is /tp <target> <destination>, where the target is the player or entity you want to teleport and the destination is a set of coordinates or another player. Minecraft supports three types of coordinates: absolute (X Y Z, specific numbers), relative (~X ~Y ~Z, an offset from your current position) and local (^left ^up ^forward, an offset based on the direction you're looking). Relative coordinates with a tilde (~) are extremely useful: /tp @s ~ ~10 ~ teleports you 10 blocks up from your current position. Local coordinates with a caret (^) work relative to the direction you're facing: /tp @s ^ ^ ^5 teleports you 5 blocks forward, in the direction you're looking. The /tp command can also set your rotation: /tp @s 0 100 0 90 0 teleports you to 0 100 0 with a yaw of 90 and a pitch of 0. To teleport to coordinates in another dimension, you need /execute in: for example, /execute in minecraft:the_nether run tp @s 100 64 100 teleports you to those coordinates in the Nether. In Bedrock Edition the syntax is slightly different, and so is the way you teleport between dimensions. Keep in mind that teleporting doesn't cause fall damage: you appear at the new location with zero falling speed.

Topics covered in this guide

Here are the topics this guide covers. Each one comes with a detailed explanation, example commands and practical uses.

  1. /tp and /teleport syntax: target and destination
  2. Absolute coordinates: X Y Z
  3. Relative coordinates: ~X ~Y ~Z (tilde)
  4. Local coordinates: ^left ^up ^forward (caret)
  5. Setting rotation: yaw and pitch
  6. Teleporting to another player: /tp @s PlayerName
  7. Teleporting between dimensions: /execute in
  8. Differences between Java and Bedrock Edition
  9. Practical uses: spawn, warps, fast travel systems

Tips and tricks

Practical tips we picked up while working with this part of Minecraft. Remember them: they'll save you hours of trial and error.

  • Tildes on their own (~ ~ ~) mean "your current position": /tp @s ~ ~ ~ does nothing, but /execute as @a at @s run tp @s ~ ~0.1 ~ slowly lifts every player, 0.1 blocks at a time.
  • Add facing entity @e[type=armor_stand,limit=1] to /tp to make the player face a specific entity after the teleport.
  • In older versions, teleporting doesn't reset your Y-axis velocity, so you can keep falling after a teleport.
  • A warp system for your server: make a sign with a /tp command and connect it to a command block and a button for simple fast travel.

Difficulty level

This guide is rated Easy (2/5). You don't need any previous knowledge of commands, so it's a perfect place to start.

Tags

teleportationtpcoordinatesrelativelocaldimensionswarp

Related guides

Useful tools