Mod NaNny by qtherlol

  • NaNny by qtherlol

    A Minecraft Forge mod that cleans up after mods that set entitys' health and/or absorption to NaN.
    • 554912
    • 4.97 KB
    • 1.20.1
    • June 17, 2022
    • September 27, 2023
    • Miscellaneous
      Server Utility
      Utility & QoL
    NaNny
Mod Information
NameNaNnyAuthorqtherlolDescriptionA Minecraft Forge mod that cleans up after mods that set entitys' health and/or absorption to NaN.
InformationDownloads: 554912
Version: 1.20.1
Size: 4.97 KB
Updated at: September 27, 2023
Created at: June 17, 2022
Tags
Miscellaneous
Server Utility
Utility & QoL

NaNny

Because some mods can't keep their floats in control.

NaNny is a Minecraft 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)