Commands/locate

Displays the coordinates for the closest 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
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * ||  || rowspan=4 |
 * }
 * }
 * }
 * }

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  for some structures. (All structures in Bedrock Edition)


 * Examples


 * To obtain the coordinates of the nearest woodland mansion:

History
命令/locate