Table of Contents

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
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.

[DocumentAsJson]
public string Code

Field Value

string

Ingredients (Required)

Defines the set of ingredients used inside the barrel. Barrels can have a maximum of one item and one liquid ingredient.

[DocumentAsJson]
public BarrelRecipeIngredient[] Ingredients

Field Value

BarrelRecipeIngredient[]

Output (Required)

The final output of this recipe.

[DocumentAsJson]
public BarrelOutputStack Output

Field Value

BarrelOutputStack

SealHours (Required)

How many in-game hours this recipe takes after sealing.

[DocumentAsJson]
public double SealHours

Field Value

double

Enabled (Optional) (Default: True)

Should this recipe be loaded by the recipe loader?

[DocumentAsJson]
public bool Enabled { get; set; }

Field Value

bool

Name (Obsolete)

Unused. Defines a name for the recipe.

[DocumentAsJson]
public AssetLocation Name { get; set; }

Field Value

AssetLocation

RecipeId (Obsolete)

Unused. Defines an ID for the recipe.

[DocumentAsJson]
public int RecipeId

Field Value

int