Minecraft

【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 NameJava Edition IDBedrock Edition IDDimension
Buried Treasureburied_treasureburiedtreasureOverworld
End CityendcityendcityThe End
The Nether FortressfortressfortressThe Nether
Woodland MansionmansionmansionOverworld
Abandoned MineshaftmineshaftmineshaftOverworld
Ocean MonumentmonumentmonumentOverworld
Ocean Ruinsocean_ruinruinsOverworld
ShipwreckshipwreckshipwreckOverworld
StrongholdstrongholdstrongholdOverworld
Desert Pyramiddesert_pyramidtempleOverworld
IglooiglootempleOverworld
Jungle Templejungle_pyramidtempleOverworld
Witch Hutswamp_huttempleOverworld
VillagevillagevillageOverworld
Pillager Outpostpillager_outpostpillageroutpostOverworld
The Nether Fossilnether_fossilN/AThe Nether
Bastion Remnantbastion_remnantbastionremnantThe Nether
Ruined Portalruined_portalruinedportalOverworld, The Nether

Execution Results and Feedback

StatusJava Edition FeedbackBedrock Edition Feedback
Parameter ErrorUnable to parse commandExecution failed
Structure Not Found (e.g., wrong dimension)Execution failedExecution failed
Out of Search Range (approx. 201×201 chunks)Execution failedExecution failed
Successful ExecutionDisplays nearest structure coordinatesDisplays nearest structure coordinates (Y value for some structures is displayed as 64)