Json:entity:behavior
From Vintage Story Wiki
Revision as of 14:03, 16 November 2018 by CreativeMD (talk | contribs)
Name | Explanation | Properties | Side |
---|---|---|---|
collectitems |
The entity collections items laying around on the ground. Used by player. | Server | |
health |
Applies custom health to the entity. Means the entity can be hurt as well. | currenthealth = 20, maxhealth = 20, basemaxhealth = 20 | Server |
hunger |
Adds saturation and hunger, the entity needs to eat in order to stay alive. | currentsaturation = 1200, maxsaturation = 1200, saturationlossdelay = 60 * 24,
currentfruitLevel = 0, currentvegetableLevel = 0, currentgrainLevel = 0, currentproteinLevel = 0, currentdairyLevel = 0 |
Server |
breathe |
The entity will need to breathe and therefore suffocate in other blocks (for example sand). | Server | |
playerphysics |
Makes an entity controllable by a player. | stepHeight = 0.6 | Universal |
controlledphysics |
Can be controlled by a player. | stepHeight = 0.6 | Universal |
taskai |
Allows you to specify tasks. | ||
interpolateposition |
Interpolates entity position and rotate. Smooths out the animations. It's a visual effect, therefore not available on server side. | Client | |
despawn |
The entity will despawn under given circumstances. | minPlayerDistance, belowLightLevel, minSeconds = 30 | Server |
grow |
The entity will grow and eventually turn into one of its adults. | hoursToGrow = 96, adultEntityCodes = [], | Server |
multiply |
A pack of wolves for example grows in size over time (new babies are born). | pregnancyDays = 3.0, spawnEntityCode, requiresNearbyEntityCode, requiresNearbyEntityRange = 5,
multiplyCooldownDaysMin = 6, multiplyCooldownDaysMax = 12, portionsEatenForMultiply = 3, spawnQuantityMin = 1, spawnQuantityMax = 2, requiresFood = true |
Server |
aimingaccuracy |
Adds aiming inaccuracy when sprinting, jumping, etc. | Universal | |
emotionstates |
Adds emotion states with a given chance. As an example, it can be used to make an animal "hungry" (aggressive) and "saturated" (passive). | Server | |
repulseagents |
Universal | ||
tiredness |
The entity will get tired over time and needs recover by sleeping in a bed. | currenttiredness = 0 | Universal |
nametag |
Adds a name tag to the entity which will be displayed above the entity. | selectFromRandomName | Universal |
placeblock |
The entity will place one of the given block codes from time to time. | minHourDelay = 8 * 24, maxHourDelay = 15*24, blockCodes = [] | Server |
passivephysics |
Adds physics to the entity. | waterDragFactor = 1, airDragFallingFactor = 1, groundDragFactor = 1, gravityFactor = 1 | Universal |