Flower placing and breaking instead of not placing at all

Started by SirNopeALot on Wed, 01/06/2021 - 05:03

Topic category: Help with modding (Java Edition)

Last seen on 09:36, 10. Jan 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Flower placing and breaking instead of not placing at all
Wed, 01/06/2021 - 05:03

Hello, I’m looking for help on my EnderHaul mod again. As the title implies, this time something is wrong with the flowers.

 

So our mod adds Rooted End Stone (name still pending), which is basically an End equivalent to Warped Nylium. And like it, it has its own flowers and plants that can only planted on it. My friend managed to make it so that our End flowers break if put on incorrect blocks, but thats not what I wanted; I was hoping for the flower to just not place at all if its not the correct block. Does anybody know how to help?

Last seen on 19:49, 3. Nov 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Cancel the block placed…
Wed, 01/06/2021 - 10:24

Cancel the block placed event if block at x y z = flower and (not ) block at x y-1 z = endstone.