Durability
Make the recipe damage or repair items
Durability requirement is used to damage or repair items in inputs slots.
To use it you need to provide the registry name of the item and the amount of durability you want the recipe to damage/repair.
This requirement is available in both input
and output
modes.
The requirement type of durability requirement is : "custommachinery:durability"
.
Properties
The durability requirement has 4 mandatory properties and 3 optional properties.
Mandatory properties
"type": "custommachinery:durability" //Mandatory to define a durability requirement.
Optional properties
Example
An Durability Requirement that will make the recipe damage a vanilla diamond pickaxe 50 durability points:
{
"type": "custommachinery:durability",
"mode": "input",
"ingredient": {
"item": "minecraft:diamond_pickaxe"
},
"amount": 50
}
Last updated