mojira.dev
MC-239880

Some chunks have missing blocks below 0

The bug
I was exploring around with new biome blending and noticed a chunk formation underground, I went to it and it was all air below 0 and converted incorrectly. This is very rare to happen as I seen the other chunks are fine. I checked the logs are there are 3 errors that are all in the same minute, but this happened on my other world without any error in logs.
UPDATE: The cause of this issue is when caves are generated below old chunks, the chunk contains no bedrock so it won't attempt to place caves below this chunk since after testing around, the chunk must contain at least 1 block of bedrock at Y=0 in the world for it to fill the bottom with caves. The fix would be detecting if the chunk contains an block at Y=0 instead of detecting only Bedrock.

Steps to reproduce
1. Load a world from 1.17.1 or below on 1.18 Pre-release 5 (or load

[media]

)
2. Explore around next to the blended area (If on downloaded world do: /tp -1201 -9 -85)
3. You can notice missing chunks but It is rare.

Observed result
Empty chunks below 0

Expected behaviour
Chunks to generate like the other chunks around

Attachments

Comments 11

Can you provide the world download of where this issue occured

Ideally the worlddownload would be a backup before upgrading so we can try and replicate the issue.

1.17.1 download (load in 21w43a) (n/a)

1. /tp -853 -14 24
2. Check the logs if there is an error

Provided the wrong world download here, I'll fix this

[media]

[media]


Having the same issues again in another world but without the console errors this time

Version is pre release 2

1 more comments

New Fixed world download: https://easyupload.io/1313ow
Same coordinates: /tp -853 -14 24

After teleporting, check if there are missing blocks below this coordinate.

Still can reproduce on Pre release 3

World with 3 chunks with air below 0

[media]

Download:

[media]


Coordinates: /tp -1201 -9 -85
Tested on Pre-5

Update on this issue

[media]

After testing around a bit more on this issue, I've seen that these missing block chunks before upgrading to 1.18 have no bedrock layer at the bottom of the chunk (This seems to only happen on edge where a chunk is still not completely generated yet).
The cause of this issue is when caves are generated below old chunks, the chunk contains no bedrock so it won't attempt to place caves below this chunk since after testing around, the chunk must contain at least 1 block of bedrock at Y=0 in the world for it to fill the bottom with caves. The fix would be detecting if the chunk contains an block at Y=0 instead of detecting only Bedrock.

Here is an example of how this bug happens and what I was talking about above:

[media]

[media]

Seems like a bug with world generation and not world conversion. Are you sure this generates the same when using the seed?

Welcome 234

Panda4994

Confirmed

Important

Datafixer, World generation

21w43a, 21w44a, 1.18 Pre-release 1, 1.18 Pre-release 2, 1.18 Pre-release 3, 1.18 Pre-release 4, 1.18 Pre-release 5

1.18 Pre-release 6

Retrieved