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: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Remove broken links to missing pages
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
Line 7: Line 7:
}}
}}


Displays the [[Minecraft:coordinates]] for the closest generated structure or [[Minecraft:biome]]s of a given type in the chat for the player who executed the command. {{IN|java}}, it can also display for the closest points of interest.
Displays the [[Minecraft:coordinates]] for the closest generated structure or [[Minecraft:biome]]s of a given type in the chat for the player who executed the command. {{MC/In|java}}, it can also display for the closest points of interest.


==Usage==
==Usage==
For {{cd|/locate structure ...}}, the vertical coordinate of structure is ignored when finding. {{IN|java}}, 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>{{bug|MC-138887}}</ref>
For {{MC/Cd|/locate structure ...}}, the vertical coordinate of structure is ignored when finding. {{MC/In|java}}, 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>{{bug|MC-138887}}</ref>


For {{cd|/locate biome ...}}, 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 {{in|java}}.{{Info needed|How about Bedrock Edition?}}
For {{MC/Cd|/locate biome ...}}, 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 {{MC/In|java}}.{{MC/Info needed|How about Bedrock Edition?}}


{{IN|java}}, for {{cd|/locate poi ...}}, the search range is a sphere with a radius of 256 blocks.
{{MC/In|java}}, for {{MC/Cd|/locate poi ...}}, 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>] (<nowiki><distance> blocks away)</nowiki>''", in which <code><nowiki><distance></nowiki></code> is the horizontal distance from the executor.  
When locating structure or POI, if successful, the following message is sent to chat: "''The nearest <requested thing(s)> is at [<x> ~ <z>] (<nowiki><distance> blocks away)</nowiki>''", in which <code><nowiki><distance></nowiki></code> is the horizontal distance from the executor.  
Line 20: Line 20:
When locating biome, if successful, the following message is sent to chat: "''The nearest <requested biome(s)> is at [<x> <y> <z>] (<nowiki><distance> blocks away)</nowiki>''", in which <code><nowiki><distance></nowiki></code> is the distance from the executor to the biome.  
When locating biome, if successful, the following message is sent to chat: "''The nearest <requested biome(s)> is at [<x> <y> <z>] (<nowiki><distance> blocks away)</nowiki>''", in which <code><nowiki><distance></nowiki></code> is the distance from the executor to the biome.  


{{IN|java}}, the coordinates in these messages can be clicked, which can put the command {{cmd|tp @s <''x''> ~ <''z''>}} in the chat box. The command can then be executed, and the player is sent to those coordinates. Also, {{in|java}}, this message does not appear if the command was run from a function.<ref>{{bug|MC-298295|||Works as Intended}}</ref>
{{MC/In|java}}, the coordinates in these messages can be clicked, which can put the command {{MC/Cmd|tp @s <''x''> ~ <''z''>}} in the chat box. The command can then be executed, and the player is sent to those coordinates. Also, {{MC/In|java}}, this message does not appear if the command was run from a function.<ref>{{bug|MC-298295|||Works as Intended}}</ref>


== Syntax ==
== Syntax ==
Line 32: Line 32:


==Arguments==
==Arguments==
{{el|je|short=1}} : {{argument|biome|resource_or_tag}}<br>
{{MC/El|je|short=1}} : {{MC/Argument|biome|resource_or_tag}}<br>
{{el|be|short=1}}: {{argument|be=1|biome: Biome|enum}}
{{MC/El|be|short=1}}: {{MC/Argument|be=1|biome: Biome|enum}}
: Specifies the [[Minecraft:biome]] to locate. {{IN|je}}, this argument also supports biome tags.
: Specifies the [[Minecraft:biome]] to locate. {{MC/In|je}}, this argument also supports biome tags.
:{{arg_desc|je=resource_or_tag|registry=minecraft:worldgen/biome|be=enum}}
:{{arg_desc|je=resource_or_tag|registry=minecraft:worldgen/biome|be=enum}}


{{el|je|short=1}} (case-sensitive): {{argument|structure|resource_or_tag_key}}<br>
{{MC/El|je|short=1}} (case-sensitive): {{MC/Argument|structure|resource_or_tag_key}}<br>
{{el|be|short=1}}: {{argument|be=1|structure: Structure|enum}}
{{MC/El|be|short=1}}: {{MC/Argument|be=1|structure: Structure|enum}}
:Specifies the structure to locate. See Generated structures.
:Specifies the structure to locate. See Generated structures.
:{{arg_desc|je=resource_or_tag_key|registry=minecraft:worldgen/structure|be=enum}}
:{{arg_desc|je=resource_or_tag_key|registry=minecraft:worldgen/structure|be=enum}}


{{el|be|short=1}}: {{argument|be=1|useNewChunksOnly: Boolean|enum}}
{{MC/El|be|short=1}}: {{MC/Argument|be=1|useNewChunksOnly: Boolean|enum}}
:Specifies if a structure of any type wants to be located in new chunks only (<code>true</code>) or not (<code>false</code>), and it's <code>false</code> by default.
:Specifies if a structure of any type wants to be located in new chunks only (<code>true</code>) or not (<code>false</code>), and it's <code>false</code> by default.
:{{arg_desc|be=bool}}
:{{arg_desc|be=bool}}


{{el|je|short=1}} : {{argument|poi|resource_or_tag}}
{{MC/El|je|short=1}} : {{MC/Argument|poi|resource_or_tag}}
:Specifies the point of interest to locate.  
:Specifies the point of interest to locate.  
:{{arg_desc|je=resource_or_tag|registry=minecraft:point_of_interest_type}}  
:{{arg_desc|je=resource_or_tag|registry=minecraft:point_of_interest_type}}  
Line 54: Line 54:
|-
|-
|Blast Furnace
|Blast Furnace
|{{Cd|armorer}}
|{{MC/Cd|armorer}}
|-
|-
|Bee nest
|Bee nest
|{{Cd|bee_nest}}
|{{MC/Cd|bee_nest}}
|-
|-
|Beehive
|Beehive
|{{Cd|beehive}}
|{{MC/Cd|beehive}}
|-
|-
|Smoker
|Smoker
|{{Cd|butcher}}
|{{MC/Cd|butcher}}
|-
|-
|Cartography Table
|Cartography Table
|{{Cd|cartographer}}
|{{MC/Cd|cartographer}}
|-
|-
|Brewing Stand
|Brewing Stand
|{{Cd|cleric}}
|{{MC/Cd|cleric}}
|-
|-
|Composter
|Composter
|{{Cd|farmer}}
|{{MC/Cd|farmer}}
|-
|-
|Barrel
|Barrel
|{{Cd|fisherman}}
|{{MC/Cd|fisherman}}
|-
|-
|Fletching Table
|Fletching Table
|{{Cd|fletcher}}
|{{MC/Cd|fletcher}}
|-
|-
|Bed
|Bed
|{{Cd|home}}
|{{MC/Cd|home}}
|-
|-
|Cauldron
|Cauldron
|{{Cd|leatherworker}}
|{{MC/Cd|leatherworker}}
|-
|-
|Lectern
|Lectern
|{{Cd|librarian}}
|{{MC/Cd|librarian}}
|-
|-
|Lightning Rod
|Lightning Rod
|{{Cd|lightning_rod}}
|{{MC/Cd|lightning_rod}}
|-
|-
|Lodestone
|Lodestone
|{{Cd|lodestone}}
|{{MC/Cd|lodestone}}
|-
|-
|Stonecutter
|Stonecutter
|{{Cd|mason}}
|{{MC/Cd|mason}}
|-
|-
|Bell
|Bell
|{{Cd|meeting}}
|{{MC/Cd|meeting}}
|-
|-
|Nether Portal
|Nether Portal
|{{Cd|nether_portal}}
|{{MC/Cd|nether_portal}}
|-
|-
|Loom
|Loom
|{{Cd|shepherd}}
|{{MC/Cd|shepherd}}
|-
|-
|Smithing Table
|Smithing Table
|{{Cd|toolsmith}}
|{{MC/Cd|toolsmith}}
|-
|-
|Grindstone
|Grindstone
|{{Cd|weaponsmith}}
|{{MC/Cd|weaponsmith}}
|}
|}


Line 121: Line 121:
|{{tag link|point of interest type|acquirable_job_site}}
|{{tag link|point of interest type|acquirable_job_site}}
|
|
{{Cd|armorer}}<br>
{{MC/Cd|armorer}}<br>
{{Cd|butcher}}<br>
{{MC/Cd|butcher}}<br>
{{Cd|cartographer}}<br>
{{MC/Cd|cartographer}}<br>
{{Cd|cleric}}<br>
{{MC/Cd|cleric}}<br>
{{Cd|farmer}}<br>
{{MC/Cd|farmer}}<br>
{{Cd|fisherman}}<br>
{{MC/Cd|fisherman}}<br>
{{Cd|fletcher}}<br>
{{MC/Cd|fletcher}}<br>
{{Cd|leatherworker}}<br>
{{MC/Cd|leatherworker}}<br>
{{Cd|librarian}}<br>
{{MC/Cd|librarian}}<br>
{{Cd|mason}}<br>
{{MC/Cd|mason}}<br>
{{Cd|shepherd}}<br>
{{MC/Cd|shepherd}}<br>
{{Cd|toolsmith}}<br>
{{MC/Cd|toolsmith}}<br>
{{Cd|weaponsmith}}
{{MC/Cd|weaponsmith}}
|-
|-
|{{tag link|point of interest type|bee_home}}
|{{tag link|point of interest type|bee_home}}
|
|
{{Cd|bee_nest}}<br>
{{MC/Cd|bee_nest}}<br>
{{Cd|beehive}}
{{MC/Cd|beehive}}
|-
|-
|{{tag link|point of interest type|village}}
|{{tag link|point of interest type|village}}
|
|
{{tag link|point of interest type|acquirable_job_site}}<br>
{{tag link|point of interest type|acquirable_job_site}}<br>
{{Cd|home}}<br>
{{MC/Cd|home}}<br>
{{Cd|meeting}}
{{MC/Cd|meeting}}
|}
|}


Line 153: Line 153:
{{Result table|cmd=locate structure ...|The specified resource location or tag is not a valid structure or structure tag.|fail|N/A<!--in BE, if it is not valid, the argument is considered incorrectly specified-->}}
{{Result table|cmd=locate structure ...|The specified resource location or tag is not a valid structure or structure tag.|fail|N/A<!--in BE, if it is not valid, the argument is considered incorrectly specified-->}}
{{Result table|The requested structure doesn't generate in this dimension.||fail}}
{{Result table|The requested structure doesn't generate in this dimension.||fail}}
{{Result table|Unable to locate the requested structure within a square of 201×201 units of the Structure's Spacing.{{needs testing|bedrock=1}}.}}
{{Result table|Unable to locate the requested structure within a square of 201×201 units of the Structure's Spacing.{{MC/Needs testing|bedrock=1}}.}}
{{Result table|cmd=locate biome ...|Unable to locate the requested biome within a square of 12801×12801 blocks{{needs testing|bedrock=1}}.}}
{{Result table|cmd=locate biome ...|Unable to locate the requested biome within a square of 12801×12801 blocks{{MC/Needs testing|bedrock=1}}.}}
{{Result table|cmd=locate poi ...|Unable to locate the requested poi within a ball with a radius of 256 blocks.||N/A}}
{{Result table|cmd=locate poi ...|Unable to locate the requested poi within a ball with a radius of 256 blocks.||N/A}}
{{Result table|cmd=|succeed}}
{{Result table|cmd=|succeed}}
Line 161: Line 161:
==Output==
==Output==


{{Output table}}
{{MC/Output table}}
{{Output table|edition=je|On fail|0|0|0}}
{{MC/Output table|edition=je|On fail|0|0|0}}
{{Output table|cmd=locate structure ...<br>locate poi ...|On success|1|1|horizontal distance<br>between the executor and the requested structure or POI}}
{{MC/Output table|cmd=locate structure ...<br>locate poi ...|On success|1|1|horizontal distance<br>between the executor and the requested structure or POI}}
{{Output table|cmd=locate biome ...|On success|1|1|distance between the executor and the requested biome}}
{{MC/Output table|cmd=locate biome ...|On success|1|1|distance between the executor and the requested biome}}
{{Output table|cmd=|edition=be|On fail|0}}
{{MC/Output table|cmd=|edition=be|On fail|0}}
{{Output table|On success|1}}
{{MC/Output table|On success|1}}
{{Output table}}
{{MC/Output table}}


==Examples==  
==Examples==  
* To obtain the coordinates of the nearest woodland mansion: {{cmd|locate structure mansion}}
* To obtain the coordinates of the nearest woodland mansion: {{MC/Cmd|locate structure mansion}}
* To obtain the coordinates of the nearest pillager outpost in new chunks only: {{cmd|locate structure pillager_outpost true}}{{only|be}}
* To obtain the coordinates of the nearest pillager outpost in new chunks only: {{MC/Cmd|locate structure pillager_outpost true}}{{only|be}}
*To obtain the coordinates of the nearest village of any kind: {{cmd|locate structure #village}}{{only|je}}/{{cmd|locate structure village}}{{only|be}}
*To obtain the coordinates of the nearest village of any kind: {{MC/Cmd|locate structure #village}}{{only|je}}/{{MC/Cmd|locate structure village}}{{only|be}}
* To obtain the coordinates of the nearest desert biome: {{cmd|locate biome desert}}
* To obtain the coordinates of the nearest desert biome: {{MC/Cmd|locate biome desert}}
*To obtain the coordinates of the nearest point of interest used by villagers: {{cmd|locate poi #village}}{{only|je}}
*To obtain the coordinates of the nearest point of interest used by villagers: {{MC/Cmd|locate poi #village}}{{only|je}}


== History ==
== History ==
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|java}}
|{{MC/HistoryLine|java}}
|{{HistoryLine||1.11|dev=16w39a|Added {{cmd|locate|link=none}}.}}
|{{HistoryLine||1.11|dev=16w39a|Added {{MC/Cmd|locate|link=none}}.}}
|{{HistoryLine||1.13|dev=17w45a|The y-coordinate is now returned as <code>64</code> instead of <code>?</code>.|The result of the command, used by {{cmd|execute store}}, is the absolute distance to the structure.}}
|{{HistoryLine||1.13|dev=17w45a|The y-coordinate is now returned as <code>64</code> instead of <code>?</code>.|The result of the command, used by {{MC/Cmd|execute store}}, is the absolute distance to the structure.}}
|{{HistoryLine||1.13|dev=18w06a|{{cmd|locate|link=none}} now accepts different structure names for all structures previously grouped under <code>Temple</code>: <code>Desert_Pyramid</code>, <code>Igloo</code>, <code>Jungle_Pyramid</code>, and <code>Swamp_Hut</code>.}}
|{{HistoryLine||1.13|dev=18w06a|{{MC/Cmd|locate|link=none}} now accepts different structure names for all structures previously grouped under <code>Temple</code>: <code>Desert_Pyramid</code>, <code>Igloo</code>, <code>Jungle_Pyramid</code>, and <code>Swamp_Hut</code>.}}
|{{HistoryLine|||dev=18w08a|Added a clickable teleport link to the {{cmd|locate|link=none}} command output.}}
|{{HistoryLine|||dev=18w08a|Added a clickable teleport link to the {{MC/Cmd|locate|link=none}} command output.}}
|{{HistoryLine||1.14|dev=18w47a|{{cmd|locate|link=none}} now accepts <code>Pillager_Outpost</code>.}}
|{{HistoryLine||1.14|dev=18w47a|{{MC/Cmd|locate|link=none}} now accepts <code>Pillager_Outpost</code>.}}
|{{HistoryLine|||dev=18w48a|{{cmd|locate|link=none}} now accepts <code>New_Village</code>.}}
|{{HistoryLine|||dev=18w48a|{{MC/Cmd|locate|link=none}} now accepts <code>New_Village</code>.}}
|{{HistoryLine|||dev=?|{{cmd|locate|link=none}} no longer accepts <code>New_Village</code>.}}
|{{HistoryLine|||dev=?|{{MC/Cmd|locate|link=none}} no longer accepts <code>New_Village</code>.}}
|{{HistoryLine||1.16|dev=20w11a|Nether fossils can now be located.}}
|{{MC/HistoryLine||1.16|dev=20w11a|Nether fossils can now be located.}}
|{{HistoryLine|||dev=20w21a|Structure names are now specified as lowercase.}}
|{{MC/HistoryLine|||dev=20w21a|Structure names are now specified as lowercase.}}
|{{HistoryLine||1.18.2|dev=22w03a|{{cmd|locate|link=none}} now uses a namespace ID parameter instead of hard coded values.}}
|{{HistoryLine||1.18.2|dev=22w03a|{{MC/Cmd|locate|link=none}} now uses a namespace ID parameter instead of hard coded values.}}
|{{HistoryLine|||dev=Pre-release 1|{{cmd|locate|link=none}} now support tags, using {{cd|#}} prefix to distinguish from normal IDs.
|{{HistoryLine|||dev=Pre-release 1|{{MC/Cmd|locate|link=none}} now support tags, using {{MC/Cd|#}} prefix to distinguish from normal IDs.
|The parameter is now a configured structure rather than a structure type.}}
|The parameter is now a configured structure rather than a structure type.}}
|{{HistoryLine||1.19|dev=22w19a|{{cmd|locatebiome}} has been merged with {{cmd|locate|link=none}}.|Added the ability to locate points of interest.}}
|{{HistoryLine||1.19|dev=22w19a|{{MC/Cmd|locatebiome}} has been merged with {{MC/Cmd|locate|link=none}}.|Added the ability to locate points of interest.}}
}}
}}


=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|pocket}}
|{{MC/HistoryLine|pocket}}
|{{HistoryLine||1.0.0|dev=alpha 0.17.0.1|Added {{cmd|locate|link=none}}.}}
|{{HistoryLine||1.0.0|dev=alpha 0.17.0.1|Added {{MC/Cmd|locate|link=none}}.}}
|{{HistoryLine|||dev=alpha 0.17.0.2|Removed {{cmd|locate|link=none}}.}}
|{{HistoryLine|||dev=alpha 0.17.0.2|Removed {{MC/Cmd|locate|link=none}}.}}
|{{HistoryLine|||dev=alpha 1.0.0.0|Re-added {{cmd|locate|link=none}}. Works only for strongholds.}}
|{{HistoryLine|||dev=alpha 1.0.0.0|Re-added {{MC/Cmd|locate|link=none}}. Works only for strongholds.}}
|{{HistoryLine||1.1.0|dev=alpha 1.1.0.0|{{cmd|locate|link=none}} can now find other structures.}}
|{{HistoryLine||1.1.0|dev=alpha 1.1.0.0|{{MC/Cmd|locate|link=none}} can now find other structures.}}
|{{HistoryLine|bedrock}}
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine||?|{{cmd|locate|link=none}} can no longer locate structures that generate outside of the world boundary in [[Minecraft:old]] worlds.}}
|{{HistoryLine||?|{{MC/Cmd|locate|link=none}} can no longer locate structures that generate outside of the world boundary in [[Minecraft:old]] worlds.}}
|{{HistoryLine||1.19.10|dev=Preview 1.19.10.23|{{cmd|locate|link=none}} can now find biomes.}}
|{{HistoryLine||1.19.10|dev=Preview 1.19.10.23|{{MC/Cmd|locate|link=none}} can now find biomes.}}
|{{HistoryLine||1.19.30|dev=Preview 1.19.30.20|The original command {{cmd|locate <feature: Structure>|link=none}} is no longer used.}}
|{{HistoryLine||1.19.30|dev=Preview 1.19.30.20|The original command {{MC/Cmd|locate <feature: Structure>|link=none}} is no longer used.}}
|{{HistoryLine|||dev=Preview 1.19.30.21|Added new structure names with underscores like {{cd|d=and|ancient_city|bastion_remnant|buried_treasure|end_city|pillager_outpost|ruined_portal}}.}}
|{{HistoryLine|||dev=Preview 1.19.30.21|Added new structure names with underscores like {{MC/Cd|d=and|ancient_city|bastion_remnant|buried_treasure|end_city|pillager_outpost|ruined_portal}}.}}
|{{HistoryLine||1.21.100|dev=Preview 1.21.100.20|{{cmd|locate biome|link=none}} now requires that the biome's namespace is specified (ex: <code>minecraft:plains</code> instead of just <code>plains</code>). Auto-complete suggestions for this command will now include namespaces.}}
|{{HistoryLine||1.21.100|dev=Preview 1.21.100.20|{{MC/Cmd|locate biome|link=none}} now requires that the biome's namespace is specified (ex: <code>minecraft:plains</code> instead of just <code>plains</code>). Auto-complete suggestions for this command will now include namespaces.}}
}}
}}


==References==
==References==
{{reflist}}
{{MC/Reflist}}


== External links ==
== External links ==
Line 218: Line 218:


== Navigation ==
== Navigation ==
{{Navbox commands}}
{{MC/Navbox commands}}


de:Befehl/locate
de:Befehl/locate

Latest revision as of 20:11, 9 April 2026

Template:Infobox command

Displays the Minecraft:coordinates for the closest generated structure or Minecraft:biomes of a given type in the chat for the player who executed the command. in Template:Editions, it can also display for the closest points of interest.

Usage

For

  1. REDIRECT Template:Code

Template:Redr, the vertical coordinate of structure is ignored when finding. in Template:Editions, 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

  1. REDIRECT Template:Code

Template:Redr, 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 in Template:Editions.​<more information needed></more information needed>

in Template:Editions, for

  1. REDIRECT Template:Code

Template:Redr, 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.

in Template:Editions, the coordinates in these messages can be clicked, which can put the command

  1. REDIRECT Template:Command

Template:Redr in the chat box. The command can then be executed, and the player is sent to those coordinates. Also, in Template:Editions, 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

  1. REDIRECT Template:Edition

Template:Rcat : <biome>: resource_or_tag

  1. REDIRECT Template:Edition

Template:Rcat: biome: Biome: enum

Specifies the Minecraft:biome to locate. in Template:Editions, this argument also supports biome tags.
Template:Arg desc
  1. REDIRECT Template:Edition

Template:Rcat (case-sensitive): <structure>: resource_or_tag_key

  1. REDIRECT Template:Edition

Template:Rcat: structure: Structure: enum

Specifies the structure to locate. See Generated structures.
Template:Arg desc
  1. REDIRECT Template:Edition

Template:Rcat: useNewChunksOnly: Boolean: enum

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
  1. REDIRECT Template:Edition

Template:Rcat : <poi>: resource_or_tag

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

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|0}}{{#vardefine:output3-{{#var:output-table-lines}}|0}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|horizontal distance
between the executor and the requested structure or POI}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|locate structure ...
locate poi ...
}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|distance between the executor and the requested biome}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|locate biome ...}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|Any}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|be}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

Examples

  • To obtain the coordinates of the nearest woodland mansion:
  1. REDIRECT Template:Command

Template:Redr

  • To obtain the coordinates of the nearest pillager outpost in new chunks only:
  1. REDIRECT Template:Command

Template:RedrTemplate:Only

  • To obtain the coordinates of the nearest village of any kind:
  1. REDIRECT Template:Command

Template:RedrTemplate:Only/

  1. REDIRECT Template:Command

Template:RedrTemplate:Only

  • To obtain the coordinates of the nearest desert biome:
  1. REDIRECT Template:Command

Template:Redr

  • To obtain the coordinates of the nearest point of interest used by villagers:
  1. REDIRECT Template:Command

Template:RedrTemplate:Only

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

References

<references group="">

 </references>

External links

Navigation

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

de:Befehl/locate es:Comandos/locate fr:Commandes/locate ja:コマンド/locate ko:명령어/locate pt:Comandos/locate ru:Команды консоли/locate uk:Команди консолі/locate zh:命令/locate