RecipeItemData
classPer slot recipe metadata carried next to the item and its count
Fields
| Name | Type | Description | |
|---|---|---|---|
| capacity | integer | Slot size override for the crafter, 0 keeps the machine's own size | |
| probability | integer | Percent chance the slot takes part in a craft; 0 on an input marks a catalyst that is not consumed | |
| bonus | boolean | True when the slot is produced by the productivity bonus instead of the craft itself | |
Functions
RecipeItemData.new()
Create default slot metadata: consumed or produced every craft, machine slot size
returns RecipeItemData
Used by
- RecipeInventory.add param
- RecipeInventory.slot_data return