Item
Make the recipe consume or produce items
Item requirement is used to define item inputs and outputs for a custom machine recipe.
To use it you need to provide the registry name and the amount of the item you want the recipe to consume/produce.
This requirement is available in both input
and output
modes.
In input mode : When starting to craft the recipe, the machine will consume the desired amount of the specified item from the input slot they are in.
In output mode : When finishing to craft the recipe, the machine will produce the desired amount of the specified item and put them in the first disponible output slot.
The requirement type of item requirement is : "custommachinery:item"
.
Properties
The item requirement has 3 mandatory properties and 3 optional properties.
Mandatory properties
"type": "custommachinery:item" //Mandatory to define an item requirement.
Optional properties
Examples
An item requirement that will make the recipe consume 50 vanilla cobblestone:
{
"type": "custommachinery:item",
"mode": "input",
"ingredient": {
"item": "minecraft:cobblestone",
"count": 50
}
}
An item requirement that will make the recipe produce 1 vanilla diamond chestplate with 1% chance:
{
"type": "custommachinery:item",
"mode": "output",
"ingredient": {
"item": "minecraft:diamond_chestplate",
"count": 1
},
"chance": 0.01
}
Last updated