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

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

  1. Offline

    fullwall

    [​IMG]
    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.

    Features:
    • User-specified hunger intervals, increments, and damage amounts.
    • Per-item hunger restoration amounts.
    • 'Effects' system allowing very customisable health restoration/damage effects.
    • Permissions support.
    Permissions:
    Give gastronomic.admin.* support to trusted players, and gastronomic.player.* permissions to all, or configure permissions manually from the list below.
    Code:
    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.
    
    Commands:
    Code:
    /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!
    Changelog:
    v1.3.4 - compatibility, bugfixes.
    Older Versions (open)

    v1.33 - bugfixes, permissions are now opt-out
    v1.31
    • Finally fixed hunger saving (!)
    v1.3
    • Lotsa bugfixes (tm)
    v1.26
    • Incremented version number to reflect amount of bugfixes/new features added to 1.2.
    v1.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.
    v1.1
    • Added /gastronomic reload command.
    • Added initial-hunger setting to allow users to start at varying levels of hunger.
    v1.0
    • 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]
    /drinks
    /gastronomicwater (reload)
    /thirst
    /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

    neopha

    Hey fullwall, luv ur plugin.

    But there is a bug, that my players can't douse water on the ground :(
    Try to find out wheather its a bug in GastronomicWater or conflicts with an other plugin
    and will inform u soon!
     
  3. Offline

    Zothen

    CB 617 with latest download:

    SEVERE] Could not pass event PLAYER_INTERACT to Gastronomic
    java.lang.NoSuchMethodError: com.sk89q.worldguard.bukkit.WorldGuardPlugin.canBuild(Lorg/bukkit/entity/Player;III)Z
    at com.fullwall.Gastronomic.Listener.handlePlayerItem(Listener.java:193)
    at com.fullwall.Gastronomic.Listener.onPlayerInteract(Listener.java:160)
    at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:217)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:133)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:415)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  4. Offline

    BioRage

    PLAYER_INTERACT to Gastronomic

    I keep getting that, and it's not working either, I eat and my hunger only goes up.

    Even set permissions
     
  5. Offline

    Arno00

    Same error as everyone :(
     
  6. Offline

    fullwall

    OK, sorry about that. Wasn't getting updates from posts on this thread :S. Anyway, I have uploaded a fix to 1.31, so redownloading *should* fix the worldguard/null exceptions. Stupid API changes...
     
  7. Offline

    overlordror

    Hey fullwall, thanks for this. This combined with MCMMO has really changed how my server views Minecraft.
     
  8. Offline

    fullwall

    Thanks, means a lot to me.
     
  9. Offline

    Dangirdas

    Fullwall when will you update the thirst?
    Can you please add a permissions that can allow deny some groups to have the thirst?
     
  10. Offline

    fullwall

    Thirst is usually kept up to date along with the main. The only thing it lacks is worldguard support. I will change the permissions to opt-out now.
     
  11. Offline

    Dangirdas

    Is it? Well can you call it something else then thirst 1.0
    Because it has been 1.0 in a long time now.
     
  12. Offline

    fullwall

    Just changed the version number to 1.1 (permissions now opt-out.)
     
  13. Offline

    Dangirdas

    Thanks fullwall!
    Very nice!
    A question? When are guards gonna come on the npc plug?
     
  14. Offline

    fullwall

    When they're done :p. @NeonMaster is the one doing guards for the next release, I myself am doing traders. So... perhaps in the next week or so :).
     
  15. Offline

    Dangirdas

    Fullwall you know what?
    You are a amazing plugin maker!
    Cheers to you and everybody who uses your plugs! <3

    Fullwall can you please add this permissions to the thirst?
    gastronomic.player.thirst
    This is like the gastronomic.player.hunger
    Unless it makes that we can disable the plugin in decided groups.. like we can with the hunger.
    And please fix the link to the thirst it's broken D:

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

    fullwall

    Sorry, fixed now. Basically, all permissions nodes are the same as in gastronomic main, just mapped to a water name. So, it'd be gastronomicwater.player.disablethirst.
     
  17. Offline

    Dangirdas

    Can you please add the permissions in the thirst section too?
    Sorry for asking for so much D:
     
  18. Offline

    fullwall

    When you ask nicely... :) added.
     
  19. Offline

    Dangirdas

    If i ever find you in real life i will give a huge no homo hug!
    :D Good work with all your plugs! <3

    D: i get a error with the new thirst 1.1
    I'm so sorry for using your time on my needs D:
    But can you fix it?

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

    Tobei

    I suggest that thirst and hunger be amalgamated into one plugin with 2 config files.
    ^_^

    Love this plugin. Thanks again fullwall! :)
     
  21. Offline

    Zothen

    fullwall, no hunger gain with 1.32 and CB 617. /hunger shows value, food changes properly but no gain.
    Edit: Oh, and "[SEVERE] Nag author: 'fullwall' of 'Gastronomic' about the following: onPlayerQuit has been replaced with a new signature, (PlayerQuitEvent)"
     
  22. Offline

    Cehel

    Same problem here. :( Thanks for help :)
     
  23. Offline

    xGONExCRAZYx

    Code:
    2011-04-04 17:18:49 [SEVERE] Nag author: 'fullwall' of 'Gastronomic' about the following: onPlayerQuit has been replaced with a new signature, (PlayerQuitEvent)
    
     
  24. Offline

    KinaNeko

    The plug in works, however there is a bug which where when you right click on a usable object (Chest, Furnace, Workbench, Dispenser...etc) while holding food, the gastronomic plugin WILL use the food to lower hunger however hearts will not heal and any other food in your inventory disappears. Are you able to make it so that you won't consume foods while using one of those objects fullwall?
     
  25. Offline

    overlordror

    Hey fullwall, my users are reporting that cookies don't heal hunger in CB621. Any chance of a fix, or are cookies permanently labeled junk food?
     
  26. Offline

    fullwall

    OK... redownload please for those with problems from 1.32. Fixed hunger going up on my server, and added check to make sure you're not right clicking blocks that will disable stuff. To overlordror: have you configured the ID in Gastronomic.foodstuffs?
     
  27. Offline

    Arno00

    My server's user are reporting some bugs :
    - Sometime when you eat food, it clears all food from their inventory.
    - Sometines, when they eat, the hunger level doesn't go down.

    Can you check it, pretty please ? x)
     
  28. Offline

    skulper34

    Food still disappears, try eating a porkchop while having more in your inventory, when you
    click on another porkchop they just disappear.
     
  29. Offline

    Shanev

    1. I'm using CB617 and MC1.4_1 and get the following error message, when using the /hunger command for the first time:

    14:18:29 [SEVERE] Nag author: 'Tahkeh' of 'LoginMessage' about the following: on
    PlayerCommandPreprocess has been replaced with a new signature, (PlayerCommandPr
    eprocessEvent)

    The hunger won't go up!
    edit: Ok, I guess this error has nothing to do with your plugin, since it appeares when using other commands, too. But still: The hunger won't go up! ;)

    ------------------------------------------------------------------------------------------------------------
    2. When diconnecting I get the following message:

    14:27:40 [SEVERE] Nag author: 'fullwall' of 'Gastronomic' about the following: o
    nPlayerQuit has been replaced with a new signature, (PlayerQuitEvent)

    I downloaded the newest 1.32 build today
     
  30. Offline

    fullwall

    The nag event isn't really an issue, as I've replaced that signature already - no idea why its still coming up. Try redownloading again, as that issue should now be fixed (tested on my testbed). Haven't been able to reproduce the food disappearing bug as of yet, or the no hunger restore.
     
  31. Offline

    Dangirdas

    Fullwall there is something wrong with the thrist plugin D:
    It makes errors each time i start it.
     

Share This Page