Minecraft:Commands/locatebiome: Difference between revisions
More actions
Fix template calls: add MC/ prefix |
Sync: updated from Minecraft |
||
| Line 1: | Line 1: | ||
{{Outdated feature|edition=java}} | {{Outdated feature|edition=java}} | ||
{{Infobox command | {{Infobox command | ||
|name=locatebiome | |name=locatebiome | ||
| Line 7: | Line 5: | ||
}} | }} | ||
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. | Displays the [[Minecraft:coordinates]] for the closest [[Minecraft:biome]] of a given [[Minecraft:Biome/ID|biome ID]] or a biome tag in the [[Minecraft:chat]] for the player who executed the [[Minecraft:command]]. | ||
== Syntax == | == Syntax == | ||
| Line 13: | Line 11: | ||
== Arguments == | == Arguments == | ||
{{ | {{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 [[Minecraft:Biome/ID]] for a list of available biome IDs. | ||
: {{ | : {{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 [[Minecraft: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 {{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 28: | ||
== Output == | == Output == | ||
{{ | {{Output table}} | ||
{{ | {{Output table|edition=je|On fail|0|0|0}} | ||
{{ | {{Output table|On success|1|1|horizontal distance between the executor and the biome}} | ||
{{ | {{Output table}} | ||
== Example == | == Example == | ||
* To obtain the coordinates of the nearest desert: {{ | * To obtain the coordinates of the nearest desert: {{cmd|link=none|locatebiome desert}} | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|java}} | ||
|{{HistoryLine||1.16|dev=20w06a|Added {{ | |{{HistoryLine||1.16|dev=20w06a|Added {{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>'".}} | ||
|{{HistoryLine||1.18.2|dev=Pre-release 1|{{ | |{{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.19|dev=22w12a|{{ | |{{HistoryLine||1.19|dev=22w12a|{{cmd|link=none|locatebiome}} now locates cave biomes more consistently.<ref>{{bug|MC-239019|||Fixed}}</ref>}} | ||
|{{HistoryLine|||dev=22w19a|Removed {{ | |{{HistoryLine|||dev=22w19a|Removed {{cmd|link=none|locatebiome}} and merged it into {{cmd|locate}}.}} | ||
}} | }} | ||
==References== | ==References== | ||
{{ | {{reflist}} | ||
== Navigation == | == Navigation == | ||
{{ | {{Navbox commands}} | ||
de:Befehl/locatebiome | [[Minecraft:de:Befehl/locatebiome]] | ||
es:Comandos/locatebiome | [[Minecraft:es:Comandos/locatebiome]] | ||
ja:コマンド/locatebiome | [[Minecraft:ja:コマンド/locatebiome]] | ||
pt:Comandos/locatebiome | [[Minecraft:pt:Comandos/locatebiome]] | ||
ru:Команды консоли/locatebiome | [[Minecraft:ru:Команды консоли/locatebiome]] | ||
zh:命令/locatebiome | [[Minecraft:zh:命令/locatebiome]] | ||
Latest revision as of 11:05, 12 October 2026
Template:Outdated feature Template:Infobox command
Displays the Minecraft:coordinates for the closest Minecraft:biome of a given biome ID or a biome tag in the Minecraft:chat for the player who executed the Minecraft:command.
Syntax
locatebiome <biome>
Arguments
- Specifies the biome(s) to be located. See Minecraft:Biome/ID for a list of available biome IDs.
- Template:Arg desc
Note
The horizonal search resolution is 32 Minecraft: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 Template:Cmd 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
Template:Output table Template:Output table Template:Output table Template:Output table
Example
- To obtain the coordinates of the nearest desert: Template:Cmd
History
References
Minecraft:de:Befehl/locatebiome Minecraft:es:Comandos/locatebiome Minecraft:ja:コマンド/locatebiome Minecraft:pt:Comandos/locatebiome Minecraft:ru:Команды консоли/locatebiome Minecraft:zh:命令/locatebiome