mojira.dev
MC-131327

Opaque blocks at the top of subchunks (chunk sections) do not increase the world height to the next subchunk

How to reproduce

  1. Create a new superflat world with void preset

  2. Make it night time by running this: /time set midnight

  3. Fill a layer of stone at layer 63: /fill ~ 63 ~ ~20 63 ~20 stone
    → ❌ No hostile mobs are spawning

  4. Fill a layer of stone at any other layer: /fill ~ 30 ~ ~20 30 ~20 stone
    → ✔ Mobs are spawning correctly on this layer

Note: This bug was introduced in 18w19a

Linked issues

Attachments

Comments 25

Only 63? Not 62, not 64, not 127, only 63? Then it might have something to do with sea level (squid spawning etc.), because I don't know anything else that is fixed on level 63.

Yes, blocks at 63 and mobs spawning at 64 is the only layer it happens with.

It definetly seems to have to do with sub chunks and if there are blocks above. If you have a layer of stone at the top of a sub chunk and nothing above, no mob can spawn there.
They do spawn at layer 63, if there is also a layer of stone at 66.
Simply adding one stone block per chunk at layer 64 does not change anything tho, even tho the sub chunk level should now be raised. So maybe it's when the higest block of the highest subchunk as sky light access?

Tested what I described above at layers 15, 31, 47, 63 and 127

Confirmed for MC 1.13-pre1.

Fabian Röling: the affected layer is 63. I tried to reproduce this bug with other layers but nothing.

As you said, it might have something to do with sea level.

 

Subchunks are calculated individually for x/z since 1.9 or 1.10. Maybe the height map is not being adjusted properly when there's an opaque block at the top of a subchunk (previously, an opaque block at the top of a subchunk would also make the subchunk above it eligible for spawning)

To test this theory, try it at any other place where y = 16n - 1 (so 15, 31, 47, 63 etc) and see if you get the same results.

15 more comments

If someone knew, they would add the version or comment. There are currently 3436 open bugs that do not have the version 1.13 added yet. Please don't comment on all of them.
And please remember that every comment on a report sends as many mails as the number next to "watch this issue", in this report 23 at once.

Can confirm the 'how to reproduce' doesn't work in major version 1.13. To the best of my testing, this has been fixed.

Will wait for comment of @unknown before resolving as fixed.

@unknown Sorry for this late response but I wasn't able to test this until now. I can indeed confirm that this is fixed in the major version 1.13.

No problem, the ticket won't run away 😛

Misode

migrated

Confirmed

Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13-pre3, Minecraft 1.13-pre4, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8

Minecraft 1.13-pre8, Minecraft 1.13

Retrieved