Teleport by a Relative Offset
Nudge yourself a set number of blocks from where you stand
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Moves you relative to your current position using tilde (~) notation instead of absolute coordinates. Here ~5 shifts 5 blocks east, ~ keeps your height, and ~-3 moves 3 blocks north. Leaving a tilde bare means 'no change' on that axis, so you can shift along one direction only.
/tp @s ~5 ~ ~-315 characters
- Java: yes
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock).
- Edit the offsets after each ~ (positive or negative) for the shift you want.
- Press Enter — you jump the specified distance from your current spot.
Related commands
Land dead-center on a block instead of at its corner
/tp @s 100.5 64 100.5Set where you respawn after dying to your current location
/spawnpoint @s ~ ~ ~