Hunger++
Hunger++
Hunger++ allows you to increase the rate at which hunger reduces players' saturation and food levels from all actions, such as mining, walking, sprinting, fighting, and so on. The increase is configurable, so it can be set to 2 times as fast as normal, or 3.57 times, or whatever you'd like. You can also use it to decrease the rate, so it takes longer for hunger to affect you from those actions, though that isn't the primary focus of the plugin.
Additionally, Hunger++ allows you to optionally set a constant steady drain on your saturation/food level regardless of any other actions you may take, so that even holding still, you will gradually starve to death. This can be used by itself or in conjunction with the hunger rate increase above.
I created Hunger++ because while the idea was simple, I couldn't find a plug-in that actually did it, and I wanted this for a tougher challenge on my games, along with other challenges.
The config file is pretty self-explanatory with comments telling you how things work, and you can use whatever values you like, but for a quick set up, try these values:
Easier difficulty:
hunger_rate: 1.0
basal_metabolic_rate: 1.5
Moderate difficulty:
hunger_rate: 2
basal_metabolic_rate: 0.75
Hard difficulty:
hunger_rate: 3
basal_metabolic_rate: 0.5
NOTE: On the hard settings, food will need to be your number 1 priority, quite possibly even before shelter, as you will be at starving after 1 full day/night cycle even if you don't move. With regular movement, digging, fighting, and jumping, you can easily starve to death before the first day is over if you're not careful to find food quickly. It is survivable (I often play at this setting), but you will need to rethink your priorities and playstyle, and even just surviving from day to day can be a challenge at first.
Remember that jumping and fighting use up food especially quickly even normally, and that is amplified with Hunger++.
For extreme challenge, try the following:
Famine difficulty:
hunger_rate: 6
basal_metabolic_rate: 0.25
Super Famine difficulty:
hunger_rate: 10
basal_metabolic_rate: 0.15
Ultra Famine difficulty:
hunger_rate: 20
basal_metabolic_rate: 0.075
NOTE: Lasting through until even just the second morning on Ultra Famine will be quite difficult.
Config file
Hunger:
hunger_rate increases the exhaustion level so that you hit the exhaustion limit and therefore lose saturation/food sooner than you normally would. This affects all things that drain saturation/food, such as walking, jumping, sprinting, fighting, and so forth (This includes increasing the amount of hunger that eating rotten flesh causes, making it a food of last resort).
1 is normal, 2 is twice the normal hunger rate, 3 is 3 times the normal hunger rate, and so forth. Decimal numbers like 3.56 are fine. Additionally, setting it to negative numbers will lengthen the time it takes for hunger to affect you. -2 means hunger will drain your food twice as slowly as normal, -3 will make your saturation/food bar last three times as long as usual, and so forth. hunger_rate: 1
hunger_rate: 1
basal_metabolic_rate enables a configurable steady drain on your saturation/food levels that occurs independently of and in addition to normal drains like walking, jumping, sprinting, fighting, and so forth. This means you will slowly get hungrier even if you are holding still, not moving at all, though not as quickly as you will if you're doing other things.
0 is disabled, as is normal in Minecraft. The number you put in is the number of Minecraft day/night cycles (20 minutes each) it will take for a newly spawned player with 5 saturation points and 20 food points to completely run out of food and start starving. For example, putting down 3 will mean a newly spawned player will start starving in three Minecraft days, assuming they held completely still the whole time. Decimal numbers like 3.56 are fine. Any additional activities like moving, mining, and so on, would increase that as normal. NOTE: The hunger_rate is factored into the basal_metabolic_rate setting as well, so setting basal_metabolic_rate to 3 days would give 3 days no matter what hunger_rate was set to.
basal_metabolic_rate: 0
debug mode will show the new exhaustion starting point and the current exhaustion level in the console if set to 1. 0 is disabled.
debug_mode: 0
You can download the latest version here: HungerPlusPlus v0.4a
Notes on the ratios between hunger_rate and basal_metabolic_rate
In real life, the majority, and usually the large majority, of all calories a person burns for a day are just to keep the body functioning (In other words, what you'd burn just breathing, keeping your heart pumping, etc, even if you stayed in bed all day, sleeping). This is represented by the basal_metabolic_rate setting. The calories burned through activity, on the other hand, are represented by the hunger_rate setting. This means anything other than sleeping, including everything from reading a book or typing on a computer, to lifting heavy weights or running a marathon.
While the calories burned through your basal metabolism generally remain the same, the calories burned through activity vary heavily, depending on the person's level of exertion throughout the day. Two people might have the same basal metabolic rate, and therefore burn the same number of calories while at rest, but vary wildly in their calories burned through activities for the day. For the first person, who is very sedentary, has a desk job, and doesn't exercise, the calories burned through activity might only be 15% of the total burned that day. The second person, who undergoes extreme exertion from a very demanding physical job or performs heavy exercise all day, might end up with their calories burned through activity to be close to 50% of the total calories burned that day.
You can, of course, put the settings to whatever numbers you want, but above I have some suggested starting points/difficulty levels.
Assuming that the average day of a person in a Minecraft world is very physically demanding and exhausting, these suggested settings have a ratio that is almost a 50/50 split between metabolism hunger (Just keeping your body alive) and hunger from your actions (such as mining, fighting, sprinting, jumping, etc). This assumes heavy activity, but will, of course, depend strongly on your actual activity level from day to day.
Donating:
If you enjoy Hunger++, please consider donating by clicking on the "Donate" button in the upper right corner of the page. Any amount is welcome, and regardless, I hope Hunger++ improves your Minecraft playing experience!
cant use this plugin without multiworld support :(
@mobilephone2003
I agree, multiworld support would be great.
Any node to be exempt?.
Great plugin!
This is working great, but definitely needs multi-world support. Those of us who have mini-game worlds are having players starve with no way of retrieving food
This is actually a great way to prevent long-term AFKers than those "anti-AFK" plugins. And it does it much more naturally too. Great job. :)
OK, it's now available for download:
HungerPlusPlus v0.4a
HungerPlusPlus Version 0.4a is done. Just waiting on the file to be approved.
"MCStats is free, open source and anonymous. All data is public and freely available for every plugin."
http://mcstats.org/learn-more/
http://mcstats.org/plugin/HungerPlusPlus
Thanks for the update! It's working great now.
It's been approved:
You can download the latest version here: HungerPlusPlus v0.4
Also, if anyone is enjoying Hunger++ and would like to donate, I set up the donate button in the upper right corner of this page (Next to the fire Curse symbol). Thanks!
OK, v0.4 is done:
HungerPlusPlus Version 0.4
* Updated to Minecraft v1.5.1-R0.3
Fixed a bug where using basal metabolic rate combined with a negative hunger rate setting (So it takes longer than normal to get hungry) would cause you to take *much* longer to get hungry, or never at all. (Thanks, Xikage and daeger!)
Just waiting on approval for the upload.
This is made with the latest 1.5.1-R0.3 bukkit, so it should work fine with 1.5.1, but I am not running 1.5.1 as of yet, so I only tested it with 1.4.7-R1.0 (Which it works with).
Let me know if there are any issues.
@Undectectable
Yes, I'm just about to release a v1.5.1 version, although the older version may work with 1.5.1 already (Haven't checked).
@MrBoden
This doesn't have multi-world support, although if there is desire for it (Which there apparently is... :) ) I'll see what I can do about implementing that.
Does this, or will it have multi-world support? If I want it in one, but not another, is that possible?
Hi, i use this a lot, any intention to update? :)
@Twilight314
No clue actually, I just started using this plugin! =)
@rellac There are other plug-ins that let you configure the amount of food given by each food item, but perhaps it would make sense to add it to Hunger++
@elyssah
On that same note, yes, I might look into adding a multitude of hunger related things to this plug-in eventually.
@Xikage
Xikage, I'll look into that. Did it work in v1.4.7? Thanks for the bug report!
Lowering the hunger rate does not appear to work with 1.5. I've turned on debugging and the exhaustion level seems to be stuck in a loop where it resets at -1 back to -9, and never reaches the exhaustion point. Increasing the hunger rate seems to work normally.
I'm using the settings hunger_rate: -2, basal_metabolic_rate: 1
Here's a pastebin of the debug log: http://pastebin.com/WDDmEggP
That would be nice. It would be great to have a "one-stop-shop" plugin for all things related to hunger rather than having 3-4 little addons to track, debug, and juggle.
Would be nice if this plugin gave us the option to customise exactly how much hunger would be restored and the level of saturation per food.
I love this mod, it's part of the core plugins for my server.
Just curious though, have you considered adding the ability to toggle of Healing with a full hunger bar?
Like this old plugin http://dev.bukkit.org/server-mods/nohungerheal/#c10
i just need some plugin can slow down the hunger speed of the original multiplayer game, or no starvation death. and i found this this one. both hunger speedup and hunger speed slowdown works. i tested under ubuntu 12.04.2 LTS + jre 1.7 + mcpc-plus 1.4.7 r1.0 build130. it works quite well. and the plugin would automatically generate a linux-config-file-style config yml file for admin to understand. goodjob!