-
Bug
-
Resolution: Fixed
-
21w08b, 21w10a
-
None
-
Confirmed
-
(Unassigned)
The bug
minecraft:grass, minecraft:flower_pot, carpets, snow and possibly more blocks generate on the wrong y level if min_y is below 0. (y of wrong level blocks = amount of layers) Basically forgets there are negative y levels.
How to reproduce
- Go to the flat world preset menu
- Fill in minecraft:bedrock,2*minecraft:dirt,minecraft:grass_block,minecraft:grass (you can replace grass with flower_pot or white_carpet for the same effect)
- Generate the world
The grass generated at y = 4
Code analysis
Using the official 21w08b mojmaps:
net.minecraft.world.level.levelgen.flat.FlatLevelGeneratorSettings public int getMinBuildHeight() { return 0; } public int getHeight() { return 256; }
These are hardcoded to the old limit, multiple things are calculated with that number, including the level height of the blocks like carpets, grass and snow etc(blocks that depend on blocks below it, flower_pot is a weird exception). Best solution is unhardcoding these.
- is duplicated by
-
MC-218580 Duplicate! Grass placed incorrectly on superflat world in snapshot 21w08b (1.17)
- Resolved
- relates to
-
MC-215669 Incorrect map on worlds with small height
- Open
-
MC-214288 Player does not spawn on the surface of the world when min_y is greater than 0
- Resolved
-
MC-215036 Snow layers in "Snowy Kingdom" superflat preset generate 64 blocks above the ground
- Resolved
-
MC-215667 Void effects incorrectly given under bedrock if min_y isn't 0
- Resolved