~~ Craftsmen
This datapack brings a bit more use to master villagers as they now can repair your tools, weapons and armors.


~~ How to use
With this datapack, you can add a new trade to level 5 villagers who are either armorer, fletcher, leatherworker,toolsmith or weaponsmith.
To do so, you have to hold an emerald_block in your offhand and the corresponding work station block in your mainhand and then right-click on a villager while sneaking.
This will add the "repair trade" to its list of trades.
To use this trade, hold the item you want to repair in your mainhand and buy the "Repair Token".
Buying this token will restore a certain amount of the item durability, based on villager experience, number of enchantements and a bit of randomness.
If the item you're holding can't be repaired by the craftsman or it's already full durability, a refund will be given to you.
When you want to remove the repair trade from a craftsman, you have to apply the same process for adding this trade but instead of holding a work station you have to hold a paper.

Here is a list of what each profession can repair as items :
Armorer : all pieces of armor, excepted leather ones
Fletcher : bows and crossbows
Leatherworker : leather armors
Toolsmith : all tools (axes, hoes, pickaxes and shovels)
Weaponsmith : all swords and axes


~~ Uninstallation process
If you want to completely uninstall anyone of my packs, use the following command
/function #lordphenex:_help
Then click the pack you want to uninstall.
Then, in the pack menu, click the uninstall button
For this pack specifically, when uninstalling, all loaded craftsmen will see their repair trade removed.
You can also do it manually before uninstallation by using the [Remove all Craftsmen] button. This will let you know if there are non loaded craftsmen in the world.


~~ Licensing
You may use this datapack in your projects (maps, mod packs etc.) but you have to include a link to the datapack page or my profile on Planet Minecraft and info about the datapack in the credit section of your project.

Craftsmen Created by Lordphenex
https://www.planetminecraft.com/member/lordphenex/


You may:
- Use this datapack on your maps if you credit me in the credit section of your map.
- Use this datapack in your mod pack, if you credit me in the credit section of your mod pack and leave a link to the Planet Minecraft page.
- Record videos where you use/show this datapack, please provide the original download link for your viewers (planet minecraft page).
- Use this datapack on a public multiplayer server if you credit me in the server's description/website and leave a link to the Planet Minecraft page.
- Write about this datapack on your site, please provide the original download link for your readers (planet minecraft page).

You may not:
- Sell this datapack (this includes selling a map or a mod pack which uses it).
- Publish it or its parts in your projects as your own.
- Make money on this datapack except money from ads.