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

Solved Not being able to break seeds with water

Discussion in 'Development' started by dadodasyra, May 18, 2020.

  1. dadodasyra

    dadodasyra Witch

    Messages:
    68
    GitHub:
    dadodasyra
    Hello, I have a custom drop on the nether wart and I try to make it so that when the player breaks the seed with water, is the block drop in a custom way as I do, is just in a way that water cannot break seeds with water.

    I currently use a technique which I find is not very clean and TPS friendly, during an update I check if the update is on a seed of late stages (damage 3). If it is the case I look at all the blocks around (27 block in all, 3x3), I check if one of them is an instance of Liquid, if it is the case I destroy (setblock air) the seeds (by way of permissions because the people on my servers get rich in this way while it is prohibited).
     
  2. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
  3. dadodasyra

    dadodasyra Witch

    Messages:
    68
    GitHub:
    dadodasyra
    Thanks
     
  4. NTT

    NTT Zombie

    Messages:
    311
    GitHub:
    NTT1906
    How to turn Link into that
     
  5. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    PocketMine calculates position of new block (new water) if on that position is seed, just cancel the event.
     
  6. NTT

    NTT Zombie

    Messages:
    311
    GitHub:
    NTT1906
  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.