Why NaN Damage Happens and Why It Matters in Modded Minecraft
If you have ever watched a mob or player glitch out after a weird combat interaction in a heavily modded world, you might be dealing with floating-point math gone wrong. In modern Minecraft, some mods can accidentally set an entity’s health or absorption to NaN (not a number). Once that happens, combat, healing, and damage calculations can spiral into unpredictable behavior. NaNny Reforked exists to catch those cases early and keep your world playable.
What NaNny Reforked Is
NaNny Reforked is a fork of the original NaNy mod. The fork targets current Forge builds and improves compatibility for the modpack MC Eternal 2, including a damage fallback that applies in certain situations. For most players, the experience is very close to the original project, because the changes are intentionally small and focused.
The license matches the original mod, and credit for the core idea and implementation belongs to the original author, qther. If you have questions or complaints specifically about this fork, the fork maintainer asks that you contact them rather than messaging the original author, so feedback lands in the right place.
What Problem It Solves
NaNny Reforked helps address one of the more frustrating issues in modern modded play: entities dealing or receiving NaN damage. Ideally, every mod would track down the exact source of invalid float state in every scenario, but that is time-consuming work and often deferred. A practical server-side guardrail can save hours of debugging while you enjoy the rest of your mod list.
How NaNny Reforked Works Under the Hood
NaNny is a Minecraft NeoForge or Forge mod that cleans up after other mods when they set an entity’s health and/or absorption to NaN. It hooks into several living entity events and can cancel problematic outcomes while optionally healing the affected entity:
- LivingAttackEvent
- LivingDamageEvent
- LivingHealEvent
- LivingHurtEvent
Because the mod listens at the event layer, it can react quickly when bad values appear, rather than letting corrupted stats persist across ticks.
Configuration: nanny-server.toml
NaNny Reforked creates a TOML configuration file at world/serverconfig/nanny-server.toml. That file is where you tune behavior for your world or dedicated server.
Current options include:
- doHeal — Enables setting an entity’s health when NaN is dealt or healed to them (default: true).
- health — Percentage of max health to set the entity to when NaN is dealt or healed to them (default: 1.0).
- log — Whether events that set an entity’s health to NaN are logged (default: true).
Logging is especially useful when you are narrowing down which interaction triggers the issue, while healing defaults help keep fights fair when a bad float slips through.
Modpacks, Updates, and a Smooth Install Path
Because NaNny Reforked is built with updated Forge compatibility in mind, it fits naturally into large kitchen-sink packs where dozens of mods touch combat, attributes, and mob scaling. If you are assembling a custom profile and want a straightforward way to manage versions and add utilities like this without juggling folders manually, you can install NaNny Reforked through the foxygame.net launcher — a convenient, flexible, and modern Minecraft launcher that lets you pull mods straight from the menu so your instance stays organized.
When you update Minecraft versions, always verify that your loader (Forge or NeoForge), dependencies, and modpack match the fork’s supported range. Mixing mismatched builds is one of the fastest ways to reintroduce odd edge cases, even with a safety mod in place.
Practical Tips for Server Owners
- Turn on logging while diagnosing, then reduce log noise once the pack is stable.
- Document any custom combat mods you add mid-season, since new mechanics can change event ordering.
- Keep backups before major mod updates; NaNny Reforked reduces risk, but backups remain essential.
Conclusion
NaNny Reforked is a small, purpose-built tool for a specific pain point: NaN health and NaN damage interactions that can destabilize entities in modded Minecraft. It preserves the spirit of the original NaNy mod while offering refreshed Forge support and targeted improvements for packs like MC Eternal 2. Pair it with sensible configuration, careful updates, and a launcher workflow that keeps your mods easy to maintain, and you will spend less time troubleshooting broken combat and more time exploring biomes, building with new blocks, and enjoying your server.