From cbe5a9c02a21028bfec9a5d7af443b3e3595a27d Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Mon, 3 Oct 2022 00:11:02 +0200 Subject: [PATCH] Adds proper information in the README --- README.md | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 107 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2eb42bd..4886a39 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,110 @@ -Blacksmith ----------- +# Blacksmith -A blacksmith plugin for Spigot! +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. -Builds available at: http://ci.citizensnpcs.co/job/Blacksmith/ +### Important changes from the original fork -Backed by Citizens2: https://github.com/CitizensDev/Citizens2 +- 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