I need help with mob that plants mushrooms?

Started by b.ART.ek on

Topic category: Help with modding (Java Edition)

Last seen on 04:15, 23. Apr 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help with mob that plants mushrooms?
Fri, 07/09/2021 - 21:07 (edited)

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…
Sat, 07/10/2021 - 09:16

Check whether the block you are replacing with mushrooms is air and it should work.