Minecraft Wiki
Advertisement
This page describes content that exists only in outdated versions of Java Edition. 
This feature used to be in the game but has since been removed.

Displays the coordinates for the closest 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.
Must be a resource location or a tag.

Note[]

Only the biome with the same vertical coordinate as the execution position can be located.[1] The search resolution is 32 blocks, which means biomes that are narrower than 32 blocks 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 /tp @s <x> ~ <z> in the chat box. The command can then be executed, and the player will be sent to those coordinates.

Result[]

CommandTriggerJava Edition
anythe arguments are not specified correctly Unparseable
unable to locate the requested biome or biome tag within a square of 12801×12801 blocks area Failed
On successDisplays the coordinates for the closest biome of the given type in the chat

Output[]

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
anyJava EditionOn fail000
On success11horizontal distance between the executor and the biome

Example[]

  • To obtain the coordinates of the nearest desert: /locatebiome desert

History[]

Java Edition
1.1620w06aAdded /locatebiome.
Pre-release 1The 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>'".
1.18.2Pre-release 1/locatebiome now supports tags, using # prefix to distinguish from normal IDs.
1.1922w12a/locatebiome now locates cave biomes more consistently.[2]
22w19aRemoved /locatebiome and merged it into /locate.

References[]

  1. MC-206286 – "/locate and /locatebiome does not provide y-values" – resolved as "Works As Intended"
  2. MC-239019 – resolved as "Fixed"
Advertisement