
DatapacksJava
Item Damage Lib│物品損傷庫
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Function│功能
- Executing the function
/function damage_lib:damage_item {slot:"<slot>",value:<value>}reduces the durability of the item in the specified slot.│執行該函數:/function damage_lib:damage_item {slot:"<slot>",value:<value>}可以減少指定欄位的物品的耐久度。<slot>: Equipment slot. This operation can also be performed on non-equipment slots, but will result in errors. Execution will reduce the durability of items in that slot.│<slot>:裝備欄位,非裝備欄位亦可執行,但是會有錯誤行為。執行後會減少該欄位的物品的耐久度。<value>: Integer only. The amount of durability reduced.│<value>:僅限整數。減少的耐久度。
Why is this data pack needed?│為何需要該資料包?
If you directly modify item components, the Unbreaking enchantment will not function correctly. Using this Data Pack will ensure that the durability reduction behavior is consistent with the vanilla version.│如果直接修改物品組件,那麼耐久附魔無法正常生效。若使用該資料包,減少耐久度的行為會與原版行為一致。
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21.9, 1.21.10, 1.21.11
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.
Verified by MCModsHub
- Downloads as item_damage_lib_1.0.0+1.21.9.zip
- Download size: 253 KB
- Download link checked 20 Aug 2026 — working
These come from our own check of the pack file, not from the source page.