Commands/locate
< Commands
locate
Restrictions | |
---|---|
First introduced |
Java Edition 1.11 (16w39a) |
Displays the coordinates for the closest generated structure of a given type in the chat for the player who executed the command.
Contents
Syntax[edit]
- Java Edition
/locate <StructureType>
- Bedrock Edition
/locate <feature: Feature>
Arguments[edit]
JE: <StructureType>
BE: feature: Feature
: StructureFeatureType
- 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]
Command | Trigger | Java Edition | Bedrock Edition |
---|---|---|---|
any | the arguments are not specified correctly | Unparseable | Failed |
if unable to locate the requested feature within a square with a side length of 201 chunks[needs testing in Bedrock Edition] | Failed | ||
On success | Displays the coordinates for the closest structure of the given type in the chat |
Output[edit]
Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
---|---|---|---|---|---|
any | Java Edition | On fail | 0 | 0 | 0 |
On success | 1 | 1 | horizontal distance between the executor and the structure feature | ||
Bedrock Edition | On fail | 0 | N/A | N/A | |
On success | 1 | N/A | N/A |
Note[edit]
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).
Examples[edit]
- 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. | ||||
1.16 | 20w11a | Nether fossils can now be located. | |||
20w21a | Structure names are now specified as lowercase. | ||||
Pocket Edition | |||||
1.0.0 | alpha 0.17.0.1 | Added /locate . | |||
alpha 0.17.0.2 | Removed /locate . | ||||
alpha 1.0.0.0 | Re-added /locate . Works only for strongholds. | ||||
1.1.0 | alpha 1.1.0.0 | /locate can now find other structures. |