Teleport to the Highest Ground
Land on top of the terrain instead of underground
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Uses Java's `positioned over world_surface` heightmap to find the top solid block at your X/Z, then teleports you one block above it so you land on the surface. This avoids dropping you inside caves or terrain when you only know horizontal coordinates. Swap world_surface for motion_blocking if you want to ignore leaves and other non-collision blocks.
/execute positioned ~ ~ ~ positioned over world_surface run tp @s ~ ~ ~71 characters
- Java: yes
- Bedrock: no
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java).
- Run the command; the game resolves the surface height at your current X/Z.
- You are teleported onto the highest ground there instead of underground.
Related commands
Set where you respawn after dying to your current location
/spawnpoint @s ~ ~ ~