[INACTIVE][MECH] Gastronomic v1.3.4 - Adding realism through hunger. [766]

Discussion in 'Inactive/Unsupported Plugins' started by fullwall, Jan 28, 2011.

  1. Offline


    The first specialised hunger plugin for Bukkit!
    Now with Thirst - open GastronomicWater Spoiler!

    Download latest release: v1.3.4 (Uses Permissions)
    Older Versions: 1.33, 1.31, 1.3, 1.26, 1.25, 1.2, 1.1, 1.0, 0.1
    Direct link to latest: here

    Ever felt like something was missing from Bukkit? A sense of immersion, of depth? Ever felt like people shouldn't be able to survive for weeks without a single piece of food? Gastronomic provides a reason to kill those pigs, catch that fish, and cook that bread. So gather up your [wheatpicked], [redmushroom] and [meat], and keep reading.

    • User-specified hunger intervals, increments, and damage amounts.
    • Per-item hunger restoration amounts.
    • 'Effects' system allowing very customisable health restoration/damage effects.
    • Permissions support.
    Give gastronomic.admin.* support to trusted players, and gastronomic.player.* permissions to all, or configure permissions manually from the list below.
    gastronomic.admin.enable - gives access to the /gastronomic command.
    gastronomic.admin.reload - gives access to the /gastronomic reload command.
    gastronomic.admin.sethunger - gives access to the /sethunger command.
    gastronomic.player.checkhunger - gives access to the /hunger command.
    gastronomic.player.checkfood - gives access to the /food command.
    gastronomic.disablehunger - give this permission to disable hunger for the user/group.
    /gastronomic - enables and disables plugin.
    /gastronomic reload - reloads all configuration files.
    /hunger - checks your current hunger level.
    /sethunger [player name] [hunger level] - sets player's hunger to the specified amount.
    /food [id] - tells the player how much hunger the id restores.
    /food list - lists how much hunger each food id restores.
    Known issues:
    • If configuration files are deleted for any reason, the server may show some scary messages. Don't worry, it should work out fine! If not, report please :).
    • In GastronomicWater, users must left click to empty buckets (bug with bukkit not calling correct events on bucket use)
    Planned Features:
    • Suggest some!
    v1.3.4 - compatibility, bugfixes.
    Older Versions (open)

    v1.33 - bugfixes, permissions are now opt-out
    • Finally fixed hunger saving (!)
    • Lotsa bugfixes (tm)
    • Incremented version number to reflect amount of bugfixes/new features added to 1.2.
    • Player hunger resets to initial-hunger after death.
    • Added enforce-limit setting to stop hunger going below 0 after death.
    • Added hunger restoration settings.
    • Allowed eating cake.
    • Added /food [id] command to get food hunger restoration value. Add gastronomic.player.checkfood to allow access.
    • Messages are now only sent to the player upon reaching the threshold.
    • Lots of bugfixes.
    • Changed the way players are added/removed on join/quit.
    • Added /gastronomic reload command.
    • Added initial-hunger setting to allow users to start at varying levels of hunger.
    • Added Permissions support.
    • Changed versioning scheme to reflect this.
    • Added support for messages with colour codes, as defined in the properties file.
    • Fixed miscellaneous bugs.
    • Hunger values can go below 100.
    v0.1 - initial release.
    Mechanics (open)

    Each player is given a hunger value, starting at 0. Every so often, at a user-specified interval, every user's hunger level goes up by a specified increment. This goes on until their hunger level reaches 100, and they begin to starve. At every following interval, damage will be taken until food is eaten, restoring hunger levels back to 0.
    Credits (open)

    • Firstly to this thread for inspiring the creation of Gastronomic. Thanks to Bashur and the other posters in that thread!
    • Secondly to TimberJaw, whose Hey0 mod (here) served as ideas for some of my plugin's functionality.
    GastronomicWater (open)
    Please note - this is not updated for 766 yet.
    Download link: 1.11, 1.0

    GastronomicWater has exactly the same features as Gastronomic, but with a separated config file.
    Commands are:
    /drink [id]
    /gastronomicwater (reload)
    /setthirst [player name] [thirst]
    gastronomic.admin.enable - gives access to the /gastronomicwater command.
    gastronomic.admin.reload - gives access to the /gastronomic reload command.
    gastronomic.admin.setthirst - gives access to the /setthirst command.
    gastronomic.player.checkthirst - gives access to the /thirst command.
    gastronomic.player.checkdrink - gives access to the /drink command.
    gastronomic.disablethirst - give this permission to disable hunger for the user/group.

    As this is an early release (and my first actual plugin), please report any bugs or issues, and also features you'd like to be added - I'm always open to suggestions! Also taking suggestions for my next plugin.
  2. Offline


    You're missing the . between player and *. It should be gastronomic.player.*
  3. Offline


    Players are taking half heart damage every 10 minutes regardless of food level. Hunger messages still go up even if your full. Any suggestions?
  4. Offline


    yeah was afraid of that, no graphical interface. Is there one in the works down the road? Or does bukkit even allow for it?
  5. Offline


    Graphical user interface is possible, but only to the extent of a separate program to edit properties files. A modding API would be required to actually add GUI stuff ingame.

    About the issues... could you please post your settings file?
  6. Offline


    Feature request (optional) — food doesn't restore health but health regenerates with zero hunger.
  7. Offline


    So, if hunger is updated, but still below 20, health is healed?
  8. Offline


    Feature update request: About the thirst modification, please make so that when drinking from a water-source you have to have your hands empty, because if you place water with a bucket you will immediately drink it up.
  9. Offline


    Is it possible to display names for the ID's? Instead of having ID numbers, due to turning off /give and /item, it's kind of useless display them without a name :S
  10. Offline


    @DeadLeaves: Have you tried redownloading? I have checked my code, and it looks like I have already blocked that from happening... To eorl - I will try.
  11. Offline


    Yes, something like that. I see it as an adjustable behavior.
  12. Offline


    To eorl: Could you try redownloading and see if the code I just added will now match item names as well as ids?

    To enkryptor. Have you tried something like SlowHealth? I don't know if I should add this feature... if I did, it would have to be something like, adjustable health restoration if hunger is below 20, and it will restore every interval.
    --- merged: Feb 14, 2011 3:50 PM ---
    Updated, redownload - added ability to restore health when hunger is below a threshold - check the properties file.
    --- merged: Feb 14, 2011 4:05 PM ---
    Put version number up to 1.25 - 1.2 had so many new features no one knew about!
  13. Offline


    You added thirst that is fkng awsome.
    I would like to suggest a feature to add to thirst. I would like to make my players drink from a flask to cure thier thirs,(craftible out of leather) that would break after 3-5 uses. That way they have to take space up in thier invantory and couldnt just go run to one of the many watersources on my map to cure their thirst.
    Either way awsome plugin it is essential to the economy of my server and I love all the complaints it generates.
  14. Offline


    Thank you for your work! I've tested the new build and want to add a few more suggestions.

    1. When a player eats some food, he still gains health. The point was to add a new parameter (into Gastronomic.foodstuffs or a new file maybe) — how much hp any food will restore; but in 1.25 food is still more like an "instant heal" spell, not food.

    I suggest to let admins tweak food heal ability, up to make food affect only hunger (and regeneration). That's what SlowHealth can NOT do.

    2. When a player is at his full health, he still gets annoying "you health is restored" message.
    --- merged: Feb 14, 2011 7:04 PM ---
    3. Can't change "you health is restored" message in Gastronomic.properties..
  15. Offline


    You can configure individual food health amounts by putting : and then the food health amount after the food. Redownload Gastronomic, added configurable health message, stopped the spam.
  16. Offline


    Seems to still show ID's only when you do /food list. :(
  17. Offline


    Can you please clarify this a little? Should I put it into Gastronomic.foodstuffs? I tried 297=15:0 and 297:0, but no effect, food still heals.
  18. Offline


    can you make it so i can shut it off for only certain players?
  19. Offline


    That can be don via Permissions, I suppose.
  20. Offline


    Yes, just give the permission gastronomic.player.enable only to those who you want to have hunger.
  21. Offline


    What with "putting : and then the food health amount", where should I put the ":" ?
  22. Offline


    Restoring 1 heart and 100 hunger every time you eat stone.


    Goes in foodstuffs file.
  23. Offline


    I was wondering if there was a way to make it to where your hunger increments went from 0 to 100 based on the amount of steps a player took? (sorta like a stamina gage mixed with hunger) ?
  24. Offline


    Look up tiredman.
  25. Offline


    Does zero work?

  26. Offline


    I can't actually override health restoration without hurting you then healing you :S. Just do -x where x is the normal health restoration of the food item.
  27. Offline


    No matter what I do, using the permissions plugin it says i don't have permission to use /hunger. I am admin with *, I also inherit gastronomic.player.*, I also have gastronomic.player.checkhunger in my user permissions and my admin permissions.

    still can't use /hunger
  28. Offline


    Sounds like an issue with either your version of permissions, or the permission plugin version. Can you post your config.yml?
  29. Offline


    Great mod, but still slightly confused about the health restore function. How often is health restored when the threshold is below 20? Or am I getting this completely wrong.

    Also, anyone got any suggestions on reasonable hunger/thirst increments and intervals?
  30. Offline


    It is restored with an interval you configured in Gastronomic.properties ("interval=..." parameter)
    --- merged: Feb 17, 2011 5:51 PM ---
    the threshold is also customizable ("health-restore-limit=...")
  31. Offline


    Thank you. Currently my interval is at 300 with an increment of 20 and a threshold for health-restore at 20. Not very useful. I better change things up a bit.

Share This Page