Abstract
Hunger NG is a mod for Minetest adding a very customizable and easy to extend hunger system.The mod adds a hunger bar at the position of the breath bar and hides the bar if the breath bar becomes visible so the most important bar is shown without cluttering the UI too much.
Hunger NG works in singleplayer mode as well as on a multiplayer server. It automatically disables itself when damage is disabled and adapts to the used texture pack.
Rationale
“Why yet another hunger mod? Is it a fork?” – No, Hunger NG was written from scratch in code and concept, is not a fork, and is completely self-contained.The main difference from most (if not all) hunger mods is that hunger points get subtracted directly from the hunger value instead of being calculated to some sort of exhaustion value that’s being used to reduce the hunger. This gives more detailed control over how many hunger a specific action will cause.
Additionally all of the hunger-related information is stored as player meta data or custom item attributes. There are no global tables polluting the mod namespace or held in the mod’s local chunk. It’s all nice and clean stored in players and items.
Hunger NG allows detailed configuration of all aspects of the hunger manipulation. An exhaustive section on that is available in the mod’s README.md file (see GitLab link). There is a chat command that allows setting the hunger for any named player when having the server privilege.
Mod compatibility
By default the hunger bar is in the same position as the breath bar (the bubbles that appear when a player is awash) and disappears if the breath bar becomes visible. Any mod changing the position of the breath bar needs to change the position of the hunger bar as well (the ID is stored as player meta data, too).Mods that alter or replace food with own versions ignoring custom item attributes will render them unusable for Hunger NG resulting in not being processed by Hunger NG but handled regularly.
Hunger NG is compatible with various mods. Click here for a full list.
Please note that only the current latest official release of Minetest is supported. Other versions than the latest official release of Minetest might work – or might not work. If you encounter issues with older versions of Minetest, or with developer versions of those: please try again with the current non-dev versions.
Obtaining the mod
GitLab: Browse the source, Download latest version, Content DBDocumentation click here for the online documentation
License: GPL Version 3 for source, various for sounds
Dependencies: none
Language Support: English (default), Italian, Spanish, German