Armor Durability Healing

Discussion in 'Plugin Requests' started by JustNoHacks, Sep 10, 2016.

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

    JustNoHacks

    Plugin category: Mechanics/Fun/idk

    Minecraft version: spigot 1.8.8

    Suggested name: ArmorDurabilityHealing

    What I want:
    If a player is wearing a piece of armor that has the lore "&7Armor Heal" and it gets damaged; when it gets damaged, there is a 5% chance of adding 5 more durability on top of the durability it has left.

    Example:
    Some player walks into a cactus and armor durability drops, every time it drops there is a 5% chance of adding 5 more durability on top of what is left on the armor.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed for this plugin.

    When I'd like it by: ASAP
     
  2. Offline

    Rayzr522

    Sounds easy. I can *probably* do this on Monday. Main thing is I'm not sure if there's a good way to tell when a piece of armor's durability goes down.

    You don't want any commands? Not even one to add the "&7Armor Heal" text to an item?
     
  3. Offline

    JustNoHacks

    Just add the lore

    EDIT: Instead of trying to tell if the durability does down, do it per hit/damage, every 1 hit/damage there is a 5% chance for the durability to go up
     
    Last edited: Sep 11, 2016
  4. Offline

    ShaneCraftDev

    @JustNoHacks I got bored from work and this request does not require any effort to accomplish it.

    It works with 1.8.3 through 1.8.9, It should work on some older and newer versions as well. It comes with a small config file to set: the lore tag name, durability amount to restore and the chance of restoring durability.

    Defaults:
    Code:yaml
    1. name: &7Armor Heal
    2. durability: 5
    3. chance: 5


    download
     
  5. Offline

    JustNoHacks

    Thanks, you're a legend
     
  6. Offline

    Rayzr522

    Well then. One less thing for my Monday morning, thanks! :p
     
Thread Status:
Not open for further replies.

Share This Page