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
(BE: )


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


 * {| class="wikitable sortable"

! Feature name || Java Edition || Bedrock Edition || Dimension
 * || The Nether
 * ||  ||   || Overworld
 * ||  ||   || The End
 * ||  ||   || The Nether
 * ||  ||   || Overworld
 * ||  ||   || Overworld
 * ||  ||   || Overworld
 * N/A || The Nether
 * ||  ||   || Overworld
 * || Overworld
 * || Overworld, The Nether
 * ||  ||   || Overworld
 * ||  ||   || Overworld
 * ||  || rowspan=4 |   || rowspan=4 | Overworld
 * || Overworld
 * }
 * $$, the structure type is case-sensitive.
 * N/A || The Nether
 * ||  ||   || Overworld
 * || Overworld
 * || Overworld, The Nether
 * ||  ||   || Overworld
 * ||  ||   || Overworld
 * ||  || rowspan=4 |   || rowspan=4 | Overworld
 * || Overworld
 * }
 * $$, the structure type is case-sensitive.
 * ||  ||   || Overworld
 * ||  ||   || Overworld
 * ||  || rowspan=4 |   || rowspan=4 | Overworld
 * || Overworld
 * }
 * ⇭⇭⇭, the structure type is case-sensitive.
 * || Overworld
 * }
 * ⇭⇭⇭, the structure type is case-sensitive.
 * || Overworld
 * }
 * ⇭⇭⇭, the structure type is case-sensitive.
 * || Overworld
 * }
 * ⇭⇭⇭, the structure type is case-sensitive.
 * ⇭⇭⇭, 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 ⇭⇭⇭)

Examples

 * To obtain the coordinates of the nearest woodland mansion:

History
Befehl/locate 命令/locate