Class EntityBehaviorDeadDecay
- Namespace
- Vintagestory.GameContent
- Assembly
- VSEssentials.dll
Decomposes dead entity.
Uses the "deaddecay" code Open in GitHub
[DocumentAsJson]
[AddDocumentationProperty("decayedBlock", "The block to spawn after entity is fully decomposed or harvested", "Vintagestory.API.Common.AssetLocation", "Optional", "None", false)]
public class EntityBehaviorDeadDecay : EntityBehavior
- Inheritance
-
EntityBehaviorDeadDecay
Examples
"behaviors": [
{
"code": "deaddecay",
"hoursToDecay": 96,
"decayedBlock": "carcass-tiny"
},
],
Fields
decayedBlock (Optional) (Default: None)
The block to spawn after entity is fully decomposed or harvested
Field Value
HoursToDecay (Optional) (Default: 96)
Determines how many in-game hours since the creature death should pass before it decomposes completely.
[DocumentAsJson("Optional", "96", false)]
public float HoursToDecay { get; set; }