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 entitys' 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 entitys' health to NaN (Default true)
How to Install NaNny (Mod)
NaNny by Qther is verified for Forge, Neoforge across Minecraft versions 1.16.5, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3 (latest release: 1.0.1, file size: 5 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.16.5, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3) and platform (Forge, Neoforge).
- Make sure you have the compatible loader or environment installed for Forge, Neoforge.
- Move the downloaded NaNny file into your Minecraft
.minecraft/modsfolder and launch the game.