Disable Bonemeal

Discussion in 'Plugin Development' started by ImVaargen, Mar 12, 2016.

Thread Status:
Not open for further replies.
  1. So i want to disable all features of Bonemeal. So you'r not able to place it or use it for growing crops/trees.
    I have no idea how to start this.
  2. Offline


    use interactevent to check if what they hold is a bonemeal :p if so cancel it
    Zombie_Striker and ericejs123 like this.
  3. Offline


    Listen for a StructureGrowEvent. It has a boolean (isFromBonemeal()) that lets you check if it was an artificial growth. If this boolean is true then set the event cancelled.
  4. Offline


    that is growing he asks over the use of bonemeal, which is completely different as bonemeal "grow" only really works on trees which are the only thing that accually grow aswell as seeds and all but placing it directly on grass places random flowers
  5. Offline


    Yea I agree with @Scorpionvssub. use the PlayerInteractEvent. This will disable bonemeal completely when it is used.
  6. Offline


Thread Status:
Not open for further replies.

Share This Page