The Bug:
Wither roses cannot be placed on any type of nylium.
Steps to Reproduce:
Place down some any kind of nylium and obtain a wither rose.
Attempt to place the wither rose on top of the nylium.
Observed Behavior:
Wither roses cannot be placed on any type of nylium.
Expected Behavior:
Wither roses would be able to be placed on any type of nylium.
Code Analysis:
Code analysis by @unknown can be found below.
The following is based on a decompiled version of Minecraft ??? using Mojang mappings.
Current Code:
net/minecraft/world/level/block/WitherRoseBlock.java
protected boolean mayPlaceOn(BlockState p_58248_, BlockGetter p_58249_, BlockPos p_58250_) {
return super.mayPlaceOn(p_58248_, p_58249_, p_58250_) || p_58248_.is(Blocks.NETHERRACK) || p_58248_.is(Blocks.SOUL_SAND) || p_58248_.is(Blocks.SOUL_SOIL);
}
Fixed Code:
net/minecraft/world/level/block/WitherRoseBlock.java
protected boolean mayPlaceOn(BlockState p_58248_, BlockGetter p_58249_, BlockPos p_58250_) {
return super.mayPlaceOn(p_58248_, p_58249_, p_58250_) || p_58248_.is(Blocks.NETHERRACK) || p_58248_.is(Blocks.SOUL_SAND) || p_58248_.is(Blocks.SOUL_SOIL) || p_58248_.is(BlockTags.NYLIUM);
}
Allowing wither roses to be placed on blocks in the "#minecraft:nylium" tag fixes this issue.
Can they be placed on soul sand and netherrack?