Minecraft:Commands/locate
More actions
Displays the Minecraft:coordinates for the closest Minecraft:generated structure or Minecraft:biomes of a given type in the chat for the player who executed the Minecraft:command. Template:IN, it can also display for the closest points of interest.
Usage
For Template:Cd, the vertical coordinate of structure is ignored when finding. Template:IN, the horizonal search range is 201x201 units of the Structure's spacing (see Default structure sets for values). For example, Mansions have a spacing of 80 chunks, so it can search out ±128,000 blocks before failure. For concentric ring structures like Strongholds, there is no set max distance. Structures in the Anvil chunk region of the command's execution are prioritized over others due to a bug, meaning the found structure is not necessarily the closest.<ref>Template:Bug</ref>
For Template:Cd, the horizonal search resolution is 32 blocks, and vertical resolution is 64 blocks, which means biomes that are too narrow may not be found. The horizonal search range is 12801×12801 blocks Template:In.Template:Info needed
Template:IN, for Template:Cd, the search range is a sphere with a radius of 256 blocks.
When locating structure or POI, if successful, the following message is sent to chat: "The nearest <requested thing(s)> is at [<x> ~ <z>] (<distance> blocks away)", in which <distance> is the horizontal distance from the executor.
When locating biome, if successful, the following message is sent to chat: "The nearest <requested biome(s)> is at [<x> <y> <z>] (<distance> blocks away)", in which <distance> is the distance from the executor to the biome.
Template:IN, the coordinates in these messages can be clicked, which can put the command Template:Cmd in the chat box. The command can then be executed, and the player is sent to those coordinates. Also, Template:In, this message does not appear if the command was run from a function.<ref>Template:Bug</ref>
Syntax
- Java Edition
/locate structure <structure>/locate biome <biome>/locate poi <poi>
- Bedrock Edition
/locate structure <structure: Structure> [useNewChunksOnly: Boolean]/locate biome <minecraft: Biome>
Arguments
Template:El : Template:Argument
Template:El: Template:Argument
- Specifies the Minecraft:biome to locate. Template:IN, this argument also supports biome Minecraft:tags.
- Template:Arg desc
Template:El (case-sensitive): Template:Argument
Template:El: Template:Argument
- Specifies the structure to locate. See Minecraft:Generated structures#Data values.
- Template:Arg desc
Template:El: Template:Argument
- Specifies if a structure of any type wants to be located in new chunks only (
true) or not (false), and it'sfalseby default. - Template:Arg desc
Template:El : Template:Argument
- Specifies the point of interest to locate.
- Template:Arg desc
- The following are resource locations of POIs:
Point of Interest ID Blast Furnace Template:Cd Bee nest Template:Cd Beehive Template:Cd Smoker Template:Cd Cartography Table Template:Cd Brewing Stand Template:Cd Composter Template:Cd Barrel Template:Cd Fletching Table Template:Cd Bed Template:Cd Cauldron Template:Cd Lectern Template:Cd Lightning Rod Template:Cd Lodestone Template:Cd Stonecutter Template:Cd Bell Template:Cd Nether Portal Template:Cd Loom Template:Cd Smithing Table Template:Cd Grindstone Template:Cd
- This argument also supports point of interest type tags, as following:
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table
Examples
- To obtain the coordinates of the nearest woodland mansion: Template:Cmd
- To obtain the coordinates of the nearest pillager outpost in new chunks only: Template:CmdTemplate:Only
- To obtain the coordinates of the nearest village of any kind: Template:CmdTemplate:Only/Template:CmdTemplate:Only
- To obtain the coordinates of the nearest desert biome: Template:Cmd
- To obtain the coordinates of the nearest point of interest used by villagers: Template:CmdTemplate:Only
History
Java Edition
Bedrock Edition
References
External links
Minecraft:de:Befehl/locate Minecraft:es:Comandos/locate Minecraft:fr:Commandes/locate Minecraft:ja:コマンド/locate Minecraft:ko:명령어/locate Minecraft:pt:Comandos/locate Minecraft:ru:Команды консоли/locate Minecraft:uk:Команди консолі/locate Minecraft:zh:命令/locate