Table of Contents

Class ClimateSpawnCondition

Namespace
Vintagestory.API.Common.Entities
Assembly
VintagestoryAPI.dll

A list of conditions based on climate. Open in GitHub

[DocumentAsJson]
public class ClimateSpawnCondition
Inheritance
ClimateSpawnCondition
Derived

Fields

HabitatSize (Optional) (Default: true)

If true, will check for suitable habitat size (e.g. when underwater and size of 2 will check that there is also water 2 blocks away in all directions For habitat land: Not implemented yet For habitat air: Not implemented yet

[DocumentAsJson("Optional", "true", false)]
public int HabitatSize

Field Value

int

MaxForest (Optional) (Default: 1)

The maximum amount of forest cover needed for the object to spawn.

[DocumentAsJson("Optional", "1", false)]
public float MaxForest

Field Value

float

MaxRain (Optional) (Default: 1)

The maximum amount of rain for the object to spawn.

[DocumentAsJson("Optional", "1", false)]
public float MaxRain

Field Value

float

MaxShrubs (Optional) (Default: 1)

The maximum amount of shrubbery needed for the object to spawn.

[DocumentAsJson("Optional", "1", false)]
public float MaxShrubs

Field Value

float

MaxTemp (Optional) (Default: 40)

The maximum tempurature for the object to spawn.

[DocumentAsJson("Optional", "40", false)]
public float MaxTemp

Field Value

float

MaxY (Optional) (Default: 2)

Won't span above maxY. 0...1 is world bottom to sea level, 1...2 is sea level to world top

[DocumentAsJson("Optional", "2", false)]
public float MaxY

Field Value

float

MinForest (Optional) (Default: 0)

The minimum amount of forest cover needed for the object to spawn.

[DocumentAsJson("Optional", "0", false)]
public float MinForest

Field Value

float

MinForestOrShrubs (Optional) (Default: 0)

The minimum amount of forest or shrubs for the object to spawn.

[DocumentAsJson("Optional", "0", false)]
public float MinForestOrShrubs

Field Value

float

MinRain (Optional) (Default: 0)

The minimum amount of rain for the object to spawn.

[DocumentAsJson("Optional", "0", false)]
public float MinRain

Field Value

float

MinShrubs (Optional) (Default: 0)

The minimum amount of shrubbery needed for the object to spawn.

[DocumentAsJson("Optional", "0", false)]
public float MinShrubs

Field Value

float

MinTemp (Optional) (Default: -40)

The minimum tempurature for the object to spawn.

[DocumentAsJson("Optional", "-40", false)]
public float MinTemp

Field Value

float

MinY (Optional) (Default: 0)

Won't span below minY. 0...1 is world bottom to sea level, 1...2 is sea level to world top

[DocumentAsJson("Optional", "0", false)]
public float MinY

Field Value

float

RandomMapCodePool (Optional) (Default: null)

If defined, further constrains the spawning areas by a large scale 2D density map

[DocumentAsJson("Optional", "null", false)]
public string[] RandomMapCodePool

Field Value

string[]