Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/locate

From SAS Gaming Wiki
Revision as of 14:25, 25 February 2026 by imported>Ririplasma28
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Infobox command

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's false by 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:
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

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

References

Template:Reflist

External links

Navigation

Template:Navbox commands

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