From Minecraft Wiki
Jump to: navigation, search
Permission level required

2‌[JE only]
1‌[BE only]


Cheat only‌[BE only]

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>


JE: <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.


CommandTriggerJava EditionBedrock Edition
anythe arguments are not specified correctly Unparseable Failed
unable to locate the requested feature within a square of 201×201 chunks[needs testing in Bedrock Edition] Failed
On successDisplays the coordinates for the closest structure of the given type in the chat


CommandEditionSituationSuccess Count/execute store success .../execute store result ...
anyJava EditionOn fail000
On success11horizontal distance between the executor and the structure feature
Bedrock EditionOn fail0N/AN/A
On success1N/AN/A


On success, displays the coordinates for the closest structure of the given type in the chat. 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.
1.1620w11aNether fossils can now be located.
20w21aStructure names are now specified as lowercase.
Pocket Edition
1.0.0alpha /locate.
alpha /locate.
alpha /locate. Works only for strongholds.
1.1.0alpha can now find other structures.