Json:entity:behavior: Difference between revisions
From Vintage Story Wiki
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>health</code></td> | <td><code>health</code></td> | ||
<td>Applies health to the entity. Means the entity can be hurt as well.</td> | <td>Applies custom health to the entity. Means the entity can be hurt as well.</td> | ||
<td>currenthealth, maxhealth, basemaxhealth</td> | <td>currenthealth = 20, maxhealth = 20, basemaxhealth = 20</td> | ||
<td>Server</td> | <td>Server</td> | ||
</tr> | </tr> | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>hunger</code></td> | <td><code>hunger</code></td> | ||
<td></td> | <td>Adds saturation and hunger, the entity needs to eat in order to stay alive.</td> | ||
<td></td> | <td>currentsaturation = 1200, maxsaturation = 1200, saturationlossdelay = 60 * 24, currentfruitLevel = 0, currentvegetableLevel = 0, currentgrainLevel = 0, currentproteinLevel = 0, currentdairyLevel = 0</td> | ||
<td>Server</td> | |||
</tr> | </tr> | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>breathe</code></td> | <td><code>breathe</code></td> | ||
<td>The entity will need to breathe and therefore suffocate in other blocks (for example sand).</td> | |||
<td></td> | <td></td> | ||
<td></td> | <td>Server</td> | ||
</tr> | </tr> | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>playerphysics</code></td> | <td><code>playerphysics</code></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td>stepHeight = 0.6</td> | ||
<td>Universal</td> | |||
</tr> | </tr> | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>controlledphysics</code></td> | <td><code>controlledphysics</code></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td>stepHeight = 0.6</td> | ||
<td>Universal</td> | |||
</tr> | </tr> | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>taskai</code></td> | <td><code>taskai</code></td> | ||
<td></td> | |||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 45: | Line 50: | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>interpolateposition</code></td> | <td><code>interpolateposition</code></td> | ||
<td>Interpolates entity position and rotate. Smooths out the animations. It's a visual effect, therefore not available on server side.</td> | |||
<td></td> | <td></td> | ||
<td></td> | <td>Client</td> | ||
</tr> | </tr> | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>despawn</code></td> | <td><code>despawn</code></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td>minPlayerDistance, belowLightLevel, minSeconds = 30</td> | ||
<td>Server</td> | |||
</tr> | </tr> | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>grow</code></td> | <td><code>grow</code></td> | ||
<td></td> | |||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 60: | Line 68: | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>multiply</code></td> | <td><code>multiply</code></td> | ||
<td></td> | |||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 65: | Line 74: | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>aimingaccuracy</code></td> | <td><code>aimingaccuracy</code></td> | ||
<td></td> | |||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 70: | Line 80: | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>emotionstates</code></td> | <td><code>emotionstates</code></td> | ||
<td></td> | |||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 75: | Line 86: | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>repulseagents</code></td> | <td><code>repulseagents</code></td> | ||
<td></td> | |||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 80: | Line 92: | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>tiredness</code></td> | <td><code>tiredness</code></td> | ||
<td></td> | |||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 85: | Line 98: | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>nametag</code></td> | <td><code>nametag</code></td> | ||
<td></td> | |||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 90: | Line 104: | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>placeblock</code></td> | <td><code>placeblock</code></td> | ||
<td></td> | |||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 95: | Line 110: | ||
<tr style="vertical-align: top;"> | <tr style="vertical-align: top;"> | ||
<td><code>passivephysics</code></td> | <td><code>passivephysics</code></td> | ||
<td></td> | |||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
</tr> | </tr> | ||
</table> | </table> |
Revision as of 09:24, 14 November 2018
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 |
stepHeight = 0.6 | Universal | |
controlledphysics |
stepHeight = 0.6 | Universal | |
taskai |
|||
interpolateposition |
Interpolates entity position and rotate. Smooths out the animations. It's a visual effect, therefore not available on server side. | Client | |
despawn |
minPlayerDistance, belowLightLevel, minSeconds = 30 | Server | |
grow |
|||
multiply |
|||
aimingaccuracy |
|||
emotionstates |
|||
repulseagents |
|||
tiredness |
|||
nametag |
|||
placeblock |
|||
passivephysics |