Commands/locate

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


 * Syntax


 * Java Edition


 * Bedrock Edition


 * Arguments


 * StructureType / Feature


 * Specifies the structure to locate. Must be one of the following:


 * {| class="wikitable sortable"

! Feature name || Java Edition || Bedrock Edition || Which dimension the generated structure is found?
 * ||  ||   || Overworld
 * ||  ||   || The End
 * ||  ||   || The Nether
 * ||  ||   || Overworld
 * ||  ||   || Overworld
 * ||  ||   || Overworld
 * N/A(Nether fossils do not yet exist in bedrock edition)|| The Nether
 * ||  ||   || Overworld
 * || Overworld
 * ||  ||   || Overworld
 * ||  ||   || Overworld
 * ||  || rowspan=4 |   || rowspan=4 | Overworld
 * || Overworld
 * }
 * N/A(Nether fossils do not yet exist in bedrock edition)|| The Nether
 * ||  ||   || Overworld
 * || Overworld
 * ||  ||   || Overworld
 * ||  ||   || Overworld
 * ||  || rowspan=4 |   || rowspan=4 | Overworld
 * || Overworld
 * }
 * ||  ||   || Overworld
 * ||  || rowspan=4 |   || rowspan=4 | Overworld
 * || Overworld
 * }
 * || Overworld
 * }
 * || Overworld
 * }
 * || Overworld
 * }
 * || Overworld
 * }
 * || Overworld
 * }

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. Displays the Y coordinate as  for some structures. (All structures in Bedrock Edition)


 * Examples


 * To obtain the coordinates of the nearest woodland mansion:

History
Befehl/locate 命令/locate