Commandslocate – Official Minecraft Wiki | minecraft locate village command
Displaysthecoordinatesfortheclosestgeneratedstructure[1]ofagiventypeinthechatfortheplayerwhoexecutedthecommand[2].Syntax[]/locate
Displays the coordinates for the closest generated structure[1] of a given type in the chat for the player who executed the command[2].
Syntax[] /locate <StructureType>/locate <feature: Feature>Arguments[]JE: <StructureType>BE: feature: Feature
Specifies the structure to locate. Must be one of the following:In Java Edition[3], the structure type is case-sensitive.Note[]The vertical coordinate of the structure is ignored when finding.
in Java Edition, structures in the Anvil chunk region of the commands execution are prioritized over others due to a bug, meaning the found structure is not necessarily the closest.[1][4][5]
If successful, in Java Edition[6], the following message is sent to chat: "The nearest <structure_type> is at [<x> ~ <z>] (<distance> blocks away)", in which <distance> is the horizontal distance between the executor and the structure feature. And the coordinates can be clicked, whi...