no hunger?

Discussion in 'Archived: Plugin Requests' started by RonanZer0, Oct 31, 2011.

  1. Offline

    RonanZer0

    well a few days ago an admin on my server told me LWC made 1.8 hunger do nothing but still show up and food would heal your health like it used to. i went to LWC page and i didnt find anything of that type!!I would like a plugin that disables your hunger bar its ok if you still see it just make it not do anything. or just make it be infinite with no health regeneration. i want food to heal me and hunger bar DISABLED

    -.- BUMP DAMMIT

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  2. Offline

    greg_t

    I dont know about no hunger bar but every so often i could make it set everyone's hunger to full like every minute maybe would that be good?
     
  3. Offline

    acuddlyheadcrab

    You could also cancel the EntityDamageEvent if the cause is "STARVATION"... I think!

    Code:
    onEntityDamageEvent(EntityDamageEvent Event) {
      if(Event.getCause().equals(EntityDamageEvent.DamageCause.STAVATION){
        Event.setCancelled(true);
      }
    }
     
  4. Offline

    DirtyStarfish

    Also, you could cancel the EntityRegainHealthEvent if the reason is SATIATED (I think), which is when they are healed due to their food level, not sure on that though, but theres a few different ones. Then, just heal the player when they eat food.
     
  5. Offline

    Torrent

Share This Page