[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. same problem as nytemare, subtracts health before adding health, could you put a small delay on the subtract so it doesnt kill players who are at low health
  3. Offline


    I got a problem of hunger point disappearing for other people but myself.

    I tested this plugin with me and a friend in the server.

    Two of us idles to let the hunger build up for a while then I leave the server. After that I open Gastronomic.users while the server is still running and noticed the line with my name and hunger point still being there but the whole line with his name and hunger point just disappeared from Gastronomic.users.
    Console also shows "Connection reset" after disconnect.quitting

    His hunger point, however is still where it was before I quit (still working correctly). And after a while the line with his name and hunger point will be regenerated with the correct hunger point in Gastronomic.users.

    However, if he ever quit after his line got blanked from me quitting and not waiting for it to regenerate. His hunger will be reset (still be blanked) after rejoining, and it will be rewritten after the first tick of hunger with the amount of what we set in hunger-increment (default is 5).

    Any ideas?
  4. Offline


    btw guys, I'm seeing alot of questions and stuff here, but fullwall is away until the 1st of may I believe - he should have announced it somewhere.... (and I'm sure he did)
    so yeah, just a heads up
  5. Offline


    This plug-in NEEDS multi-world support. Just add a permission node that 'enables' hunger for players, so I can keep it out of one world file, and in another. I know you're away, but when you get back, this would be great!
  6. Offline


    This sounds like what has been happening on my server ,I just haven't had time to watch it for myself...

    I am curious how the variables are tracked on this plugin? I think the most effective way is to have onEnable load up the saved data, then keep it in memory in a simple map, when onDisable is called, save it to file. Loop through the online players list in schedules task, do the calculations. On death reset, on join check if they have no data at all, if they don't set them up. When 'eating' foods, make sure that target block is not a chest, furnace, workbench, dispenser, or any other block that is generally used by right clicking, I think those changes would get rid of all current problems.
  7. Offline


    I have a quick suggestion,
    Can you make mushroom soup a drink. Since it is... a liquid mostly.
  8. Offline

    Celtic Minstrel

    This already exists.
  9. Offline


    I was looking for a hunger.enable, didn't even cross my mind that placing disable.hunger in the specified world would work just as well.

  10. Offline


    Probably because it';s not the recent cbukkit, plus dev's on vaction.
  11. Offline


    can you make this mod into a multi-world thing so in each world there's different settings for hunger?
  12. Offline


    this plugin needs to be updated to 1.5 ...
  13. Offline


    hi i become this message why?
    2011-04-22 16:15:59 [INFO] Tealk lost connection: disconnect.quitting
    2011-04-22 16:15:59 [SEVERE] Nag author: 'fullwall' of 'Gastronomic' about the following: onPlayerQuit has been replaced with a new signature, (PlayerQuitEvent)
  14. Offline


    any chance it can be set so admins starve too? As I want to have to eat also but my hunger level will not go down?
  15. You probably set your permissions wrong. Read some of the other posts. If you dont have permissions, get it.
  16. Offline


    what version of bukkit you guys using because for 1.5 its not working for me
  17. Offline


    I do have permissions and it works for all users fine - Just myself.
  18. Offline


    Its only Working for OPs. It was working fine till i updated it to 709
  19. Offline


    When you right click on the stargate sign to use the portal and you do it with pork in your hand it sets your hunger to 0 and keeps the food.

    Bukkit build: 714
  20. Offline


    This thing rocked with the previous versions- can't wait to see what kind of progress is made on this plugin. No sense in trying it with new bukkit or 1.5 people, all sorts of things are going to be wrong with it.
  21. Offline


    10:58:17 [SEVERE] Nag author: 'fullwall' of 'Gastronomic' about the following: onPlayerQuit has been replaced with a new signature, (PlayerQuitEvent)
  22. Any chance on getting an update for the next recommended build?

    When is the dev going to be back?
  23. Offline

    Celtic Minstrel

    Perhaps when the next recommended build comes? :p
  24. fullwall
    Back in two weeks.​
    Apr 13, 2011
  25. Offline


    bug .... when open door ( in hand food )
  26. Offline


    I believe now for admins in permissions to have hunger you need to add the node
    - '-gastronomic.disablehunger'
    below the '*' and make sure you use spaces in front of the node not tabs!

    Although I recently stopped gaining hunger again. Thats what I was using though.
  27. Offline


    I'd like to suggest sleep deprivation. The same thing as hunger, except depends on sleep. I've suggested this as a separate plugin but no one seems interested. Here's some copypasta from my thread:

    After 24 (ingame) hours you feel tired and start walking a bit slower
    After 48 (ingame) hours you walk as slow as crouching, or even better forced to be stuck in crouching mode, so people could even see you're tired.
    After 72 (ingame) hours you begin losing health until you die in a few minutes.

    Laying down on a bed, even for a split second will count as sleep.
  28. Offline


    Love the idea, especially as I have a food-shop setup on my server. This mod would add some more customers. ;)

    I guess you're returning from your vacation soon (I hope you had a nice time), please continue this mod. Bukkit really needs a hunger mod.
  29. Offline


    RB is out please update!
  30. Offline

    Celtic Minstrel

    Although Notch has mentioned implementing hunger himself.

Share This Page