When creating a wither or iron golem, if you have any replaceable material, such as a grass block, fire, water, etc... The wither & iron golem cannot spawn when it should instead replace the block with air, or just ignore that block.
Linked issues
Attachments
Comments 2
That's any block, which makes sense. Since it would allow for stuff like bedrock breaking due to the way it's currently written.
I believe the way to fix this is by instead only allowing replaceable blocks to be allowed, which can very easily be done using Predicate:
private static final Predicate<BlockState> IS_REPLACEABLE = (blockState) -> blockState.getMaterial().isReplaceable();
Instead of:
MaterialPredicate.create(Material.AIR)
– Fabric Mappings
Duplicates MC-60792