[MECH] NoHunger v1.3 - Disable Hunger Bar, Heal Directly, and Fully Costumizable! [1240]

Discussion in 'Inactive/Unsupported Plugins' started by Supertt007, Sep 16, 2011.

  1. Offline

    Supertt007

    NoHunger

    As in Minecraft Beta 1.8, players can't heal directly from eating food anymore, they have to fill the hunger bar and wait till the health is regenerated. This plugin DISABLES that, which means no more hunger, players can just left click an item and heal directly. It's also fully configurable, server admins can change the heal value in the config file.

    Something you must know before you use this plugin:
    1. Food bar is still there, that's client sided gui, but it does nothing if you have this plugin installed
    2. You need to LEFT_CLICK to eat food and you cannot eat food if you have full health

    Permissions:
    Code:
        nohunger.instantheal:
            description: Allow players to left click food and heal instantly
            default: false
        nohunger.disablehunger:
            description: Disable the hunger bar of the player
            default: false
    <Edit by Moderator: Redacted bit url>

    Features:
    Disables hunger
    Cancel health regenerate event
    Heal directly by left clicking a food and get a friendly message

    Changelog:
    Version 1.3
    Permission support added:
    nohunger.instantheal: Allow players to left click food and heal instantly
    nohunger.disablehunger: Disable the hunger bar of the player
    Version 1.2
    Added config file, you can config how many hearts you heal now!
    Mushroom Stew now return a empty bowl
    Version 1.1
    Fixed the invisible hearts bug
    Your hunger bar will become full when you move (so basically full all the time)
    Added a user friendly message when your health is full
    Version 1.0
    First Release

    Todo:
    Suggestions?
     
    Last edited by a moderator: Feb 21, 2017
  2. Offline

    TheFluffey

    Testing now, I will get back to you :D
    EDIT:
    Works!
     
  3. Offline

    kkreato

    testing right now

    Does not work!

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

    Supertt007

    1. Food bar is still there, that's client sided gui, but it does nothing if you have this plugin installed
    2. You need to LEFT_CLICK to eat food and you cannot eat food if you have full health

    Please read the stuff above and let me know if anything goes wrong :)
     
  5. Offline

    FluffyMC

    tested and it works really well, i don't know what you guys are talking about :D
     
  6. Offline

    Supertt007

    Glad it works :p
     
  7. Offline

    ChoiceCraft

    Multiworld support in a future build would be something i'd sure like to see.
    Options to disable this plugin in certain worlds, as i still run my creative worlds in the survival game mode, with the plugins and permissions taking over, rather than the dumb new inventory and flight features.
     
  8. Offline

    Courtney

    I agree with ChoiceCraft, if you intergrate Multiworld support that'd be perfect
     
  9. Offline

    Supertt007

    Ok, that's something I m working on now :)
     
  10. Offline

    tbsman

    Look into PlayerInteractEvent. There you can get Actions like: LEFT_CLICK_BLOCK and RIGHT_CLICK_AIR and you can get the Item clicked with.

    http://jd.bukkit.org/apidocs/
     
  11. Offline

    Supertt007

    That's what I used...
     
  12. Offline

    tbsman

    You used RIGHT_CLICK_AIR? No You used LEFT_CLICK_BLOCK and LEFT_CLICK_AIR. Rightclicking is more easier for some people. Or you add a Config where you can set if it should make use of Right or Leftclicking.
     
  13. Offline

    Supertt007

    That's because the animation effect for eating is glitchy, sometimes it won't take out the food your are eating, so I made it left click
     
  14. Offline

    tbsman

    Then let's wait for a Player eat Event.
     
  15. Offline

    Supertt007

    I guess so:p
     
  16. Offline

    Plague

    title missing plugin version
    centered text is unredable
    tag me when CB goes stable for your plugin
     
  17. Offline

    Supertt007

    Version number added
    Center text removed

    Updated to v1.1 with some new features :)

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

    Nick392

    I like it :D
     
    Supertt007 likes this.
  19. Offline

    Supertt007

    Thank you :)
     
  20. Offline

    Courtney

    Love this, it'd be really great if you have the multiworld support out in time for the newest recommended build.
    Appreciate the work you're doing on this :D
     
  21. Offline

    Supertt007

    Yep it's coming :p
     
  22. Offline

    Turgo

    Found a bug. If you eat Mushroom Stew you also eat the bowl as where in 1.7 you normally would be getting the bowl back.
     
  23. Offline

    Supertt007

    Ah thank you for reporting this :p will be fixed soon
     
  24. Offline

    ArtooHD

    Any possibility of disabling the hungerbar but keeping healthregen?
     
  25. Offline

    worstboy32

    Perfect axact what we needed
    But could u make it right click now?
    There was a other that was right but that one is not updated.
    And we rlly want this plugin :D
     
  26. Offline

    Supertt007

    wait what do you mean? if you want to health regen, set it to peaceful?
    right click? there is some problem with the right click because the eating animations, i will try :p
     
  27. Offline

    worstboy32

    Okey good!
    Hopefully it will work :D
     
  28. Offline

    Alcyius

    Just curious, is this compatible with permissions? Or is it for everyone?
     
  29. Offline

    erickingsr

    Can you add permissions support?
     
  30. Offline

    Supertt007

    1.2 is released, now working on 1.3 which adds permission support :)

    updated to 1.3 with permission support :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
    erickingsr likes this.

Share This Page