Commands/locate

From Minecraft Wiki
Jump to: navigation, search
locate
Restrictions

Operator

First introduced

1.11 (16w39a)
PE 1.0 (PE 1.0 build 1)

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

Syntax
  • Java Edition
locate <StructureType>
  • Pocket Edition
locate <feature: string>
Arguments
StructureType (PE: feature: string)
Specifies the structure to locate. Must be one of the following:

The structure type is case-sensitive.

Result
Fails if the arguments are not specified correctly, or if unable to locate the requested StructureType (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 (y?) for some structures.
Examples
To obtain the coordinates of the nearest woodland mansion: locate Mansion