Minecraft Pi - teleport to world surface at x and z coords

mc_surface_teleport  x (number), z (number)

Teleports you to the specified x and z coordinates with the y automatically set to place you on the surface of the world. For example, if the x and z coords target a mountain, you’ll be placed on top of the mountain, not in the air or under the ground. See mc_ground_height for discovering the height of the ground at a given x, z point.

Introduced in v2.5

Example

# Example 1

mc_surface_teleport 40, 50



#=> Teleport user to coords x = 40, y = height of surface, z = 50