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
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
CoralPlantsChance
Chance that any Plant will spawn
public float? CoralPlantsChance
Field Value
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
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
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
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
FlowerChance
Chance that a BlockCrowfoot will spawn a flower when it reaches the water surface
public float? FlowerChance
Field Value
Height
Heigh distribution for BlockSeaweed and BlockCrowfoot types
public NatFloat? Height
Field Value
Methods
Init(ICoreServerAPI, int)
public void Init(ICoreServerAPI sapi, int i)
Parameters
sapi
ICoreServerAPIi
int