Started by
b.ART.ek
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to make a mob that randomly plants mushrooms on ground. One problem is that when it stands on a block with a block that doesn't fully cover the ground (like fence), it may still place a mushroom on that block, removing a fence.
What should I do to prevent mob from placing mushrooms on blocks covered by fence-like blocks?
Here's the code I've got for it:
https://sta.sh/047t3p1lxxm
Please help!
Edited by b.ART.ek on Fri, 07/09/2021 - 21:07
Check whether the block you are replacing with mushrooms is air and it should work.