QED
by huaijiujing
QED targets NaN values that spread through entity data after an entity takes infinite damage, and cleans them up so the entity can die normally.
What it does
Taking infinite damage normally kills an entity outright. When the damage is computed, absorption is subtracted from infinity, which yields NaN, and the NaN then spreads into the absorption attribute and into later damage calculations. Entities that carry special logic can survive such a hit and go on running other routines, and in those cases the contaminated data stays visible, for example on a Target Dummy that keeps displaying NaN damage.
QED changes the calculation itself rather than cleaning up afterward. Damage after absorption is computed as the smaller of the damage before absorption and the current absorption, which removes the unnecessary subtraction of infinity, so NaN no longer arises. The mod is open source under the GNU General Public License v3.0 only. It is server required and client optional: a server needs it, and a singleplayer player must also have it installed on the client, while a client joining a server that runs it can leave it out.
Key features
Corrected damage formula
Damage after absorption equals the smaller of the pre-absorption damage and the current absorption, so infinity is never subtracted.
NaN prevention
Because infinity no longer enters the subtraction, the absorption attribute and later damage values are not contaminated with NaN.
Target Dummy fix
The mod fixes the case where a Target Dummy keeps showing NaN damage after taking infinite damage.
Broader entity repair
Entities with special mechanics that survive infinite damage are covered, so their data is no longer left with NaN contamination.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Who it’s for: Server owners who want entities to die normally after infinite damage, and singleplayer players who run into NaN values after extreme damage.
How it compares
NaN is a Fabric mod that is client-side only and released under the MIT License, for 1.20.1, so it changes nothing on the server. DarkUnbug NaN fix is Fabric-only for 1.20.1, is not open source and is licensed as All rights reserved, with a client and server environment. Nolith is a Forge mod for 1.20.1 that runs on client and server, is released under the MIT License and does not cover Fabric or NeoForge.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| QED | Fabric, Forge and NeoForge | 1.20.1 – 1.21.11 | Server required, client optional | 2026-08-28 |
| NaN | Fabric | 1.20.1 | Client-side only | 2026-04-28 |
| DarkUnbug NaN fix | Fabric | 1.20.1 | Client and server | 2026-06-09 |
| Nolith | Forge | 1.20.1 | Client and server | 2026-08-09 |
Questions
Does QED have to be installed on the server?
Which loaders does QED support?
Does QED fix NaN values in general?
In the catalog
QED is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 19,862 mods support Minecraft 1.21.11.
More from huaijiujing
Similar mods
What the author says
This mod does not depend on any other mod. This is a mod that fixes entity data being contaminated with NaN due to extreme damage — or, more broadly speaking, "fake death".
Official listing
- Modrinth page
- modrinth.com/mod/qed
- Owner
- huaijiujing
- Published
- 2026-08-13
- Updated on Modrinth
- 2026-08-28
- Facts verified
- 2026-10-15
