Item component
Add an item slot inside the machine.
This is the component that let your machine interact with items, basically it add an inventory to your machine.
Each Item Component add 1 slot to the machine inventory and each slot can held 1 stack of item but you can add as many components as you want.
Item Component can have different types depending on the desired behaviour.
The type for a default item component is: "type": "custommachinery:item"
Here is a list of all available item component types with their dedicated wiki pages :
Properties
The item component has 2 mandatory properties and 6 optional properties.
Mandatory properties
"type": "custommachinery:item" //Mandatory to define an item component.
Optional properties
I/O ConfigExample
A basic input slot
{
"type": "custommachinery:item",
"id": "input",
"mode": "input"
}
A Fuel slot that will accept only coal and charcoal (for a furnace for example)
{
"type": "custommachinery:item_fuel",
"id": "fuel",
"filter": ["minecraft:coal", "minecraft:charcoal"],
"whitelist": true,
"mode": "input"
}
Last updated