Class EntityBehaviorGrow
- Namespace
- Vintagestory.GameContent
- Assembly
- VSEssentials.dll
Makes entity grow to the adult version.
Uses the "grow" code Open in GitHub
[DocumentAsJson]
public class EntityBehaviorGrow : EntityBehavior
- Inheritance
-
EntityBehaviorGrow
Examples
"behaviors": [
{
"code": "grow",
"enabledByType": { "*poult": true, "*": false },
"hoursToGrowByType": {
"*-henpoult": 72,
"*-roosterpoult": 80
},
"adultEntityCodesByType": {
"*-henpoult": ["chicken-hen"],
"*-roosterpoult": ["chicken-rooster"]
}
},
],
Fields
AdultEntityCodes (Required)
The entity codes of the adult versions this creature can grow into
[DocumentAsJson("Required", "", false)]
public AssetLocation[] AdultEntityCodes
Field Value
FedAdultEntityCodes (Optional) (Default: None)
The entity codes of the adult versions this creature can grow into if it ate the least amount of food portions specified in OrPortionsEatenForGrowing
[DocumentAsJson("Optional", "None", false)]
public AssetLocation[] FedAdultEntityCodes
Field Value
HoursToGrow (Optional) (Default: 96)
How many in-game hours it takes for the creature to grow into an adult, unless OrPortionsEatenForGrowing has been satisfied.
[DocumentAsJson("Optional", "96", false)]
public float HoursToGrow { get; set; }
Field Value
OrPortionsEatenForGrowing (Optional) (Default: 12)
The total amount of food portions the creature should eat to grow into an adult, unless HoursToGrow has been satisfied.
[DocumentAsJson("Optional", "12", false)]
public float OrPortionsEatenForGrowing { get; set; }