/locate command
The /locate command finds the nearest structures (villages, fortresses, temples) or biomes and shows their coordinates and distance. It's an essential exploration tool when you play with cheats.
Syntax
Java and Bedrock Edition
/locate structure <structure> Parameters in <angle brackets> are required. Parameters in [square brackets] are optional.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| structure/biome | subcommand | Yes | "structure" searches for structures, "biome" searches for biomes (Java 1.19+). |
| structure/biome ID | ID | Yes | The ID of a structure (for example village, fortress, stronghold or ancient_city) or a biome (for example cherry_grove or deep_dark). |
Usage examples
Tips and tricks
In Java Edition, the /locate result is clickable in chat: click the coordinates to put a /tp command into the chat box.
/locate structure trial_chambers (1.21+) finds trial chambers, with their new mobs and loot.
In the Nether, /locate structure fortress finds a Nether fortress and /locate structure bastion_remnant finds a bastion remnant (with piglins and gold loot).
Bedrock uses slightly different syntax: /locate structure <type>, without the minecraft: prefix.
Related commands
/teleport (/tp)
Teleports a player or entity to specific coordinates, to another player or between dimensions. It...
/seed
Shows the seed of the current world. The seed is the number that determines how the terrain, stru...
/execute
The most powerful command in Minecraft. It runs other commands in a modified context: as another ...
/fillbiome
Changes the biome in a chosen area without touching the blocks. The new biome affects things like...
Frequently asked questions
How do you use the /locate command in Minecraft?
Open the chat with the T or / key and type the command using this syntax: /locate structure <structure>. The /locate command finds the nearest structures (villages, fortresses, temples) or biomes and shows their coordinates and distance. It's an essential exploration tool when you play with cheats.
What permissions does /locate require?
The /locate command requires permission level 2: Operator (OP 2). In singleplayer with cheats turned on, you automatically have full permissions. On a multiplayer server, you need operator status, which is granted with the /op command.
Does /locate work in Bedrock Edition?
Yes, the /locate command works in both Java Edition and Bedrock Edition, with similar syntax.