ArmorInteraction

Side Plugin ArmorInteraction 1.0

Armor Interaction
This simple plugin will allow you to have customizable interactions between damage done to players with bending abilities and the armor that they're wearing. As it currently sits, bending damage ignores armor. With this plugin, it'll not only respect armor but you can customize how much armor affects bending damage. More information below.

Minecraft/Spigot/ProjectKorra Versions
As of the latest release, these are the supported versions:
Minecraft / Spigot: 1.13.2 - 1.14.4
ProjectKorra: 1.8.8 and the upcoming 1.8.9 (should work)


Configuration
Code:
Note: 'Diamond armor is used as a base for this algorithm. It adds up the total of
  diamond armor power and uses that as the max potential power. Be sure when you add
  up the totals of all your armor, diamond has the most. To check: Helmet + Chestplate
  + Leggings + Boots = Total Armor Power. Example (Diamond armor): Helmet + Chestplate
  + Leggings + Boots = 16'
Note 2: The GlobalStrength variable is a means of having control over the armors strength
  all at once. For example, by setting the GlobalStrength to 1 someone with full diamond
  armor will not take any damage from a bending ability. It's set to 0.6 by default
  so only 60 percent of the damage reduction actually takes place. This value should
  not be more than 1 or less than 0 since it's on a percentage calculation where 1
  = 100%, 0.5 = 50%, and 0 = 0%.
ArmorPower:
  GlobalStrength: 0.6
  Leather:
    Helmet: 1
    Chestplate: 1
    Leggings: 1
    Boots: 1
  Chainmail:
    Helmet: 2
    Chestplate: 2
    Leggings: 2
    Boots: 2
  Iron:
    Helmet: 3
    Chestplate: 3
    Leggings: 3
    Boots: 3
  Diamond:
    Helmet: 4
    Chestplate: 4
    Leggings: 4
    Boots: 4
4068

Notes
GlobalStrength: This value is applied at armor power calculation, the number you enter means the percentage of damage protection that actually takes place. This value should never be less than 0 or greater than 1. With diamond armor used as a base for this algorithm, setting your GlobalStrength to 1 would in turn mean that someone with full diamond armor will receive 100% of the damage protection. The default value, 0.6, means that someone with full diamond armor will receive only 60% of the total damage protection. So a 10 heart reduction in damage turns into only 6 hearts of damage reduction.

Power Values: You can setup the values however you want, any number is acceptable. The only thing that is required is that diamond armor, when totaled together, has the highest power when compared to other armor types (leather, chainmail, and iron). The algorithm totals up the power of diamond armor (helmet + chestplate + leggings + boots) in order to form the maximum power a player CAN have. It then uses proportions to compare the maximum power a player can have to the amount of power they actually have. This system inevitably decides how much protection the player has and uses this information to determine a reduction in damage. This is why it's important to have diamond armor set to be the strongest armor. Not doing so will result in a failure in the algorithm.

External Sources
Beta versions of the plugin and the source code for this plugin are provided on
the project's GitHub. Feel free to contribute to the project or test out beta versions of the plugin at your own peril! :)

Disclaimer
This is not an official ProjectKorra plugin, therefore, no official support will be provided in any threads other than this one. Use at your own risk.
Author
xNuminousx
Downloads
17
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from xNuminousx

Top