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. Open in GitHub
[DocumentAsJson]
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.
[DocumentAsJson]
public required string Code
Field Value
MaxQuantity (Required)
The maximum quantity required for the given ingredient.
[DocumentAsJson]
public int MaxQuantity
Field Value
MinQuantity (Required)
The minimum quantity required for the given ingredient.
[DocumentAsJson]
public int MinQuantity
Field Value
TypeName (Required)
The string to use when displaying the ingredient name in the recipe book.
[DocumentAsJson]
public string TypeName
Field Value
ValidStacks (Required)
A list of item stacks that satisfy this ingredient.
[DocumentAsJson]
public required 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?
[DocumentAsJson]
public float PortionSizeLitres