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)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 1: Line 1:
{{Outdated feature|edition=java}}
{{Outdated feature|edition=java}}
{{MC/Exclusive|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 ==
{{MC/Argument|biome|resource_or_tag}}
{{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.
: {{MC/Arg desc|je=resource_or_tag}}
: {{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 {{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.
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 ==
{{MC/Output table}}
{{Output table}}
{{MC/Output table|edition=je|On fail|0|0|0}}
{{Output table|edition=je|On fail|0|0|0}}
{{MC/Output table|On success|1|1|horizontal distance between the executor and the biome}}
{{Output table|On success|1|1|horizontal distance between the executor and the biome}}
{{MC/Output table}}
{{Output table}}


== Example ==
== Example ==
* To obtain the coordinates of the nearest desert: {{MC/Cmd|link=none|locatebiome desert}}
* To obtain the coordinates of the nearest desert: {{cmd|link=none|locatebiome desert}}


== History ==
== History ==
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{HistoryLine||1.16|dev=20w06a|Added {{MC/Cmd|locatebiome|link=none}}.}}
|{{HistoryLine||1.16|dev=20w06a|Added {{cmd|locatebiome|link=none}}.}}
|{{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|||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|{{MC/Cmd|link=none|locatebiome}} now supports tags, using {{MC/Cd|#}} prefix to distinguish from normal IDs.}}
|{{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|{{MC/Cmd|link=none|locatebiome}} now locates cave biomes more consistently.<ref>{{bug|MC-239019|||Fixed}}</ref>}}
|{{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 {{MC/Cmd|link=none|locatebiome}} and merged it into {{MC/Cmd|locate}}.}}
|{{HistoryLine|||dev=22w19a|Removed {{cmd|link=none|locatebiome}} and merged it into {{cmd|locate}}.}}
}}
}}


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


== Navigation ==
== Navigation ==
{{MC/Navbox commands}}
{{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

Template:Argument

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

Template:HistoryTable

References

Template:Reflist

Navigation

Template:Navbox commands

Minecraft:de:Befehl/locatebiome Minecraft:es:Comandos/locatebiome Minecraft:ja:コマンド/locatebiome Minecraft:pt:Comandos/locatebiome Minecraft:ru:Команды консоли/locatebiome Minecraft:zh:命令/locatebiome