The bug
Sweet berry bushes / sweet berries do not grow if they have a (solid?) block above them.
To reproduce
Plant a sweet berry bush
Place a solid block above
Run
/gamerule randomTickSpeed 10000
or just wait a while
→ ❌ The bush will not grow
Code analysis
@unknown - The following is based on 1.17 Release Candidate 1 yarn mappings.
This is caused by the following statement of net.minecraft.block.SweetBerryBushBlock
in which the light level of the position directly above the block is checked. This is why only solid blocks stop the growth, as transparent blocks allow light through
net.minecraft.block.SweetBerryBushBlock
if (i < 3 && random.nextInt(5) == 0 && world.getBaseLightLevel(pos.up(), 0) >= 9) {
world.setBlockState(pos, (BlockState)state.with(AGE, i + 1), Block.NOTIFY_LISTENERS);
}
Linked issues
Attachments
Comments 19
Confirmed in 1.16.1 also you can remove the parentheses and question mark around solid at top of description, confirmed it must be solid
Confirmed in 1.16-pre2.