【All Versions】Minecraft World Locate Command Guide - Locating Villages, Pillager Outposts, Woodland Mansions and Other Structures
Fu Dou Fa Shi·5/18/2026
Command Introduction
This article introduces the /locate command for locating structures. This command helps players quickly find specific generated structures in the world, such as villages, pillager outposts, and woodland mansions.
Permissions and Limitations
- Permission Level: Java Edition requires level 2; Bedrock Edition requires level 1.
- Limitations: In Bedrock Edition, cheats must be enabled.
Display Effect
After executing the command, the system displays the coordinates and distance of the nearest specified structure in the chat box. In Java Edition, the returned coordinates support clicking, which automatically enters /tp @s [structure coordinates] in the chat box for quick teleportation.
Syntax Format
Versions 1.18.2 and Earlier
- Java Edition:
locate <structure type> - Bedrock Edition (versions 1.17.30 and earlier):
locate <feature: Feature> [useNewChunksOnly: Boolean]
Versions 1.19 and Later
Java Edition:
locate biome <biome>: Locate a biome.locate poi <poi>: Locate a point of interest (POI).locate structure <structure>: Locate a structure.
Bedrock Edition:
locate biome <biome: Biome>: Locate a biome.locate structure <structure: Structure> [useNewChunksOnly: Boolean]: Locate a structure.
Note: <> indicates required items, [] indicates optional items.
Parameter Description
- biome: Specifies the namespace ID or tag of the biome to locate.
- poi: Specifies the namespace ID or tag of the point of interest to locate.
- structure: Specifies the namespace ID or tag of the structure to locate (Java Edition is case-sensitive).
- useNewChunksOnly (Bedrock Edition): Boolean value (true or false). If true, only searches in chunks that have not yet been generated. Default is false.
List of Locatable Structures
| Structure Name | Java Edition ID | Bedrock Edition ID | Dimension |
|---|---|---|---|
| Buried Treasure | buried_treasure | buriedtreasure | Overworld |
| End City | endcity | endcity | The End |
| The Nether Fortress | fortress | fortress | The Nether |
| Woodland Mansion | mansion | mansion | Overworld |
| Abandoned Mineshaft | mineshaft | mineshaft | Overworld |
| Ocean Monument | monument | monument | Overworld |
| Ocean Ruins | ocean_ruin | ruins | Overworld |
| Shipwreck | shipwreck | shipwreck | Overworld |
| Stronghold | stronghold | stronghold | Overworld |
| Desert Pyramid | desert_pyramid | temple | Overworld |
| Igloo | igloo | temple | Overworld |
| Jungle Temple | jungle_pyramid | temple | Overworld |
| Witch Hut | swamp_hut | temple | Overworld |
| Village | village | village | Overworld |
| Pillager Outpost | pillager_outpost | pillageroutpost | Overworld |
| The Nether Fossil | nether_fossil | N/A | The Nether |
| Bastion Remnant | bastion_remnant | bastionremnant | The Nether |
| Ruined Portal | ruined_portal | ruinedportal | Overworld, The Nether |
Execution Results and Feedback
| Status | Java Edition Feedback | Bedrock Edition Feedback |
|---|---|---|
| Parameter Error | Unable to parse command | Execution failed |
| Structure Not Found (e.g., wrong dimension) | Execution failed | Execution failed |
| Out of Search Range (approx. 201×201 chunks) | Execution failed | Execution failed |
| Successful Execution | Displays nearest structure coordinates | Displays nearest structure coordinates (Y value for some structures is displayed as 64) |