Minecraft:Commands/locatebiome: Difference between revisions
More actions
Remove broken links to missing pages |
Fix template calls: add MC/ prefix |
||
| Line 1: | Line 1: | ||
{{Outdated feature|edition=java}} | {{Outdated feature|edition=java}} | ||
{{Exclusive|java}} | {{MC/Exclusive|java}} | ||
{{Infobox command | {{Infobox command | ||
| Line 13: | Line 13: | ||
== Arguments == | == Arguments == | ||
{{ | {{MC/Argument|biome|resource_or_tag}} | ||
: Specifies the biome(s) to be located. See Biome/ID for a list of available biome IDs. | : Specifies the biome(s) to be located. See Biome/ID for a list of available biome IDs. | ||
: {{ | : {{MC/Arg desc|je=resource_or_tag}} | ||
== Note == | == Note == | ||
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 resolution is 32 blocks, and vertical resolution is 64 blocks, which means biomes that are too narrow may not be found. | ||
If successful, the following message is sent to chat: "''The nearest <biome name> is at [<x> ~ <z>] (<distance> blocks away)''"/"''The nearest <biome tag> (<biome name>) is at [<x> ~ <z>] (<distance> blocks away)''", in which <code><distance></code> is the horizontal distance between the executor and the biome. The coordinates can be clicked, which can put the command {{ | If successful, the following message is sent to chat: "''The nearest <biome name> is at [<x> ~ <z>] (<distance> blocks away)''"/"''The nearest <biome tag> (<biome name>) is at [<x> ~ <z>] (<distance> blocks away)''", in which <code><distance></code> is the horizontal distance between the executor and the biome. The coordinates 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 will be sent to those coordinates. | ||
== Result == | == Result == | ||
| Line 30: | Line 30: | ||
== 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|On success|1|1|horizontal distance between the executor and the biome}} | {{MC/Output table|On success|1|1|horizontal distance between the executor and the biome}} | ||
{{Output table}} | {{MC/Output table}} | ||
== Example == | == Example == | ||
* To obtain the coordinates of the nearest desert: {{ | * To obtain the coordinates of the nearest desert: {{MC/Cmd|link=none|locatebiome desert}} | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.16|dev=20w06a|Added {{ | |{{HistoryLine||1.16|dev=20w06a|Added {{MC/Cmd|locatebiome|link=none}}.}} | ||
|{{HistoryLine|||dev=Pre-release 1|The biome ID in the error messages for an invalid biome or a valid biome that could not be found is now in quotes.|Changed the error message for an invalid biome from "There is no biome named <biome ID>" to "There is no biome with type '<biome ID>'".}} | |{{MC/HistoryLine|||dev=Pre-release 1|The biome ID in the error messages for an invalid biome or a valid biome that could not be found is now in quotes.|Changed the error message for an invalid biome from "There is no biome named <biome ID>" to "There is no biome with type '<biome ID>'".}} | ||
|{{HistoryLine||1.18.2|dev=Pre-release 1|{{ | |{{HistoryLine||1.18.2|dev=Pre-release 1|{{MC/Cmd|link=none|locatebiome}} now supports tags, using {{MC/Cd|#}} prefix to distinguish from normal IDs.}} | ||
|{{HistoryLine||1.19|dev=22w12a|{{ | |{{HistoryLine||1.19|dev=22w12a|{{MC/Cmd|link=none|locatebiome}} now locates cave biomes more consistently.<ref>{{bug|MC-239019|||Fixed}}</ref>}} | ||
|{{HistoryLine|||dev=22w19a|Removed {{ | |{{HistoryLine|||dev=22w19a|Removed {{MC/Cmd|link=none|locatebiome}} and merged it into {{MC/Cmd|locate}}.}} | ||
}} | }} | ||
==References== | ==References== | ||
{{ | {{MC/Reflist}} | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/locatebiome | de:Befehl/locatebiome | ||
Latest revision as of 20:11, 9 April 2026
Template:Outdated feature Script error: No such module "Exclusive".
Displays the Minecraft:coordinates for the closest Minecraft:biome of a given biome ID or a biome tag in the chat for the player who executed the command.
Syntax
locatebiome <biome>
Arguments
<biome>: resource_or_tag
- Specifies the biome(s) to be located. See Biome/ID for a list of available biome IDs.
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|resource_or_tag}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
Note
The horizonal search resolution is 32 blocks, and vertical resolution is 64 blocks, which means biomes that are too narrow may not be found.
If successful, the following message is sent to chat: "The nearest <biome name> is at [<x> ~ <z>] (<distance> blocks away)"/"The nearest <biome tag> (<biome name>) is at [<x> ~ <z>] (<distance> blocks away)", in which <distance> is the horizontal distance between the executor and the biome. The coordinates can be clicked, which can put the command
- REDIRECT Template:Command
Template:Redr in the chat box. The command can then be executed, and the player will be sent to those coordinates.
Result
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 biome}}{{#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|}}
Example
- To obtain the coordinates of the nearest desert:
- REDIRECT Template:Command
History
References
<references group="">
</references>
de:Befehl/locatebiome es:Comandos/locatebiome ja:コマンド/locatebiome pt:Comandos/locatebiome ru:Команды консоли/locatebiome zh:命令/locatebiome