mojira.dev
MC-239019

/locatebiome command doesn't consistently locate the nearest cave biome

As we know, /locatebiome command doesn't specify y-value, which is intended (see MC-206286). However, the command doesn't correctly find the new introduced cave biomes (as they are 3D biomes distributed underground). This doesn't happen with the regular surface biomes.

This leads to a number of issues where the command doesn't search accurately for the nearest biome when the player is on different height levels, and is inconsistent with how /locate works, as that command successfully finds a structure independent of your Y position.

Note that this report is not implying the command should specify the Y coordinate, but to locate the nearest biome regardless of your Y position. Similar to /locate.

Expected result

/locatebiome command would find the nearest biome, regardless of the player's Y-position, like how /locate works.

Observed result

The command doesn't always find the nearest 3D biome, instead it searches horizontally depending of the Y-level the player is at, leading to situations where the command locates the biome very far away or can't locate it at all.

How to reproduce

  1. Create a world, search for a lush caves or dripstone caves biomes on your current level.

  2. Now fly to a really high Y-level (i.e. above 180) and search again.

  3. On most cases, the command locates a different cave biome, or is unable to locate one.

Linked issues

Attachments

Comments 5

I think the behaviour you're describing is what was reported as MC-236680, which was merged into MC-206286.

I've read every duplicate of that issue before making this report, that one is implying what the original ticket was about, which is y-position not specified, except maybe MC-238479 which will be more accurate for this one.

MC-206286 didn't really add more info, just a comment about how it could cause problems with 3D biomes. Those duplicates were related to how the command doesn't search for different height levels and were made before the original got closed, so i've waited until it got either triaged or resolved and then created a new one worded differently.

[media]

I know the lush cave is below me, but when I fly up to 180, it no longer shows up.

Can confirm in 22w06a.

Can confirm in 1.18.2.

Attached image of command locating a different biome than the one I was right above.

syarumi

billysjoberg

Confirmed

Normal

Commands

21w37a, 21w40a, 21w41a, 21w42a, 21w43a, ..., 1.18.1 Pre-release 1, 1.18.1, 22w06a, 1.18.2, 22w11a

22w12a

Retrieved