Class BarrelRecipe
- Namespace
- Vintagestory.GameContent
- Assembly
- VSSurvivalMod.dll
Creates a recipe for use inside a barrel. Primarily used to craft with liquids. Open in GitHub
[DocumentAsJson]
public class BarrelRecipe : RecipeBase
- Inheritance
-
BarrelRecipe
- Inherited Members
Examples
{
"code": "compost",
"sealHours": 480,
"ingredients": [
{
"type": "item",
"code": "rot",
"litres": 64
}
],
"output": {
"type": "item",
"code": "compost",
"stackSize": 16
}
}
Fields
Code (Required)
Is used only to group recipes together. Recipes with same code will be displayed as one, but cycled through.
[DocumentAsJson("Required", "", false)]
public string? Code { get; set; }
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.
[DocumentAsJson("Required", "", false)]
public BarrelRecipeIngredient[]? Ingredients { get; set; }
Field Value
Output (Required)
The final output of this recipe.
[DocumentAsJson("Required", "", false)]
public BarrelOutputStack? Output { get; set; }
Field Value
SealHours (Required)
How many in-game hours this recipe takes after sealing.
[DocumentAsJson("Required", "", false)]
public double SealHours { get; set; }