The Bug
It seems like, this bug was missed when world generation changed back in 1.13.
Compared to 1.12.2, mushrooms generate much less commonly in 1.13 and any version after that.
Note that there are differences in population in general (see MC-124985), which is why for example trees and lily pads won't match up
How to reproduce
Generate a new world with seed 91 in 1.12.2 and run
/tp @s -330.81 65.75 164.31 124.50 27.15
Generate a world with the same seed in the current version and run
/execute in minecraft:overworld run tp @s -330.81 65.75 164.31 124.50 27.15
Look around in both swamps and notice how mushrooms are way more sparse in the current version, compared to 1.12
Code analysis by @unknown in MC-229557:
The issue has been verified in mod dev environment by adding a conditional breakpoint on block place in RandomPatchFeature#place with condition "new ChunkPos(context.origin()).equals(new ChunkPos(mutableBlockPos)) && blockState.getBlock() == Blocks.BROWN_MUSHROOM" - the breakpoint never hits, so no mushroom blocks are ever placed in the chunk where features are actually generated.
Linked issues
is duplicated by 1
Attachments
Comments 18
I assume this would still be in 1.18 and 22w18a, as nothing in the 1.18 world generation changes altered mushroom generation if I recall correctly
Requesting the title to be changed to more accurately reflect this issue, "swamps and taigas" may generate mushrooms more frequently and thus may be locations where this bug is more noticeable, but its not just them, the entire overworld is affected by this issue.
I Believe the title of the bug that was marked as a duplicate of this one is a better description,
Again I would like to reiterate that this bug’s title is inaccurate and it affects the entire overworld, as the report that was a duplicate of this one more clearly states. I’ve been commenting this for 3 year so I really hope to see a proper title update, or become the owner so I can change and update this report myself.
affects 1.21.6-Prerelease-3
It looks like in 1.12.2 the mushrooms are spawning below trees even if the light level is too high (see also old report MC-198). In recent versions they seem to respect the light level, but are therefore much rarer.