mojira.dev
MC-250396

/locatebiome command displays Y-axis of -64 in certain cave biomes, causing the player to die when teleported

The teleportation should bring the player to the Deep Dark biome on a reasonable Y-level. However, on some occasions, it brings the player to Y -64 and causes the player to fall out of the world.

Steps to Reproduce:
1. Go to world seed [8828224330230161569] and go to X: 25 Y: 64 Z: -41
2. Use /locatebiome minecraft:deep_dark command
3. The Y-level will be -64
4. Teleporting in survival will cause the player to fall out of the world and die

Edit: In 22w17a, I have tried locating cave biomes on different Y-levels. What I found was that the Y-level of the result changes according to what Y-level the player is at. Therefore, I tried running the command for each decrease of 1 in the player's Y-level. The Y-level of the result cycles through 0 to -63, then goes back to 0. Does this mean the bug is resolved, or does it need more testing?

Attachments

Comments 8

I can confirm this happening. What I also found was that it will teleport you to y level -64 if you y value is a multiple of 64. So y levels 0, 64, 128, 192, etc.

I believe this also happens on any seed.

This seems to be fixed in 22w17a.

I am not able to reproduce this in 22w17a as well. Seems to be fixed.

Code analysis also suggests this issue is fixed. The code now checks biomes from minY+1 to maxY, instead of previous minY to maxY.

Completely removed in 22w19a by merging /locatebiome with /locate

This was
1. already fixed
2. just renamed, not behavior changed.

chirpybeak

gnembon

Confirmed

Important

Commands

22w16b

22w17a

Retrieved