The Best Resource for Minecraft
The Best Resource for Minecraft

AttributeFix Mod Wiki

AttributeFix is a vital technical utility mod that removes the hardcoded caps on Minecraft's attribute system, allowing for extreme values in health, damage, armor, and more to function correctly.

7 sections · 650 words

Overview#

AttributeFix is a lightweight but essential mod designed to address a fundamental limitation in Minecraft's engine. While the game's attribute system is theoretically flexible, Mojang implemented "arbitrary limits" on many core properties. These caps often prevent high-tier modded gear, powerful RPG-style bosses, and custom progression systems from functioning as intended.

For example, in vanilla Minecraft, a mob's maximum health is capped at 1,024. If another mod attempts to create a boss with 10,000 HP, the engine will silently truncate that value to 1,024, making the boss significantly weaker than intended. AttributeFix solves this by intercepting the attribute registration process and significantly increasing these maximum limits to a practical, near-infinite range.

Modified Attributes#

The mod targets the generic attributes used by players and mobs. Below is a comparison of the standard Vanilla limits versus the expanded limits provided by AttributeFix.

Attribute Vanilla Limit AttributeFix Limit
Max Health (generic.max_health) 1,024.0 2,147,483,647.0
Attack Damage (generic.attack_damage) 2,048.0 2,147,483,647.0
Armor (generic.armor) 30.0 2,147,483,647.0
Armor Toughness (generic.armor_toughness) 20.0 2,147,483,647.0
Movement Speed (generic.movement_speed) 1,024.0 2,147,483,647.0
Attack Speed (generic.attack_speed) 1,024.0 2,147,483,647.0
Luck (generic.luck) 1,024.0 2,147,483,647.0
Follow Range (generic.follow_range) 2,048.0 2,147,483,647.0
Knockback Resistance (generic.knockback_resistance) 1.0 2,147,483,647.0

Note: While the mod allows these values to exist, the actual effectiveness may still be influenced by Minecraft's internal formulas (see Mechanics section).

Mechanics & Technical Details#

AttributeFix operates by modifying the Attribute objects during the game's initialization phase. It does not change how attributes are calculated, but rather how they are validated.

System Scope

It is important to distinguish between an Attribute Limit and a System Formula:

  • Attribute Limit: The maximum value a variable (like Armor) can hold. AttributeFix increases this.
  • System Formula: The math used to calculate damage. For example, the vanilla damage formula has a built-in "soft cap" where armor effectiveness starts to drop off or max out around 25-30 points.
  • HUD Limitations: The vanilla GUI (Heads-Up Display) only shows up to 20 points (10 icons) of armor. Even with AttributeFix allowing 100 armor points, the visual bar will not change without additional interface mods.

Behavioral Example

Without this mod, a sword enchanted to deal 5,000 damage would only deal 1,024 damage because the engine "clamped" the value. With AttributeFix installed, the full 5,000 damage is passed through to the target, allowing for true "god-tier" weaponry in modpacks.

Configuration#

AttributeFix is designed to work out-of-the-box with no setup required. However, advanced users can customize the limits for specific attributes if they wish to re-impose certain restrictions.

File Location: config/attributefix.json (or attributefix-common.toml in some versions).

Configurable Options

Within the configuration file, every registered attribute in the game (including those added by other mods) will appear. You can modify the following for each entry:

  • Modified Limit: The new maximum value allowed for that specific attribute.
  • Enable/Disable: You can choose to exclude certain attributes from being patched if they cause conflicts with other specialized mods.

Example JSON structure:

{
 "generic.max_health": 1000000.0,
 "generic.armor": 1000.0,
 "generic.attack_damage": 1000000.0
}

Testing the Mod#

To verify that AttributeFix is working correctly in your 1.20.1 environment, you can use vanilla commands to create items or entities that exceed standard limits.

Test 1: Extreme Damage Sword Use this command to give yourself a sword that deals 5,000 damage. Without the mod, it will only deal 1,024. /give @a golden_sword{AttributeModifiers:[{AttributeName:"generic.attack_damage", Amount:5000, Slot:"mainhand", Name:"generic.attack_damage", UUID:[I;-12454,17070,183450,-34140]}]}

Test 2: High Health Mob Summon a spider with 10,000 HP. Without the mod, its health will be capped at 1,024. /summon spider ~ ~ ~ {Health:10000f, Attributes:[{Name:"generic.max_health", Base:10000f}]}

Compatibility#

AttributeFix is a "low-level" utility mod and is highly compatible with almost all other mods. It is frequently a required dependency for:

  • RPG Mods: Mods that add leveling systems where health and damage scale into the thousands.
  • Equipment Mods: Mods like Apotheosis or Avaritia that introduce gear with extreme stat boosts.
  • Boss Mods: Mods that add "Titan" style bosses with massive health pools.

It is compatible with both Forge and Fabric loaders for version 1.20.1.