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, helpful 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[]
CoralChance
Chance to spawn a coral [brain, fan] on top of base blocks or structures
public float CoralChance
Field Value
CoralDecor
List of asset codes for the coral decor of a coral reef blockpatch These will be placed on solid surfaces around coral base blocks and on top of structures
public string[]? CoralDecor
Field Value
- string[]
CoralDecorBlock
[JsonIgnore]
public Block[]? CoralDecorBlock
Field Value
- Block[]
CoralDecorChance
When a coral [brain, fan] gets spawned also try if a decor should spawn below it Also on vertical growth we try to spawn decors cliffs
public float CoralDecorChance
Field Value
CoralMinSize
Defines the minimum 2D size of the coral reef
public int CoralMinSize
Field Value
CoralPlants
Specifiy which plants should spawn for this blockpatch and their heigh and how often a specific plant should be chosen
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
CoralReplaceOtherPatches
Chance that coral generating 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 spawned 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
StructureDecor
public string[]? StructureDecor
Field Value
- string[]
StructureDecorBlock
[JsonIgnore]
public Block[]? StructureDecorBlock
Field Value
- Block[]
Methods
Init(ICoreServerAPI, int)
public void Init(ICoreServerAPI sapi, int i)
Parameters
sapi
ICoreServerAPIi
int