Durability Damage Recipe
A mod adding 2 new crafting recipe types that damage damageable input items instead of consuming them during crafting. These recipe types are ready to use in your mod or data pack!
截图
介绍

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 gravel with a shovel to get flint, 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 after performing the 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
The durability damage taken by an item is currently not affected by the item’s enchantments, like Unbreaking.
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 1.21.4/5 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 1.21.4/5 custom_shaped_recipe.json:
{
"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 1.21.1 custom_shapeless_recipe.json:
{
"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 1.21.1 custom_shaped_recipe.json:
{
"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"
}
}
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 have a bug report, feature request, or any other type of issue, please post on our GitHub issues page. This is an issues page for all of our mods, so be sure to include the mod’s name and version in your post. We appreciate all feedback!
If you’d like to support development, you can leave a tip at our BuyMeACoffee. Only if it’s within your means- otherwise, using, sharing, and enjoying the mod is support enough. Thank you!
常见问题
Durability Damage Recipe 支持哪些 Minecraft 版本?
Durability Damage Recipe 支持 Minecraft Java 版 1.21.1–1.21.8,共 5 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Durability Damage Recipe 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
Dented Modding 的其他作品
查看全部 →
Kelvin’s Better Player Animations (Port)
1.20.x port of Kelvin's Better Player Animations.
Best Bundles
Bundles, the better way nature intended. Dyeable, with 4x increased capacity! Enables the bundle without having to enable the experimental data pack. Now updated for 1.21.11!
Best Bundles
Bundles, the better way nature intended. Dyeable, with 4x increased capacity! Enables the bundle without having to enable the experimental data pack. Now updated for 1.21.11!
Ruined Portals Only
Restrict lighting of portals to within a ruined portal structure's bounding box. Makes exploration a must and controls Nether travel. Configurable for Overworld and Nether. Now supports modded structures and biomes!
评论
登录后评论和评分