Unbreakables [1.14-1.16.5] v1.0

Prevents items from breaking! Items become unusable and can be fixed using currency

  1. tchristofferson
    Native Minecraft Version:
    1.14
    Tested Minecraft Versions:
    • 1.14
    • 1.15
    • 1.16
    Source Code:
    https://github.com/tchristofferson/Unbreakables
    About
    Prevents items from breaking! Items become unusable and can be fixed using currency. Once an item breaks the plugin cancels it and makes it unusable. When the item breaks it is placed in the player's armory, an inventory used to store a player's unbreakable items. The item is once again usable when the player uses the repair command. Works with tools, swords, and armor.

    Command & Permissions
    • /Ub Create - Make the item your holding unbreakable
      • unbreakables.create
    • /Ub repair - Repair an unbrekable/unusable item
      • unbreakables.repair
    • /Armory - Access armoy where unbreakable items can be stored
      • unbreakables.create

    Config
    Code (YAML):
    #Initial cost to make an item unbreakable
    initial-cost
    : 5000
    #Still enabled for normal items
    disable-anvil-repairs
    : false
    #Cost to repair item. If use-function-cost is true, this value isn't used
    repair-cost
    : 5000
    #Use a dynamic price depending on the item when repairing
    use-function-cost
    : true
    #use-function-cost must be set to true for this to apply
    function-cost
    :
     #If an item has two enchantments the added cost will be 1000 if set to 500
      cost-per-enchant
    : 500
      #For each enchantment the level of the enchant will be multiplied by this value and added to the cost
      cost-per-enchant-level
    : 250
      #If netherite item, cost-per-diamond applies and this value is added on
      netherite-cost
    : 2000
      #If item is elytra, cost will be this plus enchantment costs
      elytra-cost
    : 5000
      #A sword, for example, is created using two diamonds, therefore the cost will be x2 this value
      cost-per-diamond
    : 1000
      cost-per-gold
    : 900
      cost-per-iron
    : 800
      cost-per-stone
    : 0
      cost-per-wood
    : 0
    Support
    All support can be through Spigot (for basic questions) and GitHub (where you can submit issues). If you have an issue don't give a bad review until after contacting me for help.