The purpose of this mod is to dial back the hunger system for players that wish to play in a Survival world without having to constantly feed themselves. The mod is designed to be configurable on a per-player basis for SMP servers, so not all players need to be forced one way or the other. This will tilt balance, but whether that is acceptable is up to you.
The mod makes the following functional changes for affected players:
The hunger bar is fixed at half capacity. This allows sprinting and disables health regen.
If the player is afflicted with the "hunger" effect, their hunger bar will drop below the sprint threshold.
If the player is affliced with the "regeneration" effect, their hunger bar will max out.
Eating food will instantly restore health at half the food value of a given food item (configurable). E.g., a cookie will restore a half heart. A cooked porkchop will restore 2 hearts.
Optionally hide the hunger bar.
Optionally change the stack size of food.
Configration
The mod will create a configuration file 'hungerstrike.cfg'.
Mode: How the mod is applied to players. Acceptable values are NONE, LIST, and ALL. Default is ALL.
NONE: Hunger strike is disabled for all players.
LIST: Hunger strike is enabled only for players added in-game with the /hungerstrike command.
ALL: Hunger strike is enabled for all players.
FoodHealFactor: How to translate food points into heart points when consuming food. At the default value of 0.5, food fills your heart bar at half the rate it would fill hunger.
MaxFoodStackSize: Globally overrides the maximum stack size of food items. Affects all Vanilla and Mod food items that derive from ItemFood. Set to -1 to retain the default stack size of each food item. Note: This will affect the entire server, not just players on hunger strike. Default is -1.
HideHungerBar: Controls whether or not the hunger bar is hidden for players on hunger strike. If the hunger bar is left visible, it will remain filled at half capacity, except when certain potion effects are active like hunger and regeneration. Default is true.
HungerBaseline: The default hunger level when no status effects are active. Valid range is [1 - 20], with 20 being fully filled, and 10 being half-filled. The default value is 10, which disables health regen but allows sprinting.
The configration can be modified in-game via commands, as well as directly editing the file.
Commands
The mod comes with commands to manage players and affect mode. These commands are op-level.
/hungerstrike
/hungerstrike add <player>: Enable hunger strike for the given player (if mode is LIST)
/hungerstrike remove <player>: Disable hunger strike for the given player (if mode is LIST)
/hungerstrike list: List all players hunger strike is enabled for
/hungerstrike mode: Show the current mode
/hungerstrike setmode : Set the current mode.
Installation
This is a Forge-based mod, and requires a version of Forge compatible with the version of Minecraft you are installing the mods for. The same download is used for the client and server. Place the jar directly into the minecraft/mods or mods folders, respectively.
If you don't like the Forge dependency, the source is available and you are welcome retarget the mod to another loader.
The source code is available for anyone to inspect or learn from. It's MIT licensed so you are essentially unrestricted if you wish to do anything with it.
Change Log
2/8/2015 - 1.8.0-1.0.6:
- Updated mod to Minecraft 1.8
- Updated network model to SimpleNetworkMessage system.
- Minor config GUI improvements.
2/6/2015 - 1.7.2-1.0.5:
- Added in-game configuration menu.
- Added new config option 'HungerBaseline', to allow keeping hunger maxed out (or set to a value other than 1
4/2/2014 - 1.7.2.2:
- Fixed incompatibility with Botania and possibly other mods. The client/server side check utilized when hunger strike is 'active' would cause the mod's GUIs to stop working.
4/1/2014 - 1.7.2.1:
- Changed default mode from 'LIST' to 'ALL' to improve SSP experience.
- Added FoodHealFactor config option to control amount of health regen from food.
Well, this is one solution for the changes to hunger in 1.7. I personally don't like having to carry three or four times the amount of food I had to have in earlier versions. Perhaps you could work on a small mod that just reverts hunger behavior, or add that as a feature of this mod. I don't like 1.7's hunger, but I don't necessarily want to remove it completely.
I'll take a look at it later tonight. It shouldn't have been necessary to open to LAN if you hand-edited the config (and restarted your client). I'll also change the default to enable the mod. Server admins can set it back to opt-in if that's what they want.
This is *close* to what I was looking for, but too much :\ I'm using Timescaler so I have longer days, and ofc the hunger doesn't change to suit that, so I'm eating like 12 steaks - 15 chickens per day lol. This makes it really hard to get started in survival, as you are basically chowing everything in sight just to stay alive.
So my goal is to find a way to cut the hunger rate down by half or so. I would figure refilling the entire health bar twice during a full day of running around would be about right, instead of 3-4 times like it is now. Can your mod possibly be modified to do just that and nothing else?
It's not really the purpose of this mod. But it might be possible to support. I will need to evaluate whether I can do it without core-mod shenanigans or not. I have a rough idea for implementation.
I've uploaded version 1.7.2.1. This changes the default mode so it works out of the box in SSP. I've also added a FoodHealFactor config option, so you can tweak the difficulty by controlling how much health food restores.
- Fixes an incompatibility with Botania and possibly other mods. The client/server side check utilized when hunger strike is 'active' would cause the mod's GUIs to stop working.
Holy ! Dude, i love you so much! this is exactly what i needed to be able to play minecraft again! I absolutely HATE the food system in the game right now! I loved it back when we had no hunger bar and only healed from food....seriously, well done dude, you are awesome. Please never drop support from this mod, pleeeease! You are like, the only modder right now that gets it...people have removed the hunger bar before, but abandoned their mods when new versions came, and honestly your way of doing it is probably the best implementation yet!
Once people find this mod, oldschool minecraft players will flock to it, i just know it.
two reasons why the vanilla hunger system SUCKS.
1. its extremely tedious to keep feeding yourself while you are hungry
2. while you are NOT hungry, the game turns into psuedo-peaceful mode, which is way, WAY too easy.
So, the vanilla hunger system is extremely annoying, but also makes the game extremely easy.
Thank you for fixing this sir
EDIT: Can you also make an option where food doesnt stack? (Unless its in a chest) That would be cool too!
If you can't figure out how to only let food stack in chests, and not in the player inventory, then just make an option to never let food stack ever. Because nostalgia and making the game harder, yo Lets all go back to a time where minecraft wasnt dumbed down for 4 year olds :')
Thanks, I'm glad there's a few other people that agree with me. It's a very niche group. You can find dozens of mods to make the hunger system even worse.
I briefly looked into the stacking behavior and think it would be too complicated to try and affect only player inventory. It would be possible to apply a global limit that affects everyone, not just those 'on strike'. I suppose I could put in that option for the next release. It might be a better SSP option; I'm not sure if it would be easy to circumvent by SMP players or not.
The food heal factor was intended to help counter-balance the stacking factor.
It's not really the purpose of this mod. But it might be possible to support. I will need to evaluate whether I can do it without core-mod shenanigans or not. I have a rough idea for implementation.
I've uploaded version 1.7.2.1. This changes the default mode so it works out of the box in SSP. I've also added a FoodHealFactor config option, so you can tweak the difficulty by controlling how much health food restores.
Thanks for considering it. I didn't realize it would be difficult to adjust the rate at which food is consumed. I like the health regen (and hate "food healing" across all games of all time) but I think the makers of MC went a little too "hardcore" on some things, so I'm actively looking for mods that dial things back a bit.
How hard would it be to port this mod backwards to 1.5.2? It would be awesome to use this with Hexxit (especially with the zelda grasses that drop hearts, it would make them alot more useful!)
Indeed this is a very niche group. I'm enjoying this mod ALOT in my SSP playthrough, i keep making hardcore worlds with this mod on and some others (glens gasses, infernal mobs, mine and blade, twighlight forest, a bunch more, though i doubt with this mod and hardcore mode that id ever make it far enough to get very far in twighlight forest anyways :D) and its super fun. I think the farthest ive made it is 2 nights, and then i died :c
But yeah, this system is awesome. Old food system was better in so many ways.
Maybe if you implemented that no food stacking feature, you could have a preset config, and make it an almost identical copy of the old system - food heals you the same amount as it used to, and doesn't stack. I also might add that the new munching animation does make it a bit harder to heal during combat, which is quite interesting. It has gotten my ass kicked by skeletons a few times Hopefully with this thread getting more posts more people will check it out and maybe enjoy it as much as we do
New update is out. Now you can hide the hunger bar, and set the global stack size for food items (if you want that olde tyme 1 food per slot). I've also cleaned up the client/server interaction.
i do like the old system of hunger, but what does this add that is helpful? seriously, i can get rid of hunger (bar stays, but is frozen) with just a little redstone and a command block, so yea, whats the point of this
No one's forcing you to download it if it adds nothing of value to you.
Freezing the hunger bar is only half the equation. The food behavior has to change, and then there's nice extras like hiding the hunger bar or changing how food stacks.
Just want to stop by and say I love this mod. It's exactly what I needed. Now I can play this game one step closer to my first experience without this stupid mechanic getting in the way of my fun
Good mod. I love the pre-1.8 days when hunger wasn't a thing. I'm one step closer to reverting the new Minecraft to the best features of the olden days.
Though, quick note, the default for the food heal factor (0.5) is a terrible default, balance wise. It's mostly because I have to kill on average 2 herds of cows to get back to full health. I know you're trying to simulate the American dietary habit, but that's taking it a bit too far.
The purpose of this mod is to dial back the hunger system for players that wish to play in a Survival world without having to constantly feed themselves. The mod is designed to be configurable on a per-player basis for SMP servers, so not all players need to be forced one way or the other. This will tilt balance, but whether that is acceptable is up to you.
The mod makes the following functional changes for affected players:
The mod will create a configuration file 'hungerstrike.cfg'.
Commands
The mod comes with commands to manage players and affect mode. These commands are op-level.
This is a Forge-based mod, and requires a version of Forge compatible with the version of Minecraft you are installing the mods for. The same download is used for the client and server. Place the jar directly into the minecraft/mods or mods folders, respectively.
If you don't like the Forge dependency, the source is available and you are welcome retarget the mod to another loader.
Download
[MC 1.7.2] - Hunger Strike 1.7.2.3
[MC 1.7.10] - Hunger Strike 1.0.5
[MC 1.8.0] - Hunger Strike 1.0.6
All past and current releases: Releases Page
Source code: GitHub Project
The source code is available for anyone to inspect or learn from. It's MIT licensed so you are essentially unrestricted if you wish to do anything with it.
Change Log
2/8/2015 - 1.8.0-1.0.6:
- Updated mod to Minecraft 1.8
- Updated network model to SimpleNetworkMessage system.
- Minor config GUI improvements.
2/6/2015 - 1.7.2-1.0.5:
- Added in-game configuration menu.
- Added new config option 'HungerBaseline', to allow keeping hunger maxed out (or set to a value other than 1
7/4/2014 - 1.7.10.4:
- Updated to MC 1.7.10
4/13/2013 - 1.7.2.3:
- Added: MaxFoodStackSize config option.
- Added: HideHungerBar config option.
- Fix: Client/server interactions should behave properly now.
- Fix: Server mode will properly mask client mode config.
4/2/2014 - 1.7.2.2:
- Fixed incompatibility with Botania and possibly other mods. The client/server side check utilized when hunger strike is 'active' would cause the mod's GUIs to stop working.
4/1/2014 - 1.7.2.1:
- Changed default mode from 'LIST' to 'ALL' to improve SSP experience.
- Added FoodHealFactor config option to control amount of health regen from food.
2/28/2014 - 1.7.2.0:
- Initial release
Mods I Develop: Garden Stuff -- Storage Drawers -- Hunger Strike
Tools I Develop: NBTExplorer -- Substrate
I like the originality and execution of the mod, and the configuration, essentially making this modular.
Mods I Develop: Garden Stuff -- Storage Drawers -- Hunger Strike
Tools I Develop: NBTExplorer -- Substrate
I've never liked the hunger system since it was first introduced, so my personal goal was to remove it.
Mods I Develop: Garden Stuff -- Storage Drawers -- Hunger Strike
Tools I Develop: NBTExplorer -- Substrate
Mods I Develop: Garden Stuff -- Storage Drawers -- Hunger Strike
Tools I Develop: NBTExplorer -- Substrate
So my goal is to find a way to cut the hunger rate down by half or so. I would figure refilling the entire health bar twice during a full day of running around would be about right, instead of 3-4 times like it is now. Can your mod possibly be modified to do just that and nothing else?
Thanks for any help!
Z
I've uploaded version 1.7.2.1. This changes the default mode so it works out of the box in SSP. I've also added a FoodHealFactor config option, so you can tweak the difficulty by controlling how much health food restores.
Mods I Develop: Garden Stuff -- Storage Drawers -- Hunger Strike
Tools I Develop: NBTExplorer -- Substrate
- Fixes an incompatibility with Botania and possibly other mods. The client/server side check utilized when hunger strike is 'active' would cause the mod's GUIs to stop working.
Mods I Develop: Garden Stuff -- Storage Drawers -- Hunger Strike
Tools I Develop: NBTExplorer -- Substrate
Once people find this mod, oldschool minecraft players will flock to it, i just know it.
two reasons why the vanilla hunger system SUCKS.
1. its extremely tedious to keep feeding yourself while you are hungry
2. while you are NOT hungry, the game turns into psuedo-peaceful mode, which is way, WAY too easy.
So, the vanilla hunger system is extremely annoying, but also makes the game extremely easy.
Thank you for fixing this sir
EDIT: Can you also make an option where food doesnt stack? (Unless its in a chest) That would be cool too!
If you can't figure out how to only let food stack in chests, and not in the player inventory, then just make an option to never let food stack ever. Because nostalgia and making the game harder, yo Lets all go back to a time where minecraft wasnt dumbed down for 4 year olds :')
I briefly looked into the stacking behavior and think it would be too complicated to try and affect only player inventory. It would be possible to apply a global limit that affects everyone, not just those 'on strike'. I suppose I could put in that option for the next release. It might be a better SSP option; I'm not sure if it would be easy to circumvent by SMP players or not.
The food heal factor was intended to help counter-balance the stacking factor.
Mods I Develop: Garden Stuff -- Storage Drawers -- Hunger Strike
Tools I Develop: NBTExplorer -- Substrate
Thanks for considering it. I didn't realize it would be difficult to adjust the rate at which food is consumed. I like the health regen (and hate "food healing" across all games of all time) but I think the makers of MC went a little too "hardcore" on some things, so I'm actively looking for mods that dial things back a bit.
Indeed this is a very niche group. I'm enjoying this mod ALOT in my SSP playthrough, i keep making hardcore worlds with this mod on and some others (glens gasses, infernal mobs, mine and blade, twighlight forest, a bunch more, though i doubt with this mod and hardcore mode that id ever make it far enough to get very far in twighlight forest anyways :D) and its super fun. I think the farthest ive made it is 2 nights, and then i died :c
But yeah, this system is awesome. Old food system was better in so many ways.
Maybe if you implemented that no food stacking feature, you could have a preset config, and make it an almost identical copy of the old system - food heals you the same amount as it used to, and doesn't stack. I also might add that the new munching animation does make it a bit harder to heal during combat, which is quite interesting. It has gotten my ass kicked by skeletons a few times Hopefully with this thread getting more posts more people will check it out and maybe enjoy it as much as we do
4/13/2013 - 1.7.2.3:
- Added: MaxFoodStackSize config option.
- Added: HideHungerBar config option.
- Fix: Client/server interactions should behave properly now.
- Fix: Server mode will properly mask client mode config.
Mods I Develop: Garden Stuff -- Storage Drawers -- Hunger Strike
Tools I Develop: NBTExplorer -- Substrate
Freezing the hunger bar is only half the equation. The food behavior has to change, and then there's nice extras like hiding the hunger bar or changing how food stacks.
Mods I Develop: Garden Stuff -- Storage Drawers -- Hunger Strike
Tools I Develop: NBTExplorer -- Substrate
Though, quick note, the default for the food heal factor (0.5) is a terrible default, balance wise. It's mostly because I have to kill on average 2 herds of cows to get back to full health. I know you're trying to simulate the American dietary habit, but that's taking it a bit too far.