Skip to content
[/craft]

Teleport to the Highest Ground

Land on top of the terrain instead of underground

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Uses 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

How to use

  1. Open chat (T on Java).
  2. Run the command; the game resolves the surface height at your current X/Z.
  3. You are teleported onto the highest ground there instead of underground.

Related commands

Instantly move to a specific X Y Z location

/tp @s 100 64 -200

Instantly move to where another player is standing

/tp @s PlayerName

Set where you respawn after dying to your current location

/spawnpoint @s ~ ~ ~

Change where new players and players with no bed spawn

/setworldspawn ~ ~ ~

Pull every player in the world to your location instantly

/tp @a @s

Jump straight up 10 blocks without flying

/tp @s ~ ~10 ~