Download Armor Recalc — Minecraft Mods — MetaMods

Armor Recalc

Active

Downloads

0

Last update

8 years ago
Client
Weapons and armor

Armor Recalc

Current Compatibility Information

In Forge version 1.11.2-13.20.0.2307, developers fixed the armor calculation issue. However, for Minecraft versions 1.9.4 and 1.10.2, this bug still exists, so the Armor Recalc mod remains necessary for proper game functionality.

The Problem This Mod Solves

Starting from Minecraft 1.9.4 up to Forge build 1.11.2-13.20.0.2306, the armor damage calculation system was reverted to the algorithm from version 1.8.x. This led to ignoring additional armor parameters set through NBT tags, potion effects and items affecting protection, as well as overall armor toughness. As a result, some standard maps stopped working correctly.

Armor Recalc replaces the outdated damage calculation system from Forge with the modern vanilla version, restoring full armor functionality.

Compatibility Features

Most mods adding new armor that don't use Forge's ISpecialArmor system will work without issues. For example, armor from Simple Ores and the current version of Tinkers Construct function normally.

However, armor using ISpecialArmor (like the Dark Steel set from Ender IO) may behave unpredictably. With default settings, RF durability enhancements in Dark Steel won't work, although other armor functions remain intact.

Issues may also occur with mods using ISpecialArmor with special damage reduction systems.

Features for Version 1.9.0

In Minecraft 1.9.0, the ability to use fractional armor protection values appeared, but the standard damage calculation ignores them before performing computations. Armor Recalc makes minor changes that account for partial protection values, so 2.5 armor points actually provide better protection than 2.0, but worse than 3.0.

Technical Details

The standard damage calculation formula: vanillaDamage = incomingDamage * (1 - max( defensePoints / 5, defensePoints - incomingDamage / 2 ) / 25). However, when calling to read defense points, conversion from double to int occurs, and then to float.

Armor Recalc uses the Forge hook to change incoming damage so that the result of the standard calculation (with defense points rounded to the nearest integer) corresponds to what would be obtained using the original incoming damage and direct conversion of the actual double defense value to float.

It's important to note that the revert to the old armor calculation system occurred in the middle of version 1.9.0 development, so the mod version for 1.9.0 won't work correctly with later versions of Forge.

Project members
TheOldOne22

TheOldOne22

Created: 14 Mar 2017

ID: 53509