Changing durability on armor

Discussion in 'Plugin Development' started by Kainzo, Feb 27, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Kainzo

    Armor is breaking extremely fast.
    We've recently moved our plugin from doing it's own custom damage/health to now using the Bukkit's health system for hp / damage over 20.

    Previously, it was applying the vanilla-damage and then we would override and do "our" damage, so it from 7 to 70. The armor was taking 7 dmg and then the player was taking 70 dmg.

    Now since we're using Bukkit Health/Damage - we're applying the 70 dmg directly without any overriding / etc.

    Any thoughts on how to increase the durability of the armor or handle it so armor doesn't drain 10+ times faster?

    https://bukkit.atlassian.net/browse/BUKKIT-3079?jql=text ~ "armor durability"
     
  2. Offline

    Nitnelave

    You could compute the durability change on damage, and apply that to the armor one tick after?
     
Thread Status:
Not open for further replies.

Share This Page