Class BarrelRecipe
- Namespace
- Vintagestory.GameContent
- Assembly
- VSSurvivalMod.dll
Creates a recipe for use inside a barrel. Primarily used to craft with liquids.
public class BarrelRecipe
- Inheritance
-
BarrelRecipe
Examples
{
"code": "compost",
"sealHours": 480,
"ingredients": [
{
"type": "item",
"code": "rot",
"litres": 64
}
],
"output": {
"type": "item",
"code": "compost",
"stackSize": 16
}
}
Fields
Code (Required)
A code for this recipe, used to create an entry in the handbook.
public string Code
Field Value
Ingredients (Required)
Defines the set of ingredients used inside the barrel. Barrels can have a maximum of one item and one liquid ingredient.
public BarrelRecipeIngredient[] Ingredients
Field Value
Output (Required)
The final output of this recipe.
public BarrelOutputStack Output
Field Value
SealHours (Required)
How many in-game hours this recipe takes after sealing.
public double SealHours
Field Value
RecipeId (Obsolete)
Unused. Defines an ID for the recipe.
public int RecipeId
Field Value
Properties
Enabled (Optional) (Default: True)
Should this recipe be loaded by the recipe loader?
public bool Enabled { get; set; }
Property Value
Name (Obsolete)
Unused. Defines a name for the recipe.
public AssetLocation Name { get; set; }