Download [FORGE/FABRIC] Armor Curve — Minecraft Mods — MetaMods

[FORGE/FABRIC] Armor Curve

Active

Downloads

0

Last update

2 years ago
Client
Utils

[FORGE/FABRIC] Armor Curve

Important notice:

If you see an error like this:

Description: Rendering overlay
java.lang.ArithmeticException: Division undefined
at java.math.BigDecimal.divide(BigDecimal.java:1741) ~[?:1.8.0_51] {}
at com.udojava.evalex.Expression$6.eval(Expression.java:587) ~[?:2.3] {re:classloading}
at com.udojava.evalex.AbstractOperator$1.eval(AbstractOperator.java:72) ~[?:2.3] {re:classloading}

Check your configuration settings for denominators and wrap them with a MAX(x, 1) statement. For example, damage/max should become damage/MAX(max, 1).

Did you know that according to Minecraft's standard formulas, the difference between iron and diamond armor effectively doubles your health? Interestingly, the transition from leather to iron armor provides an 8-point protection difference, but this doesn't compare to the advantage of iron over diamond in terms of effective health increase.

In the vanilla version of the game, it's possible to survive almost 100 points of damage with full netherite armor with protection enchantment and resistance effect. However, armor in Minecraft doesn't follow the basic principle of diminishing marginal utility - this is exactly what inspired me to create this mod.

Main Changes

Armor effectiveness has been reworked so that the more armor you have, the less each additional protection point adds to your overall defense. Due to the excessive complexity of the armor toughness system, this mechanic has been removed in its direct form. As compensation, base armor values have been slightly reduced.

Now leather armor provides approximately 40% protection, iron - 60%, and diamond - 66%. Protection enchantments have also been weakened to a maximum of 66%, so a full set of diamond armor with protection gives 89% damage reduction instead of 96%.

Instead of toughness directly affecting arbitrary armor damage reduction, an additional calculation system has been added. By default, it significantly reduces any damage over 40 points depending on your armor toughness. All these parameters are configurable.

Armor Degradation

Armor now wears out realistically. Low durability reduces the characteristics of that specific piece of armor, so a half-broken helmet will decrease your protection less than a half-broken chestplate. This system is also fully configurable.

Flexible Configuration

The mod's configuration is structured so that you can input your own formulas (using the EvalEx parser), and the mod will work based on them. Available variables for "armor" and "toughness": "armor", "damage", and "toughness"; for "enchantments": "damage" and "enchant"; for degradation: "remaining" and "max".

For example, you can disable degradation by setting the formula to "1", replicate the vanilla formula using mathematical calculations, or multiply damage by armor so all attacks deal more damage the more armor you wear! The possibilities are endless.

Project members
TheRealJackiecrazy

TheRealJackiecrazy

Created: 11 Oct 2023

ID: 77570