Durability
Use the durability requirement in a KubeJS recipe
Use one of these methods to add a Durability Requirement to the recipe.
The
ingredient
param must be an ItemStack created using one of the following syntax:String syntax :
"diamond"
or"botania:pure_daisy"
or"4x mekanism:osmium_ingot"
Item.of()
KubeJS method :Item.of("minecraft:diamond", 42)
The
slot
param must be a string corresponding to a slot id defined in a custom machine json Item Componentslot
property.The
amount
param must be a positive integer. It's the amount of durability added/removed.
Example
The recipe will damage a diamond pickaxe, removing 3 durability points.
Last updated