Durability Damage Recipe
This mod introduces two new crafting recipe types that wear down tools instead of completely consuming them during item creation. These recipe types are ready for use in your modifications or data packs.
Key Features:
- Two new recipe types:
durabilitydamagerecipe:crafting_damage_shapelessanddurabilitydamagerecipe:crafting_damage_shaped - Functionality similar to
minecraft:crafting_shapelessandminecraft:crafting_shaped, but with the addition of adamageparameter determining tool wear amount - Default damage value equals 1 unit
- If tool durability is less than the required damage value for crafting, item creation becomes impossible
- Crafter block automatically returns worn tools after completing the process
- Customizable insufficient durability notifications available for workbench and crafter block
- In-game documentation provided through Treatise if installed
- Configuration settings accessible via Mod Menu if this mod is installed
Currently, enchantments like "Unbreaking" do not affect the degree of tool wear.
Practical Recipe Usage
To create tool damage recipes, add .json files to the data/<namespace>/recipe directory.
Example shapeless recipe for versions 1.21.4/5:
{
"type": "durabilitydamagerecipe:crafting_damage_shapeless",
"category": "misc",
"group": "flint",
"ingredients": [
"minecraft:gravel",
"#minecraft:shovels"
],
"damage": 1,
"result": {
"count": 1,
"id": "minecraft:flint"
}
}
Example shaped recipe for versions 1.21.4/5:
{
"type": "durabilitydamagerecipe:crafting_damage_shaped",
"category": "building",
"group": "cobblestone",
"key": {
"S": "minecraft:stone",
"P": "#minecraft:pickaxes"
},
"pattern": [
"SSS",
"SPS",
"SSS"
],
"damage": 8,
"result": {
"count": 8,
"id": "minecraft:cobblestone"
}
}
Example shapeless recipe for version 1.21.1:
{
"type": "durabilitydamagerecipe:crafting_damage_shapeless",
"category": "misc",
"group": "flint",
"ingredients": [
{
"item": "minecraft:gravel"
},
{
"tag": "minecraft:shovels"
}
],
"damage": 1,
"result": {
"count": 1,
"id": "minecraft:flint"
}
}
Example shaped recipe for version 1.21.1:
{
"type": "durabilitydamagerecipe:crafting_damage_shaped",
"category": "building",
"group": "cobblestone",
"key": {
"P": {
"tag": "minecraft:pickaxes"
},
"S": {
"item": "minecraft:stone"
}
},
"pattern": [
"SSS",
"SPS",
"SSS"
],
"damage": 8,
"result": {
"count": 8,
"id": "minecraft:cobblestone"
}
}
Configuration Settings
Insufficient durability notification options for workbench: "OFF" (off), "ON" (on), "LORE_FRIENDLY" (lore friendly)
Notification options for crafter block: "OFF" (off), "ON" (on), "LORE_FRIENDLY" (lore friendly)
Example configuration file .minecraft/config/durabilitydamagerecipe.json:
{
"craftingNotificationOption": "ON",
"crafterNotificationOption": "ON"
}