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


 * Pocket Edition


 * Arguments


 * StructureType (PE: feature: string)


 * Specifies the structure to locate. Must be one of the following:
 * (for buried treasure)
 * (PE: ) (for end cities)
 * (PE: ) (for nether fortresses)
 * (PE: ) (for woodland mansions)
 * (PE: ) (for abandoned mineshafts)
 * (PE: ) (for ocean monuments)
 * (for underwater ruins)
 * (for shipwrecks)
 * (PE: ) (for strongholds)
 * (PE: ) (for desert temples, jungle temples, witch huts, and igloos)
 * (for desert temples)
 * (for igloos)
 * (for jungle temples)
 * (for witch hut)
 * (PE: ) (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: