From Minecraft Wiki
Jump to: navigation, search


First introduced

Java Edition 1.11 (16w39a)
PE 1.0.0 (Pocket Edition alpha

Displays the coordinates for the closest generated structure of a given type in the chat for the player who executed the command.

  • Java Edition
locate <StructureType>
  • Bedrock Edition
locate <feature: Feature>
StructureType / Feature
Specifies the structure to locate. Must be one of the following:
Feature name Java Edition Bedrock Edition Which dimension the generated structure is found?
Buried treasure Buried_Treasure buriedtreasure Overworld
End city EndCity endcity The End
Fortress Fortress fortress The Nether
Woodland mansion Mansion mansion Overworld
Mineshaft Mineshaft mineshaft Overworld
Monument Monument monument Overworld
Nether fossil[upcoming: JE 1.16] Nether_Fossil N/A(Nether fossils do not yet exist in bedrock edition) The Nether
Ocean ruins Ocean_Ruin ruins Overworld
Pillager outpost Pillager_Outpost pillageroutpost Overworld
Shipwreck Shipwreck shipwreck Overworld
Stronghold Stronghold stronghold Overworld
Desert pyramid Desert_Pyramid temple Overworld
Igloo Igloo
Jungle pyramid Jungle_Pyramid
Swamp hut Swamp_Hut
Village Village village Overworld

The structure type is case-sensitive.‌[Java Edition only]

Fails if the arguments are not specified correctly, or if unable to locate the requested feature (for example, if it's in a different dimension).
If successful, displays the coordinates for the closest structure of the given type in the chat, for the player who executed the command. Displays the Y coordinate as (y?) for some structures. (All structures in Bedrock Edition)
To obtain the coordinates of the nearest woodland mansion: locate Mansion


Java Edition
1.1116w39aAdded /locate.
1.1318w06a/locate now accepts different structure names for all structures previously grouped under Temple: Desert_Pyramid, Igloo, Jungle_Pyramid, and Swamp_Hut.
18w08aAdded a clickable teleport link to the /locate command output.
Upcoming Java Edition
1.1620w11aNether fossils can now be located.
Pocket Edition
1.0.0alpha /locate
alpha /locate.
alpha /locate. Works only for strongholds.
1.1.0alpha can now find other structures.