Class LayeredVoxelRecipe
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
Creates a recipe using a 3D voxel-based system. Used for recipes types such as clayforming, smithing, or stone-knapping. Open in GitHub
[DocumentAsJson]
public abstract class LayeredVoxelRecipe : RecipeBase
- Inheritance
-
LayeredVoxelRecipe
- Derived
- Inherited Members
Fields
Ingredient (Required)
A single ingredient for this recipe. If you need to use more than one ingredient, see Ingredients.
Required if not using Ingredients.
[DocumentAsJson("Required", "", false)]
public CraftingRecipeIngredient? Ingredient { get; set; }
Field Value
Ingredients (Required)
An array of ingredients for this recipe. If only using a single ingredient, see Ingredient.
Required if not using Ingredient.
[DocumentAsJson("Required", "", false)]
public CraftingRecipeIngredient[] Ingredients
Field Value
Output (Required)
The final output of this recipe.
[DocumentAsJson("Required", "", false)]
public JsonItemStack Output
Field Value
Pattern (Required)
A 2D array of strings that are layered together to form the recipe. Use "#" for solid, and "_" or " " for a gap.
[DocumentAsJson("Required", "", false)]
public string[][] Pattern
Field Value
- string[][]