Table of Contents

Class BlockCropProperties

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
[ProtoContract]
public class BlockCropProperties
Inheritance
BlockCropProperties
Inherited Members

Fields

Behaviors

Allows customization of crop growth behavior. BlockEntityFarmland calls methods on all behaviors to allow greater control.

public CropBehavior[] Behaviors

Field Value

CropBehavior[]

ColdDamageBelow

[ProtoMember(7)]
public float ColdDamageBelow

Field Value

float

ColdDamageRipeMul

[ProtoMember(9)]
public float ColdDamageRipeMul

Field Value

float

DamageGrowthStuntMul

[ProtoMember(8)]
public float DamageGrowthStuntMul

Field Value

float

GrowthStages

Amount of growth stages this crop has

[ProtoMember(3)]
public int GrowthStages

Field Value

int

HarvestGrowthStageLoss

When multiple harvets is true, this is the amount of growth stages the crop should go back when harvested

[ProtoMember(6)]
public int HarvestGrowthStageLoss

Field Value

int

HeatDamageAbove

[ProtoMember(10)]
public float HeatDamageAbove

Field Value

float

MultipleHarvests

If true, the player may harvests from the crop multiple times

[ProtoMember(5)]
public bool MultipleHarvests

Field Value

bool

NutrientConsumption

Total amount of nutrient consumed to reach full maturity. (100 is the maximum available for farmland)

[ProtoMember(2)]
public float NutrientConsumption

Field Value

float

RequiredNutrient

Which nutrient category this crop requires to grow

[ProtoMember(1)]
public EnumSoilNutrient RequiredNutrient

Field Value

EnumSoilNutrient

TotalGrowthDays

Total time in ingame days required for the crop to reach full maturity assuming full nutrient levels

[ProtoMember(4)]
public float TotalGrowthDays

Field Value

float

TotalGrowthMonths

Total time in ingame months required for the crop to reach full maturity assuming full nutrient levels

[ProtoMember(11)]
public float TotalGrowthMonths

Field Value

float