Teleport Safely Without Suffocating
Teleport but cancel if the spot would trap you in blocks
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Adds Bedrock's checkForBlocks flag (the trailing 'true') so the teleport only happens if you would not be stuck inside a solid block at the destination. If the spot is obstructed, the command fails and you stay where you are instead of suffocating. Java has no equivalent argument, so its javaCommand is null.
/tp @s 100 70 100 true22 characters
- Java: no
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (/ on Bedrock).
- Set your destination coordinates and keep 'true' at the end for the safety check.
- Press Enter — you only move if the landing spot is clear.
Related commands
Set where you respawn after dying to your current location
/spawnpoint @s ~ ~ ~