A Fabric Mod that allows for changing the durabilities of all items.
Change any item's durability with a Command!
Should work on Integrated Servers and Dedicated Servers.
Requires FAPI
Need on Client: ✅ Need on Server: ✅
Report any Issues on GitHub or my Discord Server
Haven't tested modded items, I'm mainly just targetting this mod for Vanilla, since it's what I wanted... it probably? should? work with modded items?
!Sample
A bunch of commands to help you set the durability of an item using its ID or Tag, or bulk setting by using wildcards
/cd armorMultiplier [True or False]
/cd clear [Optional Item ID or Tag]:
/cd list
/cd set item [Item ID or Tag] [Durability]
/cd set wildcard [String with Wildcards] [Durability]
/cd context list
/cd context clear [Optional Item ID]
/cd context set item [Item ID or Tag] [Durability]
/cd context set all [Durability]
/cd context filter [TOOL / WEAPON / ARMOUR / OTHER]
/cd context confirm
/cd context cancel
Setting a diamond pickaxe's durability to 5000:
/cd set item diamond_pickaxe 5000
Setting all diamond tools durability to 5000:
/cd set item #cd:tools/diamond 5000
An example attempt of setting all minecraft diamond tools to 5000 using wildcards:
cd set wildcard minecraft:*diamond* 5000
This then puts it into your temporary context, which would match with all diamond tools, and diamond armor, which you don't want, you'd then have to either:
Keep all: [TOOL] [WEAPON] [ARMOUR] [OTHER]/cd context filter TOOL to keep all tools and filter out armour/cd set wildcard doesn't immediately put all the items it matches into your main config,
in order to not add things the wildcard wasn't supposed to get, it puts it in a temporary config that you can remove or edit the entries until you decide to
apply it to the main config, either through /cd context confirm or by clicking the button shown after running /cd set wildcard command (or shown in the /cd context list command).
The Armor Multiplier option is so that you can use a base vanilla value that will multiply your inputted durability, so if you put 5 for boot armor, it would get multiplied by 13, so you'd get what, 65? (this is how vanilla does it, and is why helmets, chestplates, leggings and boots don't share the same durability)
Default Multipliers:
I added some tags that should help with some of the more common items:
#cd:tools
woodstoneirongolddiamondnetherite#cd:armor
leatherchainmailirongolddiamondnetheriteYou'd use these by for example doing:
/cd set item #cd:tools/wood [durability]/cd set item #cd:armor/leather [durability]
A Fabric Mod that allows for changing the durabilities of all items!