Table of Contents

Class BlockPatchAttributes

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public class BlockPatchAttributes
Inheritance
BlockPatchAttributes
Inherited Members
Extension Methods

Fields

Coral

List of asset codes for the coral types of a coral reef blockpatch coral-brain, coral-fan ...

public string[]? Coral

Field Value

string[]

CoralBase

List of asset codes for the base (coralblock) types of a coral reef blockpatch

public string[]? CoralBase

Field Value

string[]

CoralBaseBlock

[JsonIgnore]
public Block[]? CoralBaseBlock

Field Value

Block[]

CoralBaseHeight

How thick the base coral full block layer should be for this patch (goes down into the ground, helpfull for cliffs) 1 -> replace the gravel with coral 2 -> go 1 block below gravel and also replace and so on

public int CoralBaseHeight

Field Value

int

CoralBlock

[JsonIgnore]
public Block[]? CoralBlock

Field Value

Block[]

CoralMinSize

Defines the minimum 2D size of the coral reef

public int? CoralMinSize

Field Value

int?

CoralPlants

Specifiy which plants should spawn for this blockpatch and their heigh and how often a specific plant should be choosen

public Dictionary<string, CoralPlantConfig>? CoralPlants

Field Value

Dictionary<string, CoralPlantConfig>

CoralPlantsChance

Chance that any Plant will spawn

public float? CoralPlantsChance

Field Value

float?

CoralRandomSize

Defines the random size between 0 - X that will be added additionally to the reef

public int? CoralRandomSize

Field Value

int?

CoralReplaceOtherPatches

Chance that coral generatin will replace all other block patches in its area

public float? CoralReplaceOtherPatches

Field Value

float?

CoralShelve

List of asset codes for the coral shelved types of a coral reef blockpatch These need to have HorizontalOrientable behaviour and only specify one side in here "coralshelf-north"

public string[]? CoralShelve

Field Value

string[]

CoralShelveBlock

[JsonIgnore]
public Block[][]? CoralShelveBlock

Field Value

Block[][]

CoralShelveChance

Chance that a shelf will spawn instead of a structure on top of a coralblock

public float? CoralShelveChance

Field Value

float?

CoralStructure

List of asset codes for the coral structure types of a coral reef blockpatch

public string[]? CoralStructure

Field Value

string[]

CoralStructureBlock

[JsonIgnore]
public Block[]? CoralStructureBlock

Field Value

Block[]

CoralStructureChance

If no shelf was spanwed this chance controls how likely a structure will spawn instead of a coral. If a structure is spawned then a coral will spawn on top If no shelve nor structure was spawned then also a coral will be spawned

public float? CoralStructureChance

Field Value

float?

CoralVerticalGrowChance

Chance for a shelf block to spawn on a under water cliff. The chance is rolled for each height The patch will try to spawn them until it reaches minWaterDepth

public float? CoralVerticalGrowChance

Field Value

float?

FlowerChance

Chance that a BlockCrowfoot will spawn a flower when it reaches the water surface

public float? FlowerChance

Field Value

float?

Height

Heigh distribution for BlockSeaweed and BlockCrowfoot types

public NatFloat? Height

Field Value

NatFloat

Methods

Init(ICoreServerAPI, int)

public void Init(ICoreServerAPI sapi, int i)

Parameters

sapi ICoreServerAPI
i int