Minetest Health Mod
This mod adds more complex mechanics around the player's health status, plus the HUD indicators needed to display that status.
Player Attributes
All players have the following attributes. Aside from hunger, poisoning (and being frozen in relationship to protection violations) these effects do not actually happpen with just this health mod - other mods are required to initiate them - e.g. the magic mod.
Hunger
Hunger is indicated by a 'bread' status bar, which goes down over time. Near the bottom, you will start to starve, losing health at regular intervals. Eating (good) food will resolve this problem.
Eating food will generally NOT restore any health - only satiate hunger - but some foods do have minor healing properties.
Poisoned
Eating bad food will cause poisoning, which will cause the loss of health over time. The effects of this are cumulative.
Asleep
Sleeping will slowly restore health. This is currently only possible via the beds mod, and specifically this fork:
https://github.com/CiaranG/beds
Frozen
Being 'frozen' means you can't move for a certain amount of time. As the client doesn't understand this, it can mean you appear to move a bit, but keep getting put back where you were. Possibly tinkering with the physics temporarily could fix this, but it's good enough for now.
Levitating
Levitating is hovering a distance above the ground. Really this needs some extra implementation on the client side to make it work as desired. As it stands, the effect is quite strange and variable.
Speed
The ability to run at 3x normal speed.
Breathing
Breath is not a part of this module - it remains handled in the standard way by the core engine.
However, if the 3d_armor mod is installed AND you are wearing a full suit of gold armor, you are considered to have your own personal air supply.
Protection
Committing a protection violation (e.g. digging a protected node) gets you automatically 'frozen' for a period of 5 seconds. This is good enough to completely remove the ability to dig a hole in a protected wall/roof and sneak through before the server tells the client to put it back.
A protection mod (e.g. areas) is needed for this feature to work.
License
License: Code - LGPL, Textures - WTFPL unless otherwise stated.
Inspired by BlockMen's "hud" mod, from which many of the textures are taken. These are as follows:
- health_heart_fg.png - celeron55 (CC BY-SA 3.0), modified by BlockMen
- health_heart_bg.png - celeron55 (CC BY-SA 3.0), modified by BlockMen
- health_hunger_fg.png - PilzAdam (WTFPL), modified by BlockMen
- health_hunger_bg.png - PilzAdam (WTFPL), modified by BlockMen
- wieldhand.png (from character.png) - Jordach (CC BY-SA 3.0), modified by BlockMen
- health_air_fg.png - kaeza (WTFPL), modified by BlockMen
- health_armor_fg.png - Stu (CC BY-SA 3.0), modified by BlockMen
- health_armor_bg.png - Stu (CC BY-SA 3.0), modified by BlockMen