NaNny
Because some mods can't keep their floats in control.
NaNny is a Minecraft Neo/Forge mod that cleans up after mods that set entities' health and/or absorption to NaN.
This is accomplished by hooking into the following events and cancelling and optionally healing the affected entities:
- LivingAttackEvent
- LivingDamageEvent
- LivingHealEvent
- LivingHurtEvent
NaNny creates a TOML configuration file in world/serverconfig/nanny-server.toml
The configuration file has the following options at present:
- doHeal - Enable setting the health of an entity when NaN is dealt or healed to them (Default true)
- health - Percentage of max health to set the entity to when NaN dealt or healed to them (Default 1.0)
- log - Whether or not to log events that set entities' health to NaN (Default true)
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21.1, 1.21, 1.20.4
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on CurseForge — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
NaNny (Fix NaN Health / Absorption) is a free Minecraft Java mod. Compatible with Minecraft 1.21.1, 1.21, 1.20.4, 1.20.2 and newer. Downloaded 17,140,199 times (via CurseForge). Download it and open it directly in the game.