Table of Contents

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

string

MaxQuantity (Required)

The maximum quantity required for the given ingredient.

public int MaxQuantity

Field Value

int

MinQuantity (Required)

The minimum quantity required for the given ingredient.

public int MinQuantity

Field Value

int

ValidStacks (Required)

A list of item stacks that satisfy this ingredient.

public CookingRecipeStack[] ValidStacks

Field Value

CookingRecipeStack[]

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

Field Value

float