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

How to stop flowing water/lava?

Discussion in 'Help' started by chansol, Feb 6, 2018.

  1. chansol

    chansol Spider Jockey

    Messages:
    32
    GitHub:
    ParkChanSol
    How to stop flowing water/lava?
    I'm trying to stop flowing liquid, but I can't do...
     
  2. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Cancel BlockUpdateEvent if you are asking how to do it in plugin
     
  3. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Block Updates are not called for flowing liquids.

    I've used this method in MyPlot, so I have proof it works. You have to override the registered block for flowing Water and Lava as shown here: https://github.com/jasonwynn10/MyPlot/blob/API3/src/MyPlot/MyPlot.php#L599L600
    In the classes you use for the overrides, ensure they extend their designated blocks, then override the onUpdate function in your class. If it returns false, the luquid will not update as shown here: https://github.com/jasonwynn10/MyPlot/blob/API3/src/MyPlot/block/Water.php#L15
     
    HyGlobalHD likes this.
  4. chansol

    chansol Spider Jockey

    Messages:
    32
    GitHub:
    ParkChanSol
    Thanks!
     
  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.