Class CookingRecipeIngredient
- Namespace
- Vintagestory.GameContent
- Assembly
- VSSurvivalMod.dll
An ingredient for a CookingRecipe. Note that each ingredient can have multiple valid itemstacks that satisfy the ingredient.
public class CookingRecipeIngredient
- Inheritance
-
CookingRecipeIngredient
Examples
{
"code": "water",
"validStacks": [
{
"type": "item",
"code": "waterportion",
"shapeElement": "bowl/water"
}
],
"minQuantity": 1,
"maxQuantity": 1,
"portionSizeLitres": 1
}
Fields
Code (Required)
The code for the recipe ingredient. Should be unique in the recipe, but isn't specifically used for anything.
public string Code
Field Value
MaxQuantity (Required)
The maximum quantity required for the given ingredient.
public int MaxQuantity
Field Value
MinQuantity (Required)
The minimum quantity required for the given ingredient.
public int MinQuantity
Field Value
ValidStacks (Required)
A list of item stacks that satisfy this ingredient.
public CookingRecipeStack[] ValidStacks
Field Value
PortionSizeLitres (Optional) (Default: 0)
If this ingredient is a liquid, how many litres of it do we need for it to be a valid ingredient?
public float PortionSizeLitres