Class EntityBehaviorPettable
- Namespace
- Vintagestory.GameContent
- Assembly
- VSSurvivalMod.dll
Allows entity to be petted.
Uses the "pettable" code Open in GitHub
[DocumentAsJson]
[AddDocumentationProperty("minGeneration", "Specifies the minimum generation required for the entity to be allowed to be petted", "System.Int32", "Optional", "1", false)]
public class EntityBehaviorPettable : EntityBehavior
- Inheritance
-
EntityBehaviorPettable
Examples
"behaviors": [
{
"code": "pettable",
"minGeneration": 2
},
],
Fields
minGeneration (Optional) (Default: 1)
Specifies the minimum generation required for the entity to be allowed to be petted