Commands/locate

From Minecraft Wiki
Jump to: navigation, search
locate
Restrictions

Operator

First introduced

1.11 (16w39a)
PE 1.0 (PE 1.0 build 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
Nether fortress Fortress fortress
Woodland mansion Mansion mansion
Abandoned mineshaft Mineshaft mineshaft
Ocean monument Monument monument
Underwater ruins Ocean_Ruin ruins
Shipwreck Shipwreck shipwreck
Stronghold Stronghold stronghold
Desert Temple Desert_Pyramid temple
Igloo Igloo
Jungle Temple Jungle_Pyramid
Witch hut Swamp_Hut
Village Village village

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