When placing mushrooms in the nether, and then using bone meal on them, they will never grow, no matter how much bone meal you use on them. Even though it shows the green growing particles, neither red or brown mushrooms will grow into huge mushrooms.
Steps to Reproduce:
Enter a dark environment.
Place down a mushroom and place a block above it.
Obtain some bone meal and apply lots of it to the mushroom.
Observed Behavior:
Bone meal is consumed when used on mushrooms in situations where they can't grow.
Expected Behavior:
Bone meal would not be consumed when used on mushrooms in situations where they can't grow.
Code Analysis:
Code analysis by @unknown can be found in this comment.
Linked issues
relates to 1
Attachments
Comments 10
Confirmed for
14w31a You can place mushrooms on blocks like stone... but using bonemeal won't let them grow (which is not possible) but still uses the bonemeal and makes the green particles
Can confirm this behavior in 21w39a. Here are some extra details regarding this problem. This ticket relates to MC-125642, MC-127995, and MC-212226.
The Bug:
Bone meal is consumed when used on mushrooms in situations where they can't grow.
Steps to Reproduce:
Enter a dark environment.
Place down a mushroom and place a block above it.
Obtain some bone meal and apply lots of it to the mushroom.
Observed Behavior:
Bone meal is consumed when used on mushrooms in situations where they can't grow.
Expected Behavior:
Bone meal would not be consumed when used on mushrooms in situations where they can't grow.
Can confirm in 22w18a. Here's a code analysis of this issue.
Code Analysis:
The following is based on a decompiled version of Minecraft 1.18.2 using MCP-Reborn.
net.minecraft.world.level.block.MushroomBlock.java
public class MushroomBlock extends BushBlock implements BonemealableBlock {
...
public boolean isValidBonemealTarget(BlockGetter $bg, BlockPos $bp, BlockState $bs, boolean %b) {
return true;
}
If we look at the above class, we can see that the isValidBonemealTarget()
boolean always returns "true" for red and brown mushrooms regardless of any circumstances. No checks are carried out to see if the mushroom can grow into a mushroom tree, resulting in this issue occurring.
Mushrooms require dirt material underneath them to be able to grow into huge mushrooms.