# Blacksmith The blacksmith plugin adds a new blacksmith trait to Citizens NPCs. NPCs are able to repair a player's held item for a fee. Costs are highly customizable. ### Important changes from the original fork - The problem with armor being unrepairable because the player would equip it instead has been fixed. - A lot of configuration value have had their paths altered, so configurations need to be updated. - By default, natural cost is used. The original fork made it cheaper the more damaged an item is, but natural cost makes the cost increase the more damaged the item is. - EnchantmentTarget is used instead of a hard-coded list of repairable items - All settings (except default reforge-able-items), both global and for each blacksmith, can be changed using commands, and support tab-completion. ### Dependencies - Citizens2 - Vault ## Basic usage To create a new blacksmith, simply add the blacksmith trait to an NPC. Right-clicking the NPC will tell you if the currently held item is repairable by the blacksmith. If it is, the blacksmith should give a price quote. Right-clicking again starts the repair. The item should be given back or dropped after a random delay according to the set limits. While costs are always set globally (no blacksmith can do the same job for cheaper), the blacksmith's messages, cool-down between each re-forge, whether the item is dropped or given, the chance of failing or adding an enchantment, the maximum number of added enchantments, max and min delays, the length of the cool-down and which items the blacksmith is able to re-forge can be changed individually. Also note: Changing the default value of a setting doesn't change the setting for existing NPCs, even if no custom value has been set. Make sure to change default settings as needed before creating too many NPCs. ### Special behavior In addition to just being able to repair items, blacksmiths have some random features which can be cool or annoying: - There is a chance that blacksmiths fail to repair an item, leaving it at about the same durability as before. Use failReforgeChance to control the chance. Set it to 0 to remove the feature. - There is a chance a blacksmith may add ## Commands - /blacksmith