Class SpawnConditions
- Namespace
- Vintagestory.API.Common.Entities
- Assembly
- VintagestoryAPI.dll
The spawn conditions assigned to various things.
public class SpawnConditions
- Inheritance
-
SpawnConditions
- Inherited Members
- Extension Methods
Examples
"spawnconditions": {
"worldgen": {
"TriesPerChunk": {
"avg": 0.1,
"var": 0
},
"tryOnlySurface": true,
"minLightLevel": 10,
"groupSize": {
"dist": "verynarrowgaussian",
"avg": 3,
"var": 4
},
"insideBlockCodes": [ "air", "tallgrass-*" ],
"minTemp": 5,
"maxTemp": 28,
"minRain": 0.45,
"minForest": 0.35,
"companions": [ "pig-wild-female", "pig-wild-piglet" ]
},
"runtime": {
"group": "neutral",
"tryOnlySurface": true,
"chance": 0.0006,
"maxQuantity": 4,
"minLightLevel": 10,
"groupSize": {
"dist": "verynarrowgaussian",
"avg": 3,
"var": 4
},
"insideBlockCodes": [ "air", "tallgrass-*" ],
"minTemp": 5,
"maxTemp": 28,
"minRain": 0.45,
"minForestOrShrubs": 0.35,
"companions": [ "pig-wild-female", "pig-wild-piglet" ]
}
}
Fields
Climate
public ClimateSpawnCondition Climate
Field Value
Runtime
public RuntimeSpawnConditions Runtime
Field Value
Worldgen
public WorldGenSpawnConditions Worldgen
Field Value
Methods
Clone()
public SpawnConditions Clone()