ArmorReduction 1.0.0

improve or decrease the damage reduction provided by the armor

  1. Guardark-Dev
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Contributors:
    Guardark
    What is ArmorReduction?

    Taken from my first plugin "AdvancedArmor" that I wanted recreated at 0.
    ReductionArmor is a plugin to modify the damage reduction provided by the amure depending on the cause of the damage. This can be useful to add difficulty to the player or on the contrary ... facilitate the game. it can also help to mitigate the difference between full armor players and players who do not possess armor.

    Discord-support : https://discord.gg/cjt2yNH


    Features:
    • Set a minimum damage reduction even when the player does not have armor.
    • Set a maximum damage reduction.
    • Each Damage Cause is configurable.
    • Define in what cause such enchantment influences, and to what extent.

    Commands:
    /armor reload

    Reloads the config fil​
    Permissions:
    armorreduction.* - access to all armorreduction permissions
    armorreduction.reload - Access to the /armor reload



    Code (YAML):

    # +------------------------------------------------------+ #
    # |                     Enchantment                        | #
    # +------------------------------------------------------+ #
    #Each enchantment can be added in any damage-cause
    #the value of the enchantment is calculated according to the total enchantment level that the player possesses.
    #Attention it will be added to the discount after having already calculated the max value... to you to properly calculate
    #example:
    #for min = 20, max =40, enchantment protection =20
    #with an enchanted full diamond protection 4, the discount will then be 60
    #List enchantment: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html#
    #enchantment:
      #PROTECTION_ENVIRONMENTAL:
      #PROTECTION_FIRE:
      #PROTECTION_FALL:
      #PROTECTION_EXPLOSIONS:
      #PROTECTION_PROJECTILE:
     
     
    # +------------------------------------------------------+ #
    # |                     DamageCause                      | #
    # +------------------------------------------------------+ #
    #Liste DamageCause : https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html
    #min: returns the damage reduction when the player does not have armor point.
    #max: min: returns damage reduction when the player has 20 armor point.
    damage-cause
    :
      BLOCK_EXPLOSION
    :
        min
    : 0
        max
    : 0
        PROTECTION_EXPLOSIONS
    : 50
      CONTACT
    :
        min
    : 0
        max
    : 0
      CRAMMING
    :
        min
    : 0
        max
    : 0
      CUSTOM
    :
        min
    : 0
        max
    : 0
      DRAGON_BREATH
    :
        min
    : 0
        max
    : 0
      DROWNING
    :
        min
    : 0
        max
    : 0
      DRYOUT
    :
        min
    : 0
        max
    : 0
      ENTITY_ATTACK
    :
        min
    : 0
        max
    : 60
        PROTECTION_ENVIRONMENTAL
    : 20
      ENTITY_EXPLOSION
    :
        min
    : 0
        max
    : 60
        PROTECTION_EXPLOSIONS
    : 20
      ENTITY_SWEEP_ATTACK
    :
        min
    : 0
        max
    : 60
        PROTECTION_ENVIRONMENTAL
    : 20
      FALL
    :
        min
    : 0
        max
    : 0
      FALLING_BLOCK
    :
        min
    : 0
        max
    : 0
      FIRE
    :
        min
    : 0
        max
    : 0
        PROTECTION_FIRE
    : 50
      FIRE_TICK
    :
        min
    : 0
        max
    : 0
        PROTECTION_FIRE
    : 50
      FLY_INTO_WALL
    :
        min
    : 0
        max
    : 0
      HOT_FLOOR
    :
        min
    : 0
        max
    : 0
        PROTECTION_FIRE
    : 50
      LAVA
    :
        min
    : 0
        max
    : 0
        PROTECTION_FIRE
    : 50
      LIGHTNING
    :
        min
    : 0
        max
    : 0
      MAGIC
    :
        min
    : 0
        max
    : 0
      MELTING
    :
        min
    : 0
        max
    : 0
      POISON
    :
        min
    : 0
        max
    : 0
      PROJECTILE
    :
        min
    : 0
        max
    : 60
        PROTECTION_PROJECTILE
    : 20
      STARVATION
    :
        min
    : 0
        max
    : 0
      SUFFOCATION
    :
        min
    : 0
        max
    : 0
      SUICIDE
    :
        min
    : 0
        max
    : 0
      THORNS
    :
        min
    : 0
        max
    : 0
      VOID
    :
        min
    : 0
        max
    : 0
      WITHER
    :
        min
    : 0
        max
    : 0
    [/SPOILER]