Description
This mod adds 2 new recipe types that damage damageable input items instead of using them up, ready to use in your mod or data pack!
An example usage would be a recipe to craft flint with a shovel to get gravel, returning the shovel with some durability loss.
Let your imagination run wild!
Features:
- New recipe types: durabilitydamagerecipe:crafting_damage_shapeless and durabilitydamagerecipe:crafting_damage_shaped
- These recipe types are similar to the minecraft:crafting_shapeless and minecraft:crafting_shaped recipe types, but accept an additional parameter: damage
- Damage defaults to 1 and controls the amount of damage applied to damageable items used in these crafting recipes
- If a recipe's damage is greater than the remaining durability of any of the damageable input items, crafting is not possible
- Crafter block will eject damageable items that do not have enough durability to complete their craft
- Configurable display of "not enough durability" notifications when crafting or using Crafter block
- In-game documentation is available via Treatise if installed
- In-game configuration is available via Mod Menu if installed
Using the recipes:
Click here to learn how to create a data pack if you don't know how.
Recipe .json
files should be added to the data/<namespace>/recipe
folder.
Example custom_shapeless_recipe.json
:
{
"type": "durabilitydamagerecipe:crafting_damage_shapeless",
"category": "misc",
"group": "flint",
"ingredients": [
"minecraft:gravel",
"#minecraft:shovels"
],
"damage": 1,
"result": {
"count": 1,
"id": "minecraft:flint"
}
}
Example custom_shaped_recipe.json
:
{
"type": "durabilitydamagerecipe:crafting_damage_shaped",
"category": "building",
"key": {
"S": "minecraft:stone",
"P": "#minecraft:pickaxes"
},
"pattern": [
"SSS",
"SPS",
"SSS"
],
"damage": 8,
"result": {
"count": 8,
"id": "minecraft:cobblestone"
}
}
Config:
Crafting grid "not enough durability" options: "OFF", "ON", "LORE_FRIENDLY"
Crafter "not enough durability" options: "OFF", "ON", "LORE_FRIENDLY"
Example .minecraft/config/durabilitydamagerecipe.json
:
{
"craftingNotificationOption": "ON",
"crafterNotificationOption": "ON"
}
Support
If you like this mod and want to support us, feel free to donate to our BuyMeACoffee! Every bit helps us towards our goal of creating mods full-time!