Minecraft Data Packs / Game Mechanic

Craftsmen | Master villagers can repair your gear

  • check_circle Advancements
  • check_circle Functions
  • 5,520 views, 7 today
  • 575 downloads, 0 today
  • 35
  • 37
  • 9
Lordphenex's Avatar Lordphenex
Level 39 : Artisan Miner
17
Presentation
Have you ever felt like mending enchantment is a bit overpowered ? But you can't repair your favorite bow with an anvil because it's too expensive ?
This datapacks aims to solve that problem by adding the ability to Master villagers to repair your stuff !


How does it work ?

- First you need to make a master villager become a craftsman. The villager will get a new special trade that will allow you to repair your stuff :
In order to do so, you have to hold an emerald_block in your offhand and the corresponding work station block in your mainhand. Then right-click on the master villager while sneaking. This will play a little noise and show particles at the villager. In 1.17 and above, the work station will be consumed as a more experimented villager needs more space to work. (version 1.16-1.19)
For version 1.20.4+, you need to craft mastery tomes using an emerald block, a book and a working station. Then give them to master villager for them to unlock the repair trade.

- Once the trade has been added to the villager, in order to repair an item, just hold it in your mainhand while buying the "Repair Token" from the villager.
Of course each villager is specialized to different types of item (list of matches is shown below).
This trade restores a certain amount of durability to your item, based on the villager experience, item enchantments and a bit of randomness.
Don't worry if your item is not matching the villager profession or it is already fully repaired as you will get a refund in those cases.
Please note that in MC version 1.16.5 and below, you can't shift-click on the trade and you have to do one repair at a time.
However, in 1.17.1 and above you can do it the way you want.

- If you don't want the villager to be a craftsman anymore, repeat the same process as for adding the repair trade but instead of holding a work station, you need to be holding a paper (only for versions 1.16-1.19).


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



Configuration (1.20.4+ only)
You can configurate this datapack by using /function #lordphenex:help.
2 parameters can be configured :
The maximum durability craftsmen can repair at once (default to 850).
The removal of mending book trades from librarians (default to 1). 0 won't remove said trades, 1 will remove then except for swamp master (because of trade rebalance), 2 will remove them for all librarians.


Compatibility
In the downloaded folder, there are 2 zipped folder, one for each version of the pack. If you are using MC 1.16-1.20.3, please use 1.16-1.19 version of the pack.



Uninstallation
This datapack provides a way of removing all of its content, just use either one of following commands :
/function lordphenex:_uninstall.craftsmen
/function #lordphenex:help


Reporting bugs or possible improvements
If you experience any issue with this datapack, please reach me out by commenting this post, I'll answer as soon as I can.
Please keep in mind that a constructive comment is always better a single phrase comment, especially when something doesn't work as it should do.
Some functions in this datapack fail to load because of syntax error, this is perfectly fine and work as intended. Failing functions depend on MC version : if you're playing on 1.17 and above, there should be only one function that fail and in 1.16 an below, there should be 3. This is perfectly fine and does not break the datapack at all. I made it that way so there is only one download for MC version from 1.16 to 1.19. These function files are located in the folders called 1_16 and 1_17.


Licensing
This work is licensed under the CC BY-NC-ND 4.0 meaning that you cannot share a modified version of my datapacks. You also are not allowed to sell any part nor the entirety of my datapacks. In any case, if you share one of my datapacks (through a video or on a server, for example), you must give me credit.
CreditMisode for their generator
CompatibilityMinecraft 1.16
toMinecraft 1.20
Tags

2 Update Logs

Update #2 : by Lordphenex 03/10/2024 9:17:07 amMar 10th

Fixed a bug where repairs don't work at all because of spelling mistakes
LOAD MORE LOGS

Create an account or sign in to comment.

2
03/27/2024 11:23 pm
Level 1 : New Collective
AlterNate_1337
AlterNate_1337's Avatar
Oh yeah - one more thing, not a bug cause it's fully intentional but what limits a master craftsman from repairing gear? Does it have anything to do with enchants, cause I've got an unbreaking/eff. 3 Diamond axe with 4 points of durability, tryna figure out whether it's functionally identical to the anvil or if there's more at play here, both toolsmith and weaponsmith can't tinker with it
2
04/11/2024 2:59 pm
Level 39 : Artisan Miner
Lordphenex
Lordphenex's Avatar
Hello sorry for the late response, I was pretty busy these times.
Enchantments make it harder for craftsmen to repair gear. I don't have the maths in mind but they should be able to repair a little bit of the axe anyway. The repair amount also scale up with the craftsman overall xp.

Anyway, I will be updating this pack when 1.20.5 comes up and will fully test it at that time.
2
03/15/2024 2:39 am
Level 9 : Apprentice Explorer
MadMars
MadMars's Avatar
This is genuinely such a good idea. It keeps villagers relevant without just making them OP traders and finally gives an alternative to the mending balance nightmare. Thanks!
1
03/18/2024 4:03 pm
Level 39 : Artisan Miner
Lordphenex
Lordphenex's Avatar
Thanks for the nice words !
1
03/10/2024 12:28 am
Level 1 : New Collective
AlterNate_1337
AlterNate_1337's Avatar
Survival based inventory
Having some issues related to the pack

(-The tools stashed away in my inventory aren't successful repairs but backup tools related to survival.)

Version's 1.20.4, the files are installed correctly - everything works as intended EXCEPT for the craftsmen not doing repairs. The max value is up to 500 durability points which is well over the durability of an iron pick, none of them provide repairs and would just take emeralds. Doesn't work in either gamemodes.

Do I need the resourcepack or does that provide translation?
2
03/10/2024 9:18 am
Level 39 : Artisan Miner
Lordphenex
Lordphenex's Avatar
Updated it ! Sorry for the inconvenience. I hope you didn't lose too much emerald because of this bug
2
03/10/2024 11:17 pmhistory
Level 1 : New Collective
AlterNate_1337
AlterNate_1337's Avatar
Naaah, should be alright since i tested it in creative mode first, I'll let you know if anything changes
edit: yeah it worked i forgot to let you know
2
03/10/2024 9:02 am
Level 39 : Artisan Miner
Lordphenex
Lordphenex's Avatar
Ok I think I found the issue. I'll update it quickly. Thanks for reporting the bug
2
08/30/2022 12:18 pm
Level 35 : Artisan Herobrine
Creeper_awwwwww_man
Creeper_awwwwww_man's Avatar
noice
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome