Breath Under Water

Discussion in 'Archived: Plugin Requests' started by banjo222, Dec 1, 2012.

  1. Offline

    banjo222

    Category: mechanics

    Name: Breath Under Water

    This plugin will make you breath under water for a certain amount of time after you eat or drink something. you will be able to configure the time and what you eat or drink.

    Commands: none

    Permisions: none
     
  2. Offline

    banjo222

     
  3. Offline

    banjo222

    please can someone reply i need it for water world server
     
  4. Offline

    Kiakaha

    There is one called "Diving Helmet" which works with a certain piece of armor equipped (you can configure which one)
     
  5. Offline

    banjo222

    thanks
     
  6. Offline

    Retherz_

    banjo222 if someone wants to make this here is code u can use:
    Code:
        public void eat(playereatsfoodeventinserthere event){
            Player p = event.getPlayer();
            if food is equal to config string
                p.addPotionEffect(new PotionEffect(PotionEffectType.WATER_BREATHING,(int) 20L, 10));
     
  7. Offline

    banjo222

    im not really sure how you use this?
     
  8. Offline

    Minerman01

    No, I don't understand anything from developing plugins.
    Can you explain me, I just know the basics from Java.
    I really want to know.

    By the way I like the idea Banjo222
     
  9. Offline

    banjo222

    thanks and i agree can someone please explain
     
  10. Offline

    Minerman01

    I have found something for ya!
    Take a look at this:
    WaterProof
    If this isn't what you're looking for, take a look at HERE or ask Musli1 for it
    By the way I saw that when you put a pumpkin on your head, you can breath underwater?
    Maybe give it a trie?
     
  11. Offline

    ray73864

    Pumpkin Diver, made by Afforess, the developer of Minecart Mania before he switched over to Spout. Awesome plugin it was too.
     
  12. Offline

    TD808

    WorldGuard has an option called Pumpkin Scuba. If you use WG, just enable it in the config, pop a pumpkin on your head and you won't drown.
     
  13. Offline

    Minerman01

    So this plugin isn't update anymore?
     
  14. Offline

    ray73864

    Not that i know of, no. It's a very simple concept though, the code itself wouldn't be very difficult at all.
     

Share This Page