NaNny
When mods lose control over numbers
NaNny is a modification for Minecraft on Neo/Forge platforms that resolves issues occurring when entity health and/or absorption is set to NaN (not a number).
The mod operates by intercepting the following game events with the ability to cancel them and restore affected entities:
- Living entity attack event
- Living entity damage event
- Living entity healing event
- Living entity hurt event
NaNny automatically creates a configuration file in TOML format at the path world/serverconfig/nanny-server.toml
Available configuration settings include:
- doHeal - Enable health restoration for entities when NaN occurs (default: enabled)
- health - Percentage of maximum health set when NaN occurs (default: 1.0)
- log - Logging of events related to setting NaN for entity health (default: enabled)