minecraft-crawler/config/protection_balancer.json5
2024-08-08 16:24:29 -06:00

68 lines
No EOL
3.6 KiB
Text

{
// --------------------------------------------------------------------------------------------------------
// Protection Balancer by ElocinDev
// --------------------------------------------------------------------------------------------------------
//
// This mod allows to add custom formulas to handle the armor and protection enchantment's damage
// mitigation. This is useful to balance the game to your liking.
//
// --------------------------------------------------------------------------------------------------------
// Do not touch this
"configVersion": 1,
// --------------------------------------------------------------------------------------------------------
//
// --------------------------------------------------------------------------------------------------------
// Formula Cheat Sheet
//
// * You can use the following functions:
// min(a, b) : Returns the smallest value between a and b
// max(a, b) : Returns the largest value between a and b
// sqrt(x) : Returns the square root of x
// sin(x) : Returns the sine of x
// cos(x) : Returns the cosine of x
// tan(x) : Returns the tangent of x
// clamp(x, min, max) : Returns x clamped between min and max
//
// * Variables depend on the formula type, but both will have DAMAGE available.
//
// * You can use the following operators:
// +, -, *, /, ^
// --------------------------------------------------------------------------------------------------------
//
// --------------------------------------------------------------------------------------------------------
// Armor Handling Formula
//
// The result of this formula will be the total damage reduced
//
// Variables:
// DAMAGE : The damage of the current damage instance
// ARMOR : The armor value of the victim
// ARMOR_TOUGHNESS : The armor toughness value of the victim
//
// By the mod's default, the formula is: (min(ARMOR / 60.0, 1.0) * 0.15)
// This formula will mitigate up to 15% of the damage at 60 of armor
//
// You can define a more complex formula that fits for you, as this was designed for the Prominence modpack.
// --------------------------------------------------------------------------------------------------------
"enable_armor_formula": true,
"armor_formula": "min(ARMOR / 60.0, 1.0) * 0.15",
// --------------------------------------------------------------------------------------------------------
//
// --------------------------------------------------------------------------------------------------------
// Protection Enchantment Handling Formula
//
// The result of this formula will be the total mitigation factor
// A factor of 0.10 means 10% of the damage will be mitigated
//
// Available Variables:
// DAMAGE : The value of the current damage instance
// PROTECTION : The total protection levels of the victim
//
// By the mod's default, the formula is: (min(PROTECTION / 20.0, 1.0) * 0.10)
// This formula will mitigate up to 10% of the damage at 20 protection levels (Full set of Prot V)
//
// You can define a more complex formula that fits for you, as this was designed for the Prominence modpack.
// --------------------------------------------------------------------------------------------------------
"enable_protection_formula": true,
"protection_formula": "min(PROTECTION / 20.0, 1.0) * 0.10"
}