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


 * Specifies the structure to locate. Must be one of the following:
 * (BE: )  (for buried treasure)
 * (BE: ) (for end cities)
 * (BE: ) (for nether fortresses)
 * (BE: ) (for woodland mansions)
 * (BE: ) (for abandoned mineshafts)
 * (BE: ) (for ocean monuments)
 * (BE: )  (for underwater ruins)
 * (BE: )  (for shipwrecks)
 * (BE: ) (for strongholds)
 * (BE: ) (for desert temples, jungle temples, witch huts, and igloos)
 * (for desert temples)
 * (for igloos)
 * (for jungle temples)
 * (for witch hut)
 * (BE: ) (for villages)

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  for some structures.


 * Examples


 * To obtain the coordinates of the nearest woodland mansion: