AttributeResetFix
by Blunthorn
AttributeResetFix stops attribute values from carrying over after a player dies, fixing a long-standing vanilla bug tracked as MC-179940.
What it does
Attribute modifiers that a player gained before dying are kept across death in vanilla 1.20.x, which MC-179940 describes. AttributeResetFix resets them so the character starts the new life with its base values. Fabric API is required to run it. Either side can run it, and neither needs it, so it works on a single client, a server or both.
The fix also covers max health, which needed a separate correction, and trinket-based modifiers, which persisted even when the trinket was lost on death. To make the health bar refresh correctly after a change, the mod applies a 0.1 hp fall damage. Files are published for 1.20.1 – 1.20.4 on Fabric, and the code is open source under the MIT License.
Key features
Attribute reset on death
Attribute values gained during a life are cleared when the player dies, so the next life starts from the base values.
Max health correction
Changes to the maximum health attribute are handled separately, so a lowered max health value stays correct after respawn.
Health bar refresh
A 0.1 hp fall damage is applied after attribute changes, which forces the health bar to redraw with the new value.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
How it compares
Spectrum Patch with TCLayer is a Fabric mod for 1.20.1, open source under the MIT License, that runs on the client or the server. PriskasMaks's Auto-Respawn is client-side only, published for 1.16.5 – 1.21.11 under the Apache License 2.0 and not open source. Death Drops is a Fabric mod for 26.2 that needs the client and not the server.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| AttributeResetFix | Fabric | 1.20.1 – 1.20.4 | Client or server, optional | 2024-09-27 |
| Spectrum Patch with TCLayer | Fabric | 1.20.1 | Client or server, optional | 2026-05-20 |
| PriskasMaks's Auto-Respawn | Fabric | 1.16.5 – 1.21.11 | Client-side only | 2026-03-04 |
| Death Drops | Fabric | 26.2 | Client required, server optional | 2026-07-05 |
Questions
Does AttributeResetFix need Fabric API?
In the catalog
AttributeResetFix is one of 3,545 Optimization mods on ModsFinder, and one of 2,575 Optimization mods for Fabric. 13,907 mods support Minecraft 1.20.4.
More from Blunthorn
Similar mods
What the author says
This mods mainly fixes a long standing issue MC-179940, where attributes are not kept upon death. While fixed in 24w20a, it still remains in 1.20.x. Along with that, another problem we noticed is when setting the minecraft:generic.max_health value lower than what it currently is, it would not update visually. This…
Official listing
- Modrinth page
- modrinth.com/mod/attributeresetfix
- Owner
- Blunthorn
- Published
- 2024-09-27
- Updated on Modrinth
- 2024-09-27
- Facts verified
- 2026-10-15
