Class AlloyRecipe
- Namespace
- Vintagestory.GameContent
- Assembly
- VSSurvivalMod.dll
This is used to define what metals can be mixed together to create another type of metal inside of a crucible.
public class AlloyRecipe
- Inheritance
-
AlloyRecipe
Examples
{
"ingredients": [
{
"type": "item",
"code": "ingot-copper",
"minratio": 0.5,
"maxratio": 0.7
},
{
"type": "item",
"code": "ingot-zinc",
"minratio": 0.2,
"maxratio": 0.3
},
{
"type": "item",
"code": "ingot-bismuth",
"minratio": 0.1,
"maxratio": 0.2
}
],
"output": {
"type": "item",
"code": "ingot-bismuthbronze"
}
}
Fields
Ingredients (Required)
The ingredients for this alloy, defined as an item stack with a minimum and maximum range.
public MetalAlloyIngredient[] Ingredients
Field Value
Output (Required)
The output for the alloy.
public JsonItemStack Output
Field Value
Enabled (Optional) (Default: true)
Should this recipe be loaded in the game?
public bool Enabled