Teleportation: /tp and /teleport
Everything about teleportation: relative and local coordinates, and teleporting between dimensions.
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.
- /tp and /teleport syntax: target and destination
- Absolute coordinates: X Y Z
- Relative coordinates: ~X ~Y ~Z (tilde)
- Local coordinates: ^left ^up ^forward (caret)
- Setting rotation: yaw and pitch
- Teleporting to another player: /tp @s PlayerName
- Teleporting between dimensions: /execute in
- Differences between Java and Bedrock Edition
- 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
Related guides
- Minecraft command basics - Beginner - An introduction to the command system: the chat window, syntax, arguments and first steps.
- Target selectors: @a, @p, @r, @s, @e - Easy - How to pick the targets of your commands precisely with selectors and their filter arguments.
- NBT: entity and item data - Advanced - What NBT data is and how to read it, modify it and use it in commands.
- The /execute command: advanced use - Expert - The most important command in Minecraft: conditions, positions, context changes and execute chains.
Useful tools
- /give command generator - build /give commands with custom NBT interactively
- /summon command generator - create mob summoning commands visually
- /execute command generator - a step-by-step builder for /execute chains
- /effect command generator - add status effects with a command
- Command encyclopedia - the full list of all Minecraft commands