Class EntityBehaviorAntlerGrowth
- Namespace
- Vintagestory.GameContent
- Assembly
- VSSurvivalMod.dll
Grow antlers on entity and drop them seasonally.
Uses the "antlergrowth" code Open in GitHub
[DocumentAsJson]
[AddDocumentationProperty("overrideType", "If set, it gets used in VariantGroups instead of \"type\" variant", "System.String", "Optional", "type", false)]
[AddDocumentationProperty("variants", "All antler types listed under \"type\" or overrideType variant", "System.String[]", "Required", "", false)]
public class EntityBehaviorAntlerGrowth : EntityBehaviorContainer
- Inheritance
-
EntityBehaviorAntlerGrowth
- Inherited Members
Examples
"behaviors": [
{
"code": "antlergrowth",
"variants": ["01", "02", "03", "04", "05", "06", "07", "08"],
"beginGrowMonth": 7,
"growDurationMonths": 6.5,
"grownDurationMonths": 2,
"shedDurationMonths": 0.5,
"noItemDrop": false
},
],
Fields
variants (Required)
All antler types listed under "type" or overrideType variant
Field Value
- String[]
shedDurationMonths (Recommended) (Default: 0)
Amount of months the antler can shed. Higher values allows players to find them for longer. A value of 0 will make antlers never drop
[DocumentAsJson("Recommended", "0", false)]
private float shedDurationMonths
Field Value
beginGrowMonth (Optional) (Default: -1)
The month when the creature begins to regrow antlers
[DocumentAsJson("Optional", "-1", false)]
private float beginGrowMonth
Field Value
growDurationMonths (Optional) (Default: 0)
Amount of months until full growth. Must be less than 12 months
[DocumentAsJson("Optional", "0", false)]
private float growDurationMonths
Field Value
grownDurationMonths (Optional) (Default: 0)
Amount of months the antler can be at full growth until shedding
[DocumentAsJson("Optional", "0", false)]
private float grownDurationMonths
Field Value
noItemDrop (Optional) (Default: false)
If true, the creature sheds its antlers but drops no mountable antler item for the player to find, eg. water deer has tiny "fangs"
[DocumentAsJson("Optional", "false", false)]
private bool noItemDrop
Field Value
overrideType (Optional) (Default: type)
If set, it gets used in VariantGroups instead of "type" variant