Class BakingProperties
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
Baking Properties are collectible attribute used for baking items in a clay oven. You will need to add these attributes if using Bake inside SmeltingType.
public class BakingProperties
- Inheritance
-
BakingProperties
Examples
Example taken from bread. Note that the levelTo value in the baking stage is the same as the levelFrom in the next baking stage.
"attributesByType": {
"*-partbaked": {
"bakingProperties": {
"temp": 160,
"levelFrom": 0.25,
"levelTo": 0.5,
"startScaleY": 0.95,
"endScaleY": 1.10,
"resultCode": "bread-{type}-perfect",
"initialCode": "dough-{type}"
}
},
"*-perfect": {
"bakingProperties": {
"temp": 160,
"levelFrom": 0.5,
"levelTo": 0.75,
"startScaleY": 1.10,
"endScaleY": 1.13,
"resultCode": "bread-{type}-charred",
"initialCode": "bread-{type}-partbaked"
}
},
"*-charred": {
"bakingProperties": {
"temp": 160,
"levelFrom": 0.75,
"levelTo": 1,
"startScaleY": 1.13,
"endScaleY": 1.10,
"initialCode": "bread-{type}-perfect"
}
}
},
Fields
InitialCode (Required)
The code of the initial collectible that is being baked.
public string InitialCode
Field Value
ResultCode (Required)
The code of the resulting collectible when this item finishes its cooking stage.
public string ResultCode
Field Value
LargeItem (Recommended) (Default: false)
If true, only one instance of this collectible can be baked at a time. If false, 4 of this collectible can be baked at a time.
public bool LargeItem
Field Value
LevelFrom (Recommended) (Default: 0)
The initial value, from 0 to 1, that determines how cooked the item is. When cooking an object with numerous cooking stages, these stages can be stacked using these values. Simply set the second stage's LevelFrom to the first stages LevelTo.
public float LevelFrom
Field Value
LevelTo (Recommended) (Default: 1)
The final value, from 0 to 1, that determines how cooked the item is. When the cooking value reaches this value, the collectible will change into the next item. When cooking an object with numerous cooking stages, these stages can be stacked using these values. Simply set the second stage's LevelFrom to the first stages LevelTo.
public float LevelTo
Field Value
Temp (Recommended) (Default: 160)
The temperature required to bake the item.
public float? Temp
Field Value
EndScaleY (Optional) (Default: 1)
The Y scale of this collectible when it has finished cooking. Value will be linearly interpolated between StartScaleY and this.
public float EndScaleY
Field Value
StartScaleY (Optional) (Default: 1)
The Y scale of this collectible when it begins cooking. Value will be linearly interpolated between this and EndScaleY.
public float StartScaleY