Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

stop water from moving?

Comments in 'Plugin Development' started by dxm_hippie, May 20, 2015.

  1. dxm_hippie
    Offline

    dxm_hippie Active Member Plugin Developer

    Joined:
    Feb 1, 2015
    Posts:
    413
    Plugins:
    1
    Minecraft User:
    XxDXM_hippiexX
    Just wondering if there is a event for water movement? I would like to be able to unban buckets but so people can make pools and other cool stuff but people insist on making water falls witch causes lag /: so I been trying to think of a way to stop water/lava from flowing.
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Just disable the water bucket item.
  3. dxm_hippie
    Offline

    dxm_hippie Active Member Plugin Developer

    Joined:
    Feb 1, 2015
    Posts:
    413
    Plugins:
    1
    Minecraft User:
    XxDXM_hippiexX
    I have, I also ban ice and all buckets. but if there was a way to stop it from flowing I feel that would be better so others may use the water and not be able to make giant water falls lol
  4. dxm_hippie
    Offline

    dxm_hippie Active Member Plugin Developer

    Joined:
    Feb 1, 2015
    Posts:
    413
    Plugins:
    1
    Minecraft User:
    XxDXM_hippiexX
    flowing water and regular water have different item I'ds right? couldn't it be possible to make a plugin that..well scans every world in the server for flowing waters I'd and sets it to air if found? or is that not possible to scan worlds like that.
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
  6. matthww
    Offline

    matthww Active Member

    Joined:
    May 13, 2014
    Posts:
    91
    Minecraft User:
    Matthww
    That will cause many lagg
  7. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    You always say that @Gamecrafter's plugins are simple. It can't get any simpler than that.
  8. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    No. The problem is it doesn't do anything at all.
    LDX likes this.
  9. matthww
    Offline

    matthww Active Member

    Joined:
    May 13, 2014
    Posts:
    91
    Minecraft User:
    Matthww
    i think he means that the plugin doesn't work
  10. Samueljh1
    Offline

    Samueljh1 Active Member Plugin Developer

    Joined:
    Jan 9, 2015
    Posts:
    316
    Plugins:
    5
    Minecraft User:
    Samueljh1_
    Thats @Gamecrafter for you! xD
  11. Samueljh1
    Offline

    Samueljh1 Active Member Plugin Developer

    Joined:
    Jan 9, 2015
    Posts:
    316
    Plugins:
    5
    Minecraft User:
    Samueljh1_
    Its as fake as @TheLucyClub's Knot Plugin xD
  12. dxm_hippie
    Offline

    dxm_hippie Active Member Plugin Developer

    Joined:
    Feb 1, 2015
    Posts:
    413
    Plugins:
    1
    Minecraft User:
    XxDXM_hippiexX
    Thanks i will check it out!
  13. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    so which event is for that? github page doesnt exist
  14. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    You just bumped a pretty old thread lol
    PHP:
    public function onBlockUpdate(BlockUpdateEvent $event){
            if(
    $event->getBlock() instanceof Lava && $this->getConfig()->get("enable")["spread"]["lava"] === false){
                
    $event->setCancelled();
            }
            if(
    $event->getBlock() instanceof Water && $this->getConfig()->get("enable")["spread"]["water"] === false){
                
    $event->setCancelled();
            }
        }
    udwarf likes this.
  15. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    i know thx :D and what is blockSpreadEvent?
  16. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,747
    Minecraft User:
    Legoboy0215
  17. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    ok and what is spread event or form event?
  18. tigerza118
    Offline

    tigerza118 Active Member

    Joined:
    Jan 31, 2015
    Posts:
    100
    Minecraft User:
    tigerza117
    PHP:
        public function onBlockUpdate(BlockUpdateEvent $eventBlock $block){
            
    $item $block->getId();
                    if(
    $item === 8) {
                        
    $event->setCancelled(true);
                    }
                    if(
    $item === 9) {
                        
    $event->setCancelled(true);
                    }
                    if(
    $item === 10) {
                        
    $event->setCancelled(true);
                    }               
                    if(
    $item === 11) {
                        
    $event->setCancelled(true);
            }
        }
  19. Gamecrafter
    Offline

    Gamecrafter Notable Member Plugin Developer

    Joined:
    Nov 20, 2014
    Posts:
    981
    Plugins:
    9
    Lol that's the code from SpreadFreeze(an older version with less features of BlockFreezer).
    HotFireyDeath likes this.
  20. Gamecrafter
    Offline

    Gamecrafter Notable Member Plugin Developer

    Joined:
    Nov 20, 2014
    Posts:
    981
    Plugins:
    9
    No it isn't. Go learn PHP. :p

Share This Page

Advertisement