[MECH] Hungry v0.3.1 - Yet another hunger plugin [1060]

Discussion in 'Inactive/Unsupported Plugins' started by tr4656, Jun 14, 2011.

  1. Offline

    tr4656

    [​IMG]

    Hungry
    Authors: jonathanyc and tr4656
    Version: v0.3.1

    Hungry adds immersion to Minecraft! There is a reason to actually eat food in order to survive making it more realistic - so gather your food and actually eat so you won’t go hungry.

    Highlights:
    • There is actually a need to eat food (like real life)
    • Custom Language support
    Resources:
    Download Plugin
    Contribute at Bitbucket!
    Github Mirror

    Instructions, Permissions and FAQ:
    Our wiki is hosted at Bitbucket, and is available here.
    Quick Links
    To-do list and Known Bugs:
    See our Bitbucket issues page.

    Changelog:
    v0.3.1
    • Fixed eating events not registering when right-clicking on air.
    Credits:
    • Thanks to Fullwall, for his Gastronomic plugin (off which many parts of this plugin were based!)
    • Thanks to chernobyl360, for maintaining Gastronomic after Fullwall stopped (until he got hacked)
     
  2. Offline

    jonathanyc

    What kind of error message do you get? Do you get none at all? Does an error message appear in the server logs?
     
  3. Offline

    BioRage

    @jonathanyc

    Switched from Gastronomic to you guys! Don't let me down.

    "starvationDoesActualDamage": false,


    Does that mean when you get hungry..100 you DONT get hurt?

    @tr4656

    Also, how come when you eat something, it doesn't tell you what it restored + the item you ate.

    "Apple restored 10 hunger, your hunger is now 0"

    Also,

    Changed

    "incrementAmount": 5,

    To 5, it still only increments by 1.


    Config File:
    http://www.pastie.org/2099716

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

    tr4656

    Yes

    It means your armor doesn't take damage.

    I didn't really get your first question. :confused:

    As to your second question, it adds 5 at the checkInterval amount. If it doesn't work, you can always try decreasing the checkInterval rate by 5.
     
  5. Offline

    compgurusteve

    "checkInterval": 60, // The length of time between when Hungry increments player hungers, sends notification messages, and does starvation damage

    Is this in seconds? Ticks?
     
  6. Offline

    jonathanyc

    "Actual" damage does damage to armor, etc. "Fake" damage shouldn't do damage to armor.

    This is in seconds. :)

    incrementAmount might be bugged in the current version - it's one of the things already in v0.3 (effects still left).

    We'll try. :)
     
  7. Offline

    tr4656

    Seconds
     
  8. Offline

    compgurusteve

    Ninja'd :) Thanks for the info guys.
     
  9. Offline

    Pershonkey

    I really like this plugin! Adds a reason for those long hours getting all that pork. One thing: is there a way to change the interval between hunger additions? I found checkInterval, but is that just the time between the hunger notifications or something else?
     
  10. Offline

    dvdbrander

    That's the time between hunger increasements.
     
  11. Offline

    jonathanyc

    Hungry version 0.3 progress
    We'll release a v0.3 beta after we complete internal testing.
    • Bug-fix: probable fix for player hungers sometimes not increasing DONE
    • Bug-fix: right-clicking on wolves to feed them restores hunger TO DO
    • Feature: effects system (make players move slower based on hunger, poison, give benefits to players who are well-fed, etc.) 1/2 DONE
    • Feature: storing player hungers in a different file than the configuration file DONE
    • Feature: add an easier API for other plugins 1/4 DONE
    • Feature: add "extension" plugins to interact with other plugins (such as Jails) TO DO
    • Feature: add support for running without Permissions TO DO
    • [B][COLOR=rgb(0, 0, 255)]Feature:[/COLOR][/B] add native support for other Permissions plugins, such as PermissionsEx [COLOR=rgb(255, 153, 0)][B]1/2 DONE[/B][/COLOR]
    • [COLOR=rgb(255, 153, 0)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][B][COLOR=rgb(0, 0, 255)]Feature:[/COLOR][/B] [/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][COLOR=rgb(255, 0, 0)][COLOR=rgb(20, 20, 20)]add option for hunger not killing you (maximum damage dealt by Hungry)[/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][COLOR=rgb(255, 0, 0)][COLOR=rgb(20, 20, 20)] [/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR]TO DO
    • [COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][B][COLOR=rgb(0, 0, 255)]Feature:[/COLOR][/B] [/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][COLOR=rgb(255, 0, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][COLOR=rgb(255, 0, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][COLOR=rgb(255, 0, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][COLOR=rgb(255, 0, 0)][COLOR=rgb(20, 20, 20)]add (optional?) cleaner/alternative command system (sub-commands of /hungry)[/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)] [/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B]TO DO[/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR]
    • [COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][B][COLOR=rgb(0, 0, 255)]Feature:[/COLOR][/B][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][COLOR=rgb(255, 0, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][COLOR=rgb(255, 0, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][COLOR=rgb(255, 0, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][COLOR=rgb(255, 0, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][COLOR=rgb(255, 0, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][COLOR=rgb(255, 0, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][COLOR=rgb(255, 0, 0)][COLOR=rgb(20, 20, 20)] add option to show messages when players eat food (to tell them how much hunger is restored)[/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)] [/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B][COLOR=rgb(255, 0, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 153, 0)][B][COLOR=rgb(20, 20, 20)][COLOR=rgb(255, 0, 255)][B]TO DO[/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/B][/COLOR][/COLOR][/B][/COLOR][/COLOR]
    As you can see, we still have some things to finish up, but the main things (neatening up of structure, effects system) are in-place to be completed.

    Sorry for the lack of commits to the repository - been playing around with the code a lot, so a commit would probably be un-mergeable.

    I am sorry if I missed any features you guys suggested - if I did, could you please remind us? :)

    Thanks!
     
  12. Offline

    Kevger

  13. Offline

    Spycoclown

    will it be includet in the effect system that i can change the amount of how much hearth a food restores?

    And how about the posibility to change the message i get with the command "/hunger" do i can change it so that i only get the current "hungerLevelNotifications" message and not the amount of hunger? i would like to use this plugin without showing any number.
    example:

    my hunger amount is at 50
    I want to know ingame what hunger level i have so i use the command "/hunger"
    I get the message of the Plugin: "Your stomach rumbles."
    So i know as a player ok my hunger level should be between 40 and 60.
    That would be great thx
     
  14. Offline

    compgurusteve

    [quote="jonathanyc, post: 401450]
    • Feature: effects system (make players move slower based on hunger, poison, give benefits to players who are well-fed, etc.) 1/2 DONE
    • I am sorry if I missed any features you guys suggested - if I did, could you please remind us? :)

    Thanks![/quote]

    What about a "fatness" effect? Slow-them down when they've over ate too?
     
  15. Offline

    tr4656

    It is how long between hunger addition in seconds.
     
  16. Offline

    T4L_Goose

    I see no error message. It just says "Player's hunger set to 20!" if I wanted to put it to 20, but the hunger stays this same. This happened to someone who's hunger wasn't going up normally, btw. It's probably linked.
     
  17. Offline

    dvdbrander

    What means 1/2 done? Do they move slower already?
    And can you already disable the damage?
     
  18. Offline

    Spycoclown

    1/2 = the half of the effects system is done. that dont mean that it already works.
     
  19. Offline

    jonathanyc

    By 1/2 done, it means the actual architecture is in place, but the implementation (the simple part, as it's just some procedural calls to Bukkit libraries) is not fully complete. In fact, I'd say it's a little more than 1/2 complete, as poison has already been implemented.
     
  20. Offline

    Spycoclown

    Well thats great. ill be realy happy at the time your releasing ;)
     
  21. Offline

    MG127

    the plugin seems to work normal but sometimes i get this in the log:
    Code:
    2011-06-23 12:08:09 [SEVERE] Could not pass event PLAYER_INTERACT to Hungry
    java.lang.IllegalStateException: Start block missed in BlockIterator
        at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:170)
        at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:257)
        at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:292)
        at org.bukkit.craftbukkit.entity.CraftLivingEntity.getLineOfSight(CraftLivingEntity.java:91)
        at org.bukkit.craftbukkit.entity.CraftLivingEntity.getTargetBlock(CraftLivingEntity.java:117)
        at us.icebrg.hungry.Hungry.handlePlayerEat(Hungry.java:106)
        at us.icebrg.hungry.HungryPlayerListener.onPlayerInteract(HungryPlayerListener.java:30)
        at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:306)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:166)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:137)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:518)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  22. Offline

    kahlilnc

    Can you add permission node: hungry.player.nohunger (mainly for my vip group)
     
  23. Offline

    jonathanyc

    All you have to do is not give them the hungry.player.hunger permission, or give them a '-hungry.player.hunger' permission for a negative permission.

    Thanks for the bug report, looking into it.
     
    kahlilnc likes this.
  24. Offline

    compgurusteve

  25. Offline

    Singapore123

    Can you make it so that it does not have Permissions? LevelCraft breaks permissions for me.
     
  26. Offline

    Flenix

    Any chance you could add the old Thirst from Gastronomic too? And maybe Fatigue (need of sleep) although not sure how well that'd go into this.
     
  27. Offline

    jonathanyc

    Yep, already looking into it. Thanks!
    Working on an op-based system.
    One of our developers actually proposed fatigue. :) We'll try to add Thirst, but as I recall it was rather buggy with Gastronomic.
     
  28. Offline

    T4L_Goose

    Hows development going? Have an estimated ETA?
     
  29. Offline

    jonathanyc

    Haha, had a bit of a scare because I thought I would have to go on vacation this weekend. :) It's next weekend, instead.
    We'll try to get a beta out by Monday, and a final before next weekend.
     
  30. Offline

    spunkiie

  31. Offline

    alfskan

    hi!
    I love this plugin.
    but it always overwrite the config.json when reload server.
    so I cant configure anything.
    please help me lol..
     

Share This Page