- 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.
Only the biome with the same vertical coordinate as the execution position can be located. 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.
|any||the 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 success||Displays the coordinates for the closest biome of the given type in the chat|
|any||Java Edition||On fail||0||0||0|
|On success||1||1||horizontal distance between the executor and the biome|
- To obtain the coordinates of the nearest desert:
|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>'".|
- – "/locate and /locatebiome does not provide y-values" – resolved as "Works As Intended"
- – resolved as "Fixed"