Wiki 9Minecraft Wiki 9Minecraft

How to Find Structures Using the Locate Command

If you want to visit a specific landmark without wandering across the Overworld on foot, you can pinpoint its exact coordinates using vanilla commands.

Enabling Commands in Survival

To run structure-finding commands, your world must allow cheats. If you created your survival world without cheats enabled, press Esc to open the pause menu, select Open to LAN, toggle Allow Commands (or Allow Cheats) on, and start the LAN world. Commands will remain active until you exit the session.

Locating and Teleporting to a Building

1. Open the chat window and type /locate structure thunstructures: without pressing Enter.

2. Use the Tab key or arrow keys to cycle through the autocomplete list of the 20 available structures, then select the <name_of_structure> you want to visit.

3. Press Enter to run the command. The game searches nearby chunks and prints the nearest matching coordinates in chat.

4. If you only want directions for a survival trip, write down the X and Z coordinates and close LAN mode by saving and reloading your world.

5. To jump straight there, open chat again and click the green coordinates in the message. This fills in a /tp command automatically—press Enter to teleport directly to the site and check its custom loot chests.