Commands/locate

From Minecraft Wiki
Jump to: navigation, search
locate
Restrictions

Operator

First introduced

1.11 (16w39a)
PE 1.0 (Pocket Edition alpha 0.17.0.1)

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

Syntax
  • Java Edition
locate <StructureType>
  • Bedrock Edition
locate <feature: Feature>
Arguments
StructureType / Feature
Specifies the structure to locate. Must be one of the following:
Feature name Java Edition Bedrock Edition
Buried treasure Buried_Treasure buriedtreasure
End city EndCity endcity
Fortress Fortress fortress
Woodland mansion Mansion mansion
Mineshaft Mineshaft mineshaft
Monument Monument monument
Underwater ruins Ocean_Ruin ruins
Shipwreck Shipwreck shipwreck
Stronghold Stronghold stronghold
Desert pyramid Desert_Pyramid temple
Igloo Igloo
Jungle pyramid Jungle_Pyramid
Swamp hut Swamp_Hut
Village Village[until JE 1.14]

New_Village[upcoming: JE 1.14]

village

newvillage[upcoming: BE 1.10]

Pillager outpost[upcoming: JE 1.14 & BE 1.10] Pillager_Outpost pillageroutpost

The structure type is case-sensitive.

Result
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. Will display the Y coordinate as (y?) for some structures. (All structures in Bedrock Edition)
Examples
To obtain the coordinates of the nearest woodland mansion: locate Mansion

History[edit]

Java Edition
1.11 16w39a Added /locate.
1.13 18w06a /locate now accepts different structure names for all structures previously grouped under Temple: Desert_Pyramid, Igloo, Jungle_Pyramid, and Swamp_Hut.
18w08a Added a clickable teleport link to the /locate command output.
Pocket Edition
1.0 alpha 0.17.0.1 Added /locate
alpha 0.17.0.2 Removed /locate.
alpha 1.0.0.0 Re-added /locate. Only works for strongholds.
1.1 alpha 1.1.0.0 /locate can now find other structures.