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/locatebiome: 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 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 ==
{{argument|biome|resource_or_tag}}
{{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.
: {{arg desc|je=resource_or_tag}}
: {{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 {{cmd|tp @s <x> ~ <z>}} in the chat box. The command can then be executed, and the player will be sent to those coordinates.
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: {{cmd|link=none|locatebiome 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 {{cmd|locatebiome|link=none}}.}}
|{{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|{{cmd|link=none|locatebiome}} now supports tags, using {{cd|#}} prefix to distinguish from normal IDs.}}
|{{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|{{cmd|link=none|locatebiome}} now locates cave biomes more consistently.<ref>{{bug|MC-239019|||Fixed}}</ref>}}
|{{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 {{cmd|link=none|locatebiome}} and merged it into {{cmd|locate}}.}}
|{{HistoryLine|||dev=22w19a|Removed {{MC/Cmd|link=none|locatebiome}} and merged it into {{MC/Cmd|locate}}.}}
}}
}}


==References==
==References==
{{reflist}}
{{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".

Template:Infobox command

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

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

Template:Redr

History

Template:HistoryTable

References

<references group="">

 </references>

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/locatebiome es:Comandos/locatebiome ja:コマンド/locatebiome pt:Comandos/locatebiome ru:Команды консоли/locatebiome zh:命令/locatebiome