Modding:Entity Json Properties: Difference between revisions
CreativeMD (talk | contribs) No edit summary |
(→Overview: weight) |
||
(13 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<languages/><translate> | |||
{{GameVersion|1.19}} | |||
__NOTOC__ | __NOTOC__ | ||
== Overview == | == Overview == | ||
<!--T:1--> | |||
In the code, these come from the fields listed with the "[JsonProperty]" attribute in [https://github.com/anegostudios/vsessentialsmod/blob/master/Loading/EntityType.cs EntityType.cs], plus the fields from the parent class [https://github.com/anegostudios/vsessentialsmod/blob/master/Loading/RegistryObjectType.cs RegistryObjectType.cs]. The json parser is case insensitive, which is how the property names can have different capitalization in the code and in the table below. | |||
</translate> | |||
<table id="treeviewtable" class="table table-bordered tt-table" style='table-layout: fixed'> | <table id="treeviewtable" class="table table-bordered tt-table" style='table-layout: fixed'> | ||
<tr style='background-color: | <tr style='background-color: rgba(0,0,0,0.2);'> | ||
<th width='300' align='left'>Property</th> | <th width='300' align='left'>Property</th> | ||
<th width='200' align='left'>Type</th> | <th width='200' align='left'>Type</th> | ||
Line 20: | Line 24: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_code" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_code" data-tt-parent="root">code</div></td> | ||
<td>string</td> | <td>string</td> | ||
<td>required</td> | <td>required</td> | ||
Line 37: | Line 41: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_enabled" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_enabled" data-tt-parent="root">enabled</div></td> | ||
<td>boolean</td> | <td>boolean</td> | ||
<td>true</td> | <td>true</td> | ||
Line 43: | Line 47: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_variantgroups" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_variantgroups" data-tt-parent="root">variantgroups</div></td> | ||
<td>array of object</td> | <td>array of object</td> | ||
<td>-</td> | <td>-</td> | ||
<td>Allows you define multiple variants of the same entity.</td> | <td>Allows you define multiple [[Modding:Registry_Object_JSON_Parsing|variants]] of the same entity.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_byType" data-tt-parent="root">(any) bytype</div></td> | |||
<td scope="row"><div class="tt" data-tt-id="p_byType" data-tt-parent="root">(any) | |||
<td>key: string; value: object</td> | <td>key: string; value: object</td> | ||
<td>-</td> | <td>-</td> | ||
<td> | <td>Allows different property values to be [[Modding:Registry_Object_JSON_Parsing#ByType_properties|specified]] based on the variant code.</td> | ||
</td> | |||
</tr> | </tr> | ||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_allowedVariants" data-tt-parent="root">allowedVariants</div></td> | |||
<td>array of strings</td> | |||
<td>-</td> | |||
<td>Used to [[Modding:Registry_Object_JSON_Parsing#Filtering_out_variants|trim]] unnecessary items generated by combined variants. </td> | |||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_skipVariants" data-tt-parent="root">skipVariants</div></td> | |||
<td>array of strings</td> | |||
<td>-</td> | |||
<td>Similar to allowedVariants, but instead [[Modding:Registry_Object_JSON_Parsing#Filtering_out_variants|skips]] the creation of listed variants rather than assigning which are allowed. </td> | |||
</tr> | |||
<tr> | <tr> | ||
<td colspan="4" style='font-size: 14pt; border-bottom: 2pt solid black; padding-left: 100px;'><b>Common</b></td> | <td colspan="4" style='font-size: 14pt; border-bottom: 2pt solid black; padding-left: 100px;'><b>Common</b></td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_class" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_class" data-tt-parent="root">class</div></td> | ||
<td>string</td> | <td>string</td> | ||
<td>"entity"</td> | <td>"entity"</td> | ||
Line 157: | Line 86: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_habitat" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_habitat" data-tt-parent="root">habitat</div></td> | ||
<td>string</td> | <td>string</td> | ||
<td>"land"</td> | <td>"land"</td> | ||
<td>There is <code>sea</code>, <code>land</code> and <code> | <td>There is <code>sea</code>, <code>land</code>, <code>air</code>, and <code>underwater</code></td> | ||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_hitboxsize" data-tt-parent="root">hitboxsize</div></td> | |||
<td>Vec2f</td> | |||
<td>null</td> | |||
<td>Convenience alias that sets both <code>collisionBoxSize</code> and <code>selectionBoxSize</code>.</td> | |||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_collisionboxsize" data-tt-parent="root">collisionboxsize</div></td> | |||
<td>Vec2f</td> | |||
<td>{ x: 0.5, y: 0.5 }</td> | |||
<td>The cuboid for collisions with other entities and blocks. The x value is the width and length of a square at the entity's feet. The y value is the height of the cuboid.</td> | |||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_selectionboxsize" data-tt-parent="root">selectionboxsize</div></td> | |||
<td>Vec2f</td> | |||
<td>collisionboxsize</td> | |||
<td>The cuboid for interacting with or attacking the entity. This is what would commonly be considered the entity's hitbox. The x value is the width and length of a square at the entity's feet. The y value is the height of the cuboid.</td> | |||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_deadboxsize" data-tt-parent="root">deadboxsize</div></td> | |||
<td>Vec2f</td> | |||
<td>null</td> | |||
<td>Convenience alias that sets both <code>deadCollisionBoxSize</code> and <code>deadSelectionBoxSize</code>.</td> | |||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_collisionboxsize" data-tt-parent="root">collisionboxsize</div></td> | |||
<td>Vec2f</td> | |||
<td>{ x: 0.25, y: 0.25 }</td> | |||
<td>The cuboid for collisions with other entities and blocks when the entity is dead. The x value is the width and length of a square at the entity's feet. The y value is the height of the cuboid.</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id=" | <td scope="row"><div class="tt" data-tt-id="p_deadselectionboxsize" data-tt-parent="root">deadselectionboxsize</div></td> | ||
<td> | <td>Vec2f</td> | ||
<td> | <td>deadcollisionboxsize</td> | ||
<td>The | <td>The cuboid for interacting with or attacking the entity's carcass. The x value is the width and length of a square at the entity's feet. The y value is the height of the cuboid.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_eyeheight" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_eyeheight" data-tt-parent="root">eyeheight</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>0.1</td> | <td>0.1</td> | ||
Line 175: | Line 134: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_canclimb" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_swimmingeyeheight" data-tt-parent="root">swimmingeyeheight</div></td> | ||
<td>decimal number</td> | |||
<td>eyeheight</td> | |||
<td>Replacement value for eyeheight while the entity is swimming.</td> | |||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_weight" data-tt-parent="root">weight</div></td> | |||
<td>decimal number</td> | |||
<td>25</td> | |||
<td>This is unused by the base game. The documentation says it is the average weight of the entity in kilograms.</td> | |||
</tr> | |||
<tr> | |||
<td scope="row"><div class="tt" data-tt-id="p_canclimb" data-tt-parent="root">canclimb</div></td> | |||
<td>boolean</td> | <td>boolean</td> | ||
<td>false</td> | <td>false</td> | ||
Line 181: | Line 152: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_canclimbanywhere" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_canclimbanywhere" data-tt-parent="root">canclimbanywhere</div></td> | ||
<td>boolean</td> | <td>boolean</td> | ||
<td>false</td> | <td>false</td> | ||
Line 187: | Line 158: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_falldamage" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_falldamage" data-tt-parent="root">falldamage</div></td> | ||
<td>boolean</td> | <td>boolean</td> | ||
<td>true</td> | <td>true</td> | ||
Line 193: | Line 164: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_climbtouchdistance" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_climbtouchdistance" data-tt-parent="root">climbtouchdistance</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>0.5</td> | <td>0.5</td> | ||
Line 199: | Line 170: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_rotatemodelonclimb" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_rotatemodelonclimb" data-tt-parent="root">rotatemodelonclimb</div></td> | ||
<td>boolean</td> | <td>boolean</td> | ||
<td>false</td> | <td>false</td> | ||
Line 205: | Line 176: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_knockbackresistance" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_knockbackresistance" data-tt-parent="root">knockbackresistance</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>0.0</td> | <td>0.0</td> | ||
Line 211: | Line 182: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_attributes" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_attributes" data-tt-parent="root">attributes</div></td> | ||
<td>key: string, value: object</td> | <td>key: string, value: object</td> | ||
<td>-</td> | <td>-</td> | ||
Line 228: | Line 199: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_sounds" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_sounds" data-tt-parent="root">sounds</div></td> | ||
<td>key: string, value: string</td> | <td>key: string, value: string</td> | ||
<td>-</td> | <td>-</td> | ||
Line 234: | Line 205: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_idlesoundchance" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_idlesoundchance" data-tt-parent="root">idlesoundchance</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>0.3</td> | <td>0.3</td> | ||
Line 240: | Line 211: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_idlesoundrange" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_idlesoundrange" data-tt-parent="root">idlesoundrange</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>24</td> | <td>24</td> | ||
Line 246: | Line 217: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_drops" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_drops" data-tt-parent="root">drops</div></td> | ||
<td>array of object</td> | <td>array of object</td> | ||
<td>-</td> | <td>-</td> | ||
Line 269: | Line 240: | ||
<table class="wikitable"> | <table class="wikitable"> | ||
<tr style="background-color: | <tr style="background-color: rgba(0,0,0,0.2);"> | ||
<th style="background-color: | <th style="background-color: rgba(0,0,0,0.2);">Property</th> | ||
<th style="background-color: | <th style="background-color: rgba(0,0,0,0.2);">Default</th> | ||
<th style="background-color: | <th style="background-color: rgba(0,0,0,0.2);">Explanation</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 350: | Line 321: | ||
<th colspan="2">Overview - Distribution modes</th> | <th colspan="2">Overview - Distribution modes</th> | ||
</tr> | </tr> | ||
<tr style="background-color: | <tr style="background-color: rgba(0,0,0,0.2);"> | ||
<th style="background-color: | <th style="background-color: rgba(0,0,0,0.2);">Name</th> | ||
<th style="background-color: | <th style="background-color: rgba(0,0,0,0.2);">Explanation</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 437: | Line 408: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_renderer" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_renderer" data-tt-parent="root">renderer</div></td> | ||
<td>string</td> | <td>string</td> | ||
<td>-</td> | <td>-</td> | ||
Line 443: | Line 414: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_texture" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_texture" data-tt-parent="root">texture</div></td> | ||
<td>object</td> | <td>object</td> | ||
<td></td> | <td></td> | ||
Line 483: | Line 454: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_textures" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_textures" data-tt-parent="root">textures</div></td> | ||
<td>key: string, value: object</td> | <td>key: string, value: object</td> | ||
<td></td> | <td></td> | ||
Line 498: | Line 469: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_shape" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_shape" data-tt-parent="root">shape</div></td> | ||
<td>object</td> | <td>object</td> | ||
<td>-</td> | <td>-</td> | ||
Line 510: | Line 481: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_glowlevel" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_glowlevel" data-tt-parent="root">glowlevel</div></td> | ||
<td>0 ... 255</td> | <td>0 ... 255</td> | ||
<td>0</td> | <td>0</td> | ||
Line 516: | Line 487: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_size" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_size" data-tt-parent="root">size</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>1</td> | <td>1</td> | ||
Line 522: | Line 493: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_behaviors_client" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_behaviors_client" data-tt-parent="root">behaviors</div></td> | ||
<td>array of object</td> | <td>array of object</td> | ||
<td></td> | <td></td> | ||
Line 534: | Line 505: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_animations" data-tt-parent="root">animations</div></td> | ||
<td>array of object</td> | <td>array of object</td> | ||
<td></td> | <td></td> | ||
Line 540: | Line 511: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_code" data-tt-parent="p_animations"> | <td scope="row"><div class="tt" data-tt-id="p_animations_code" data-tt-parent="p_animations">code</div></td> | ||
<td>string</td> | <td>string</td> | ||
<td></td> | <td></td> | ||
Line 546: | Line 517: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_animation" data-tt-parent="p_animations"> | <td scope="row"><div class="tt" data-tt-id="p_animations_animation" data-tt-parent="p_animations">animation</div></td> | ||
<td>string</td> | <td>string</td> | ||
<td></td> | <td></td> | ||
Line 552: | Line 523: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_weight" data-tt-parent="p_animations"> | <td scope="row"><div class="tt" data-tt-id="p_animations_weight" data-tt-parent="p_animations">weight</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>1.0</td> | <td>1.0</td> | ||
Line 559: | Line 530: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_code" data-tt-parent="p_animations"> | <td scope="row"><div class="tt" data-tt-id="p_animations_code" data-tt-parent="p_animations">elementweight</div></td> | ||
<td>key: string, value: decimal number</td> | <td>key: string, value: decimal number</td> | ||
<td></td> | <td></td> | ||
Line 565: | Line 536: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_animationspeed" data-tt-parent="p_animations"> | <td scope="row"><div class="tt" data-tt-id="p_animations_animationspeed" data-tt-parent="p_animations">animationspeed</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>1.0</td> | <td>1.0</td> | ||
Line 571: | Line 542: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_mulwithwalkspeed" data-tt-parent="p_animations"> | <td scope="row"><div class="tt" data-tt-id="p_animations_mulwithwalkspeed" data-tt-parent="p_animations">mulwithwalkspeed</div></td> | ||
<td>boolean</td> | <td>boolean</td> | ||
<td>false</td> | <td>false</td> | ||
Line 577: | Line 548: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_easeinspeed" data-tt-parent="p_animations"> | <td scope="row"><div class="tt" data-tt-id="p_animations_easeinspeed" data-tt-parent="p_animations">easeinspeed</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>10</td> | <td>10</td> | ||
Line 583: | Line 554: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_easeoutspeed" data-tt-parent="p_animations"> | <td scope="row"><div class="tt" data-tt-id="p_animations_easeoutspeed" data-tt-parent="p_animations">easeoutspeed</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>10</td> | <td>10</td> | ||
Line 589: | Line 560: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby" data-tt-parent="p_animations"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby" data-tt-parent="p_animations">triggeredby</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 595: | Line 566: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols" data-tt-parent="p_animations_triggeredby"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols" data-tt-parent="p_animations_triggeredby">oncontrols</div></td> | ||
<td>array of object</td> | <td>array of object</td> | ||
<td></td> | <td></td> | ||
Line 601: | Line 572: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_none" data-tt-parent="p_animations_triggeredby_oncontrols"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_none" data-tt-parent="p_animations_triggeredby_oncontrols">none</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 607: | Line 578: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_idle" data-tt-parent="p_animations_triggeredby_oncontrols"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_idle" data-tt-parent="p_animations_triggeredby_oncontrols">idle</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 613: | Line 584: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_move" data-tt-parent="p_animations_triggeredby_oncontrols"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_move" data-tt-parent="p_animations_triggeredby_oncontrols">move</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 619: | Line 590: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_sprintmode" data-tt-parent="p_animations_triggeredby_oncontrols"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_sprintmode" data-tt-parent="p_animations_triggeredby_oncontrols">sprintmode</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 625: | Line 596: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_sneakmode" data-tt-parent="p_animations_triggeredby_oncontrols"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_sneakmode" data-tt-parent="p_animations_triggeredby_oncontrols">sneakmode</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 631: | Line 602: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_fly" data-tt-parent="p_animations_triggeredby_oncontrols"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_fly" data-tt-parent="p_animations_triggeredby_oncontrols">fly</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 637: | Line 608: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_swim" data-tt-parent="p_animations_triggeredby_oncontrols"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_swim" data-tt-parent="p_animations_triggeredby_oncontrols">swim</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 643: | Line 614: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_jump" data-tt-parent="p_animations_triggeredby_oncontrols"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_jump" data-tt-parent="p_animations_triggeredby_oncontrols">jump</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 649: | Line 620: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_fall" data-tt-parent="p_animations_triggeredby_oncontrols"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_fall" data-tt-parent="p_animations_triggeredby_oncontrols">fall</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 655: | Line 626: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_climb" data-tt-parent="p_animations_triggeredby_oncontrols"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_climb" data-tt-parent="p_animations_triggeredby_oncontrols">climb</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 661: | Line 632: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_floorsitting" data-tt-parent="p_animations_triggeredby_oncontrols"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_floorsitting" data-tt-parent="p_animations_triggeredby_oncontrols">floorsitting</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 667: | Line 638: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_dead" data-tt-parent="p_animations_triggeredby_oncontrols"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_dead" data-tt-parent="p_animations_triggeredby_oncontrols">dead</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 673: | Line 644: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_break" data-tt-parent="p_animations_triggeredby_oncontrols"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_break" data-tt-parent="p_animations_triggeredby_oncontrols">break</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 679: | Line 650: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_place" data-tt-parent="p_animations_triggeredby_oncontrols"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_oncontrols_place" data-tt-parent="p_animations_triggeredby_oncontrols">place</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 685: | Line 656: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_matchexact" data-tt-parent="p_animations_triggeredby"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_matchexact" data-tt-parent="p_animations_triggeredby">matchexact</div></td> | ||
<td>boolean</td> | <td>boolean</td> | ||
<td>false</td> | <td>false</td> | ||
Line 691: | Line 662: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_defaultanim" data-tt-parent="p_animations_triggeredby"> | <td scope="row"><div class="tt" data-tt-id="p_animations_triggeredby_defaultanim" data-tt-parent="p_animations_triggeredby">defaultanim</div></td> | ||
<td>boolean</td> | <td>boolean</td> | ||
<td>false</td> | <td>false</td> | ||
Line 697: | Line 668: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_blendmode" data-tt-parent="p_animations"> | <td scope="row"><div class="tt" data-tt-id="p_animations_blendmode" data-tt-parent="p_animations">blendmode</div></td> | ||
<td>string</td> | <td>string</td> | ||
<td></td> | <td></td> | ||
Line 703: | Line 674: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_blendmode_add" data-tt-parent="p_animations_blendmode"> | <td scope="row"><div class="tt" data-tt-id="p_animations_blendmode_add" data-tt-parent="p_animations_blendmode">add</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 709: | Line 680: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_blendmode_average" data-tt-parent="p_animations_blendmode"> | <td scope="row"><div class="tt" data-tt-id="p_animations_blendmode_average" data-tt-parent="p_animations_blendmode">average</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 715: | Line 686: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_blendmode_addaverage" data-tt-parent="p_animations_blendmode"> | <td scope="row"><div class="tt" data-tt-id="p_animations_blendmode_addaverage" data-tt-parent="p_animations_blendmode">addaverage</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 721: | Line 692: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_animations_elementblendmode" data-tt-parent="p_animations"> | <td scope="row"><div class="tt" data-tt-id="p_animations_elementblendmode" data-tt-parent="p_animations">elementblendmode</div></td> | ||
<td>key: string, value: string</td> | <td>key: string, value: string</td> | ||
<td></td> | <td></td> | ||
Line 733: | Line 704: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_attributes_server" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_attributes_server" data-tt-parent="root">attributes</div></td> | ||
<td>key: string, value: object</td> | <td>key: string, value: object</td> | ||
<td>-</td> | <td>-</td> | ||
Line 750: | Line 721: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_behaviors_server" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_behaviors_server" data-tt-parent="root">behaviors</div></td> | ||
<td>array of object</td> | <td>array of object</td> | ||
<td></td> | <td></td> | ||
Line 762: | Line 733: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions" data-tt-parent="root"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions" data-tt-parent="root">spawnConditions</div></td> | ||
<td>object</td> | <td>object</td> | ||
<td>-</td> | <td>-</td> | ||
Line 768: | Line 739: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime" data-tt-parent="p_spawnconditions"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime" data-tt-parent="p_spawnconditions">runtime</div></td> | ||
<td>object</td> | <td>object</td> | ||
<td></td> | <td></td> | ||
Line 774: | Line 745: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_group" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_group" data-tt-parent="p_spawnconditions_runtime">group</div></td> | ||
<td>string</td> | <td>string</td> | ||
<td></td> | <td></td> | ||
Line 780: | Line 751: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_chance" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_chance" data-tt-parent="p_spawnconditions_runtime">chance</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>1.0</td> | <td>1.0</td> | ||
Line 786: | Line 757: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_maxquantity" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_maxquantity" data-tt-parent="p_spawnconditions_runtime">maxquantity</div></td> | ||
<td>integer</td> | <td>integer</td> | ||
<td>20</td> | <td>20</td> | ||
Line 792: | Line 763: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_mindistancetoplayer" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_mindistancetoplayer" data-tt-parent="p_spawnconditions_runtime">mindistancetoplayer</div></td> | ||
<td>integer</td> | <td>integer</td> | ||
<td>18</td> | <td>18</td> | ||
Line 798: | Line 769: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_minlightlevel" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_minlightlevel" data-tt-parent="p_spawnconditions_runtime">minlightlevel</div></td> | ||
<td>integer</td> | <td>integer</td> | ||
<td>0</td> | <td>0</td> | ||
Line 804: | Line 775: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_maxlightlevel" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_maxlightlevel" data-tt-parent="p_spawnconditions_runtime">maxlightlevel</div></td> | ||
<td>integer</td> | <td>integer</td> | ||
<td>32</td> | <td>32</td> | ||
Line 810: | Line 781: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_lightleveltype" data-tt-parent="p_spawnconditions_runtime" data-hide="true"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_lightleveltype" data-tt-parent="p_spawnconditions_runtime" data-hide="true">lightleveltype</div></td> | ||
<td>string</td> | <td>string</td> | ||
<td>"MaxLight"</td> | <td>"MaxLight"</td> | ||
Line 816: | Line 787: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_group_onlyblocklight" data-tt-parent="p_spawnconditions_runtime_lightleveltype"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_group_onlyblocklight" data-tt-parent="p_spawnconditions_runtime_lightleveltype">onlyblocklight</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 822: | Line 793: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_group_onlysunLight" data-tt-parent="p_spawnconditions_runtime_lightleveltype"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_group_onlysunLight" data-tt-parent="p_spawnconditions_runtime_lightleveltype">onlysunlight</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 828: | Line 799: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_group_maxlight" data-tt-parent="p_spawnconditions_runtime_lightleveltype"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_group_maxlight" data-tt-parent="p_spawnconditions_runtime_lightleveltype">maxlight</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 834: | Line 805: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_group_maxtimeofdaylight" data-tt-parent="p_spawnconditions_runtime_lightleveltype"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_group_maxtimeofdaylight" data-tt-parent="p_spawnconditions_runtime_lightleveltype">maxtimeofdaylight</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 840: | Line 811: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_groupsize" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_groupsize" data-tt-parent="p_spawnconditions_runtime">groupsize</div></td> | ||
<td>object</td> | <td>object</td> | ||
<td><code>{ avg: 1, var: 0 } </code></td> | <td><code>{ avg: 1, var: 0 } </code></td> | ||
Line 846: | Line 817: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_companions" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_companions" data-tt-parent="p_spawnconditions_runtime">companions</div></td> | ||
<td>array of string</td> | <td>array of string</td> | ||
<td>-</td> | <td>-</td> | ||
Line 852: | Line 823: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_insideblockcodes" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_insideblockcodes" data-tt-parent="p_spawnconditions_runtime">insideblockcodes</div></td> | ||
<td>array of string</td> | <td>array of string</td> | ||
<td><code>[ "game:air" ]</code></td> | <td><code>[ "game:air" ]</code></td> | ||
Line 858: | Line 829: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_requiresolidground" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_requiresolidground" data-tt-parent="p_spawnconditions_runtime">requiresolidground</div></td> | ||
<td>boolean</td> | <td>boolean</td> | ||
<td>true</td> | <td>true</td> | ||
Line 864: | Line 835: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_tryonlysurface" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_tryonlysurface" data-tt-parent="p_spawnconditions_runtime">tryonlysurface</div></td> | ||
<td>boolean</td> | <td>boolean</td> | ||
<td>false</td> | <td>false</td> | ||
Line 870: | Line 841: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_mintemp" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_mintemp" data-tt-parent="p_spawnconditions_runtime">mintemp</div></td> | ||
<td>integer</td> | <td>integer</td> | ||
<td>-40</td> | <td>-40</td> | ||
Line 876: | Line 847: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_maxtemp" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_maxtemp" data-tt-parent="p_spawnconditions_runtime">maxtemp</div></td> | ||
<td>integer</td> | <td>integer</td> | ||
<td>40</td> | <td>40</td> | ||
Line 882: | Line 853: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_minrain" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_minrain" data-tt-parent="p_spawnconditions_runtime">minrain</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>0</td> | <td>0</td> | ||
Line 888: | Line 859: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_maxrain" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_maxrain" data-tt-parent="p_spawnconditions_runtime">maxrain</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>1</td> | <td>1</td> | ||
Line 894: | Line 865: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_minforest" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_minforest" data-tt-parent="p_spawnconditions_runtime">minforest</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>0</td> | <td>0</td> | ||
Line 900: | Line 871: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_maxforest" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_maxforest" data-tt-parent="p_spawnconditions_runtime">maxforest</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>1</td> | <td>1</td> | ||
Line 906: | Line 877: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_minshrubs" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_minshrubs" data-tt-parent="p_spawnconditions_runtime">minshrubs</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>0</td> | <td>0</td> | ||
Line 912: | Line 883: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_maxshrubs" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_maxshrubs" data-tt-parent="p_spawnconditions_runtime">maxshrubs</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>1</td> | <td>1</td> | ||
Line 918: | Line 889: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_minforestorshrubs" data-tt-parent="p_spawnconditions_runtime"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_runtime_minforestorshrubs" data-tt-parent="p_spawnconditions_runtime">minforestorshrubs</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>0</td> | <td>0</td> | ||
Line 924: | Line 895: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen" data-tt-parent="p_spawnconditions"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen" data-tt-parent="p_spawnconditions">worldgen</div></td> | ||
<td>object</td> | <td>object</td> | ||
<td></td> | <td></td> | ||
Line 930: | Line 901: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_group" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_group" data-tt-parent="p_spawnconditions_worldgen">group</div></td> | ||
<td>string</td> | <td>string</td> | ||
<td></td> | <td></td> | ||
Line 936: | Line 907: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_triesperchunk" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_triesperchunk" data-tt-parent="p_spawnconditions_worldgen">triesperchunk</div></td> | ||
<td>object</td> | <td>object</td> | ||
<td>zero</td> | <td>zero</td> | ||
Line 942: | Line 913: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_minlightlevel" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_minlightlevel" data-tt-parent="p_spawnconditions_worldgen">minlightlevel</div></td> | ||
<td>integer</td> | <td>integer</td> | ||
<td>0</td> | <td>0</td> | ||
Line 948: | Line 919: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_maxlightlevel" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_maxlightlevel" data-tt-parent="p_spawnconditions_worldgen">maxlightlevel</div></td> | ||
<td>integer</td> | <td>integer</td> | ||
<td>32</td> | <td>32</td> | ||
Line 954: | Line 925: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_lightleveltype" data-tt-parent="p_spawnconditions_worldgen" data-hide="true"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_lightleveltype" data-tt-parent="p_spawnconditions_worldgen" data-hide="true">lightleveltype</div></td> | ||
<td>string</td> | <td>string</td> | ||
<td>"MaxLight"</td> | <td>"MaxLight"</td> | ||
Line 960: | Line 931: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_group_onlyblocklight" data-tt-parent="p_spawnconditions_worldgen_lightleveltype"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_group_onlyblocklight" data-tt-parent="p_spawnconditions_worldgen_lightleveltype">onlyblocklight</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 966: | Line 937: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_group_onlysunLight" data-tt-parent="p_spawnconditions_worldgen_lightleveltype"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_group_onlysunLight" data-tt-parent="p_spawnconditions_worldgen_lightleveltype">onlysunlight</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 972: | Line 943: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_group_maxlight" data-tt-parent="p_spawnconditions_worldgen_lightleveltype"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_group_maxlight" data-tt-parent="p_spawnconditions_worldgen_lightleveltype">maxlight</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 978: | Line 949: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_group_maxtimeofdaylight" data-tt-parent="p_spawnconditions_worldgen_lightleveltype"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_group_maxtimeofdaylight" data-tt-parent="p_spawnconditions_worldgen_lightleveltype">maxtimeofdaylight</div></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
Line 984: | Line 955: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_groupsize" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_groupsize" data-tt-parent="p_spawnconditions_worldgen">groupsize</div></td> | ||
<td>object</td> | <td>object</td> | ||
<td><code>{ avg: 1, var: 0 } </code></td> | <td><code>{ avg: 1, var: 0 } </code></td> | ||
Line 990: | Line 961: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_companions" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_companions" data-tt-parent="p_spawnconditions_worldgen">companions</div></td> | ||
<td>array of string</td> | <td>array of string</td> | ||
<td>-</td> | <td>-</td> | ||
Line 996: | Line 967: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_insideblockcodes" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_insideblockcodes" data-tt-parent="p_spawnconditions_worldgen">insideblockcodes</div></td> | ||
<td>array of string</td> | <td>array of string</td> | ||
<td><code>[ "game:air" ]</code></td> | <td><code>[ "game:air" ]</code></td> | ||
Line 1,002: | Line 973: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_requiresolidground" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_requiresolidground" data-tt-parent="p_spawnconditions_worldgen">requiresolidground</div></td> | ||
<td>boolean</td> | <td>boolean</td> | ||
<td>true</td> | <td>true</td> | ||
Line 1,008: | Line 979: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_tryonlysurface" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_tryonlysurface" data-tt-parent="p_spawnconditions_worldgen">tryonlysurface</div></td> | ||
<td>boolean</td> | <td>boolean</td> | ||
<td>false</td> | <td>false</td> | ||
Line 1,014: | Line 985: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_mintemp" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_mintemp" data-tt-parent="p_spawnconditions_worldgen">mintemp</div></td> | ||
<td>integer</td> | <td>integer</td> | ||
<td>-40</td> | <td>-40</td> | ||
Line 1,020: | Line 991: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_maxtemp" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_maxtemp" data-tt-parent="p_spawnconditions_worldgen">maxtemp</div></td> | ||
<td>integer</td> | <td>integer</td> | ||
<td>40</td> | <td>40</td> | ||
Line 1,026: | Line 997: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_minrain" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_minrain" data-tt-parent="p_spawnconditions_worldgen">minrain</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>0</td> | <td>0</td> | ||
Line 1,032: | Line 1,003: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_maxrain" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_maxrain" data-tt-parent="p_spawnconditions_worldgen">maxrain</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>1</td> | <td>1</td> | ||
Line 1,038: | Line 1,009: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_minforest" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_minforest" data-tt-parent="p_spawnconditions_worldgen">minforest</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>0</td> | <td>0</td> | ||
Line 1,044: | Line 1,015: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_maxforest" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_maxforest" data-tt-parent="p_spawnconditions_worldgen">maxforest</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>1</td> | <td>1</td> | ||
Line 1,050: | Line 1,021: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_minshrubs" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_minshrubs" data-tt-parent="p_spawnconditions_worldgen">minshrubs</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>0</td> | <td>0</td> | ||
Line 1,056: | Line 1,027: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_maxshrubs" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_maxshrubs" data-tt-parent="p_spawnconditions_worldgen">maxshrubs</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>1</td> | <td>1</td> | ||
Line 1,062: | Line 1,033: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_minforestorshrubs" data-tt-parent="p_spawnconditions_worldgen"> | <td scope="row"><div class="tt" data-tt-id="p_spawnconditions_worldgen_minforestorshrubs" data-tt-parent="p_spawnconditions_worldgen">minforestorshrubs</div></td> | ||
<td>decimal number</td> | <td>decimal number</td> | ||
<td>0</td> | <td>0</td> |
Revision as of 20:31, 4 October 2024
This page was last verified for Vintage Story version 1.19.
Overview
In the code, these come from the fields listed with the "[JsonProperty]" attribute in EntityType.cs, plus the fields from the parent class RegistryObjectType.cs. The json parser is case insensitive, which is how the property names can have different capitalization in the code and in the table below.
Property | Type | Default | Usage | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
json |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Core (no byType available) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
code |
string | required | A unique identifier for the entity. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A domain prefix will be added dynamically depending on the location of the file. Every mod and VintageStory itself have a unique prefix. For example the code The code identifier has to be unique inside its domain. In theory there could be equal identifiers with different domain prefixes. Find out more about Domains. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
enabled |
boolean | true | If the entity will be loaded or not. Can be used to temporarily remove the entity. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
variantgroups |
array of object | - | Allows you define multiple variants of the same entity. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(any) bytype |
key: string; value: object | - | Allows different property values to be specified based on the variant code. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
allowedVariants |
array of strings | - | Used to trim unnecessary items generated by combined variants. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
skipVariants |
array of strings | - | Similar to allowedVariants, but instead skips the creation of listed variants rather than assigning which are allowed. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Common | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
class |
string | "entity" | The entity class can add special functionalities for the entity. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Can be used to add interaction to the entity or other special functionalities. Example uses are |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
habitat |
string | "land" | There is sea , land , air , and underwater |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
hitboxsize |
Vec2f | null | Convenience alias that sets both collisionBoxSize and selectionBoxSize . |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
collisionboxsize |
Vec2f | { x: 0.5, y: 0.5 } | The cuboid for collisions with other entities and blocks. The x value is the width and length of a square at the entity's feet. The y value is the height of the cuboid. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
selectionboxsize |
Vec2f | collisionboxsize | The cuboid for interacting with or attacking the entity. This is what would commonly be considered the entity's hitbox. The x value is the width and length of a square at the entity's feet. The y value is the height of the cuboid. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deadboxsize |
Vec2f | null | Convenience alias that sets both deadCollisionBoxSize and deadSelectionBoxSize . |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
collisionboxsize |
Vec2f | { x: 0.25, y: 0.25 } | The cuboid for collisions with other entities and blocks when the entity is dead. The x value is the width and length of a square at the entity's feet. The y value is the height of the cuboid. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deadselectionboxsize |
Vec2f | deadcollisionboxsize | The cuboid for interacting with or attacking the entity's carcass. The x value is the width and length of a square at the entity's feet. The y value is the height of the cuboid. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
eyeheight |
decimal number | 0.1 | Height of the eyes, measured from the bottom of the hitbox in meters. Used for camera angle and various other things. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
swimmingeyeheight |
decimal number | eyeheight | Replacement value for eyeheight while the entity is swimming. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
weight |
decimal number | 25 | This is unused by the base game. The documentation says it is the average weight of the entity in kilograms. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
canclimb |
boolean | false | Whether the entity can climb on ladders or other blocks which are climbable. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
canclimbanywhere |
boolean | false | Whether the entity can climb on any block, doesn't matter if it's a ladder or not. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
falldamage |
boolean | true | Whether the entity will take fall damage. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
climbtouchdistance |
decimal number | 0.5 | Distance at which the entity can climb on something. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rotatemodelonclimb |
boolean | false | If true the entity model will be rotated to face the block its climbing on. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
knockbackresistance |
decimal number | 0.0 | The higher the number is the less knockback will be applied. Useful for heavy entities. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
attributes |
key: string, value: object | - | Custom Attributes associated with this entity. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Extra attributes added to the entity. Those are final and cannot be modified. It's a good way to keep things organized and and modifiable. These can be used by behaviors or the entity class: attributes: {
"attackPower": 10
},
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sounds |
key: string, value: string | - | Sounds of the entity, you can also add your own sounds and play them, but here is a list of default sounds used death , hurt , idle , jump , swim and eat |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
idlesoundchance |
decimal number | 0.3 | How likely it is for the entity to play an idle sound. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
idlesoundrange |
decimal number | 24 | How far the idle sound played by the entity can be heard. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
drops |
array of object | - | The items that should drop from breaking this block. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
No drop By default an entity does not drop anything at all: drops: [],
Drop You can also specify an item or block to drop. Therefore you need to define an ItemStack, with the given properties:
For example, if the entity should drop charcoalpile: drops: [
{ type: "item", code: "charcoal" }
],
You can also specify drop special itemstack if the entity is killed by certain tool, similar to Tallgrass which only drops something if it's mined by a knife: drops: [
{ type: "item", code: "drygrass", tool: "knife" },
],
Chance drops Let's take a look at an example. This is the drop property of rock:
drops: [
{
type: "item",
code: "stone-{rock}",
quantity: { avg: 2.5, var: 0.5 }
},
]
This will drop 2-3 blocks. avg: Stands for the default drop quantity. If var is 0 or not specified it will always drop the given average. var: How much the drop rate can vary. Meaning the drop rate can be Furthermore you can also switch between different distribution modes using the dist property.
Multiple Drops Of course you can also define multiple drops at once. A Sapling for example can drop a sapling and a stick: drops: [
{
type: "block",
code: "sapling-{wood}",
quantity: { avg: 0.02, var: 0 },
},
{
type: "item",
code: "stick",
quantity: { avg: 0.02, var: 0 },
}
],
Last Drop In order to add a special drop, which (if dropped) prevents all other drops, you can use the lastDrop property: drops: [
{ type: "item", code: "stick", quantity: { avg: 0.2, var: 0 }, lastDrop: true },
{ type: "item", code: "sapling", quantity: { avg: 1.25, var: 0 } }
],
The entity will either drop a stick with a chance of 20% or an average of 1.25 saplings. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
client: { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
renderer |
string | - | Name of there renderer system that draws this entity. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
texture |
object | The texture of the entity. It will overwrite all textures of the shape. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
base overlays alternates |
Default example (player model): texture: {
base: "entity/humanoid/player"
}
texture: {
base: "entity/humanoid/player-{type}"
}
texture: {
base: "entity/humanoid/player-{type}",
overlays: [ "entity/humanoid/player-{type}-overlay" ],
}
Random textures: texture: {
base: "entity/humanoid/player-{type}",
alternates: [
{ base: "entity/humanoid/player-{type}2" },
{ base: "entity/humanoid/player-{type}3"}
]
}
Random textures and overlays combined: texture: {
base: "entity/humanoid/player-{type}",
overlays: [ "entity/humanoid/player-{type}-overlay" ],
alternates: [
{ base: "entity/humanoid/player-{type}2", overlays: [ "entity/humanoid/player-{type}2-overlay" ] },
{ base: "entity/humanoid/player-{type}3", overlays: [ "entity/humanoid/player-{type}3-overlay" ] }
]
}
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
textures |
key: string, value: object | Can be used to replace specific textures of the shape. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
base overlays alternates |
Replace arrow texture of the shape, the stick texture remains untouched: textures: {
"arrow": {
base: "entity/arrow/stone"
}
}
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shape |
object | - | The shape of the entity. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
base |
The path to the shape json file, the base dir is assets/shapes/ . shape: { base: "entity/arrow" }
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
glowlevel |
0 ... 255 | 0 | Causes the entity to visually glow if Bloom is enabled. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
size |
decimal number | 1 | Can be used to scale the entity up or down. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
behaviors |
array of object | A behavior adds custom abilities to the entity. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
floatupwhenstuck
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
animations |
array of object | WIP | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
code |
string | The identifier of the animation. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
animation |
string | The animation code identifier to play. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
weight |
decimal number | 1.0 | Animations with a high weight value will be prioritized over the other animations when the animations are combined. For example if the player aims with a bow while jumping around, the aiming animation has a higher weight (for the upper body) so the jumping animation will be reduced. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
elementweight |
key: string, value: decimal number | Allows you to specify a weight for each element individually. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
animationspeed |
decimal number | 1.0 | The speed of the animation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mulwithwalkspeed |
boolean | false | Whether the animation should be affected by the walk speed. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
easeinspeed |
decimal number | 10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
easeoutspeed |
decimal number | 10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
triggeredby |
Specifies by what the animation is triggered. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
oncontrols |
array of object | An array of activities. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
none |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
idle |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
move |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sprintmode |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sneakmode |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fly |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
swim |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
jump |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fall |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
climb |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
floorsitting |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
dead |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
break |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
place |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
matchexact |
boolean | false | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
defaultanim |
boolean | false | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
blendmode |
string | Animation blend mode for all elements. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
add |
Add the animation without taking other animations into considerations. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
average |
Add the pose and average it together with all other running animations with blendmode Average or AddAverage. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
addaverage |
Add the animation without taking other animations into consideration, but add it's weight for averaging. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
elementblendmode |
key: string, value: string | Allows you to specify a blend mode for each element individually. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
server: { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
attributes |
key: string, value: object | - | Custom Attributes associated with this entity only known by the server. They will not be send to the client. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Extra attributes added to the entity for server use only. Those are final and cannot be modified. It's a good way to keep things organized and and modifiable. These can be used by behaviors or the entity class: attributes: {
"attackPower": 10
},
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
behaviors |
array of object | A behavior adds custom abilities to the entity. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
floatupwhenstuck
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
spawnConditions |
object | - | Specifies the circumstances of the entity spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
runtime |
object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
group |
string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
chance |
decimal number | 1.0 | How long it takes to make an attempt to spawn the entity: 1.0 -> 4 seconds, 0.1 -> 40 seconds. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxquantity |
integer | 20 | Maximum number of entities inside the chunk, if this is exceeded the entity will not spawn there. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mindistancetoplayer |
integer | 18 | Minimum distance the entity can spawn away from the player. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
minlightlevel |
integer | 0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxlightlevel |
integer | 32 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lightleveltype |
string | "MaxLight" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
onlyblocklight |
Will get you just the block light | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
onlysunlight |
Will get you just the sun light unaffected by the day/night cycle | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxlight |
Will get you max(onlysunlight, onlyblocklight) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxtimeofdaylight |
Will get you max(sunlight * sunbrightness, blocklight) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
groupsize |
object | { avg: 1, var: 0 } |
Determines the size of the group. By default the size of the group is always one. Find out more about the random generator. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
companions |
array of string | - | Codes of all possible companions. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
insideblockcodes |
array of string | [ "game:air" ] |
The block codes in which the entity can spawn. Entities which can spawn underwater might use [ "game:water" ] instead. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
requiresolidground |
boolean | true | If the entity requires a solid block below it. For example birds and fishes do not require it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tryonlysurface |
boolean | false | If false the game will also try to spawn the entity below the surface (in a cave for example). For ordinary animals this should be true so they only spawn on the surface. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mintemp |
integer | -40 | Minimum temperature at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxtemp |
integer | 40 | Maximum temperature at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
minrain |
decimal number | 0 | Minimum rain average at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxrain |
decimal number | 1 | Maximum rain average at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
minforest |
decimal number | 0 | Minimum forest density at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxforest |
decimal number | 1 | Maximum forest density at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
minshrubs |
decimal number | 0 | Minimum shrubs density at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxshrubs |
decimal number | 1 | Maximum shrubs density at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
minforestorshrubs |
decimal number | 0 | Minimum shrubs or forest density at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
worldgen |
object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
group |
string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
triesperchunk |
object | zero | How many tries per chunk the entity has to spawn. Find out more about the random generator. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
minlightlevel |
integer | 0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxlightlevel |
integer | 32 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lightleveltype |
string | "MaxLight" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
onlyblocklight |
Will get you just the block light | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
onlysunlight |
Will get you just the sun light unaffected by the day/night cycle | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxlight |
Will get you max(onlysunlight, onlyblocklight) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxtimeofdaylight |
Will get you max(sunlight * sunbrightness, blocklight) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
groupsize |
object | { avg: 1, var: 0 } |
Determines the size of the group. By default the size of the group is always one. Find out more about the random generator. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
companions |
array of string | - | Codes of all possible companions. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
insideblockcodes |
array of string | [ "game:air" ] |
The block codes in which the entity can spawn. Entities which can spawn underwater might use [ "game:water" ] instead. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
requiresolidground |
boolean | true | If the entity requires a solid block below it. For example birds and fishes do not require it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tryonlysurface |
boolean | false | If false the game will also try to spawn the entity below the surface (in a cave for example). For ordinary animals this should be true so they only spawn on the surface. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mintemp |
integer | -40 | Minimum temperature at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxtemp |
integer | 40 | Maximum temperature at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
minrain |
decimal number | 0 | Minimum rain average at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxrain |
decimal number | 1 | Maximum rain average at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
minforest |
decimal number | 0 | Minimum forest density at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxforest |
decimal number | 1 | Maximum forest density at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
minshrubs |
decimal number | 0 | Minimum shrubs density at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
maxshrubs |
decimal number | 1 | Maximum shrubs density at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
minforestorshrubs |
decimal number | 0 | Minimum shrubs or forest density at which the entity can spawn. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} |
Wondering where some links have gone?
The modding navbox is going through some changes! Check out Navigation Box Updates for more info and help finding specific pages.
Modding | |
---|---|
Modding Introduction | Getting Started • Theme Pack |
Content Modding | Content Mods • Developing a Content Mod • Basic Tutorials • Intermediate Tutorials • Advanced Tutorials • Content Mod Concepts |
Code Modding | Code Mods • Setting up your Development Environment |
Property Overview | Item • Entity • Block • Block Behaviors • Block Classes • Block Entities • Block Entity Behaviors • World properties |
Workflows & Infrastructure | Modding Efficiency Tips • Mod-engine compatibility • Mod Extensibility • VS Engine |
Additional Resources | Community Resources • Modding API Updates • Programming Languages • List of server commands • List of client commands • Client startup parameters • Server startup parameters Example Mods • API Docs • GitHub Repository |