1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Wheat is always growing still

Discussion in 'Development' started by McpeBooster, Nov 13, 2018.

  1. McpeBooster

    McpeBooster Baby Zombie

    Messages:
    190
    GitHub:
    mcpebooster
    So at the beginning, I would like to stop growing the wheat on my server.

    I have already canceled the "BlockGrowEvent" and the "BlockSpreadEvent" ...

    Additionally I have set in the pocketmine.yml:
    PHP:
    disable-block-ticking:
      - 
    295
      
    296
    I do not know what to do any more, my head explodes almost at the moment, the above should actually work. Any idea what I could have done wrong?
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    That's the wheat's item ID. You need to cancel the event or disable block ticking for wheat's block ID (ID: 59).
    See: https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/block/BlockIds.php
     
  3. McpeBooster

    McpeBooster Baby Zombie

    Messages:
    190
    GitHub:
    mcpebooster
    Ohh, thank you. I will try this :D
     
    jasonwynn10 likes this.
  4. McpeBooster

    McpeBooster Baby Zombie

    Messages:
    190
    GitHub:
    mcpebooster
  5. JUSTaMod

    JUSTaMod Spider Jockey

    Messages:
    38
    GitHub:
    justamod
    I'm not sure exactly how the disable block ticking works... but I believe wheat has meta attached to it as well. (i'd hope it disables it for all iterations of said block but...) if it's still growing - Have you tried disabling ticking for 59:0, 59:1, 59:2 ... etc? (It goes until 59:7 which is fully grown)
     
    Muqsit likes this.
  6. McpeBooster

    McpeBooster Baby Zombie

    Messages:
    190
    GitHub:
    mcpebooster
    This is an good point. I will try this.
    Thank you
     
  7. McpeBooster

    McpeBooster Baby Zombie

    Messages:
    190
    GitHub:
    mcpebooster
    it still drops...
     
  8. McpeBooster

    McpeBooster Baby Zombie

    Messages:
    190
    GitHub:
    mcpebooster
    I found a solution. Now I easily disabled the "BlockUpdateEvent" for wheat. But normaly it should work with the "BlockGrowEvent" and the "BlockSpreadEvent"...
     
    Muqsit likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.