Commands/locate

From Minecraft Wiki
Jump to: navigation, search
locate
Restrictions

Operator

First introduced

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

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

Syntax[edit]

  • Java Edition
locate <StructureType>
  • Bedrock Edition
locate <feature: Feature>

Arguments[edit]

<StructureType> (BE: feature: Feature)

Specifies the structure to locate. Must be one of the following:
Feature name Java Edition Bedrock Edition Dimension
Bastion remnant bastion_remnant bastionremnant The Nether
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 nether_fossil The Nether
Ocean ruins ocean_ruin ruins Overworld
Pillager outpost pillager_outpost pillageroutpost Overworld
Ruined portal ruined_portal ruinedportal Overworld, The Nether
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
In Java Edition, the structure type is case-sensitive.

Result[edit]

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)

Examples[edit]

  • To obtain the coordinates of the nearest woodland mansion: /locate mansion

History[edit]

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.
1.1620w11aNether fossils can now be located.
20w21aStructure names are now specified as lowercase.
Pocket Edition
1.0.0alpha 0.17.0.1Added /locate.
alpha 0.17.0.2Removed /locate.
alpha 1.0.0.0Re-added /locate. Works only for strongholds.
1.1.0alpha 1.1.0.0/locate can now find other structures.