Modding:Block Json Properties: Difference between revisions

From Vintage Story Wiki
Line 1,227: Line 1,227:
     <td>Used by the pot block to allow it to be heated in either the output or input slot.</td>
     <td>Used by the pot block to allow it to be heated in either the output or input slot.</td>
     <td>pot</td>  
     <td>pot</td>  
</tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_bowlcontent" data-tt-parent="p_attributes_contain">bowlContents</div></td>
    <td>string</td>
    <td>null</td>
    <td>The item code of the contents contained in the bowl, by default this value is '''null''' since most bowls will start with nothing inside them.</td>
    <td>-</td>
</tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_" data-tt-parent="p_attributes_contain">canHold</div></td>
    <td>string (blockcode)</td>
    <td>-</td>
    <td>What blocks (liquids) a liquid container can hold.</td>
    <td>bucket</td>
</tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_caplitres" data-tt-parent="p_attributes_contain">capacityLitres</div></td>
    <td>number</td>
    <td>-</td>
    <td>The amount of litres that a liquid container can hold.</td>
    <td>bucket</td>
</tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_" data-tt-parent="p_attributes_contain">closeSound</div></td>
    <td>Path to sound</td>
    <td>-</td>
    <td>The sound that plays when a container is opened.</td>
    <td>chest, storagevessel</td>
</tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_contentblock" data-tt-parent="p_attributes_contain">contentBlockCode</div></td>
    <td>-</td>
    <td>-</td>
    <td>Used by the flowerpot to manually store the block contained in each variant, which drops when the block is broken.</td>
    <td>flowerpot, planter</td>
</tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_contentconfig" data-tt-parent="p_attributes_contain">contentConfig</div></td>
    <td>-</td>
    <td>-</td>
    <td>Used by food troughs to determine the properties of each content type.</td>
    <td>trough-large, trough-small</td>
</tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_ccprops_code" data-tt-parent="p_alist_contentconfig">code</div></td>
    <td>String</td>
    <td>-</td>
    <td>Identifier used for referencing in the JSON.</td>
    <td>trough-large, trough-small</td>
</tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_ccprops_content" data-tt-parent="p_alist_contentconfig">content</div></td>
    <td>Item or Block code</td>
    <td>-</td>
    <td>The item or block placed in the trough.</td>
    <td>trough-large, trough-small</td>
</tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_ccprops_foodfor" data-tt-parent="p_alist_contentconfig">foodFor</div></td>
    <td>Entity Code</td>
    <td>-</td>
    <td>The entity that can interact with (eat) the contents.</td>
    <td>trough-large, trough-small</td>
</tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_ccprops_quant" data-tt-parent="p_alist_contentconfig">quantityPerFillLevel</div></td>
    <td>number</td>
    <td>-</td>
    <td>The number of the item or block required to fill a "portion" of the trough.</td>
    <td>trough-large, trough-small</td>
</tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_ccprops_max" data-tt-parent="p_alist_contentconfig">maxFillLevels</div></td>
    <td>number</td>
    <td>-</td>
    <td>The maximum number of portions that the trough can be filled with.</td>
    <td>trough-large, trough-small</td>
</tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_ccprops_shapes" data-tt-parent="p_alist_contentconfig">shapesPerFillLevel</div></td>
    <td>Array of Shape Paths</td>
    <td>-</td>
    <td>A list of shapes for each level of the trough, with first being empty, the second with one layer etc.</td>
    <td>trough-large, trough-small</td>
</tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_ccprops_texture" data-tt-parent="p_alist_contentconfig">textureCode</div></td>
    <td>Path to texture</td>
    <td>-</td>
    <td>The flat texture used for the contents in the trough.</td>
    <td>trough-large, trough-small</td>
  </tr>
  </tr>
<tr>
<tr>
Line 1,244: Line 1,335:
     <td>If the block has the "unstable" behavior, this allows it to be generated in positions that it can fall from.</td>
     <td>If the block has the "unstable" behavior, this allows it to be generated in positions that it can fall from.</td>
     <td>sand, gravel</td>  
     <td>sand, gravel</td>  
  </tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_bfeed" data-tt-parent="p_attributes_misc">beeFeed</div></td>
    <td>boolean</td>
    <td>-</td>
    <td>Whether or not the block is a viable source of bee feeding (IE a flower).</td>
    <td>all crops, bigberrybush, flower, smallberrybush</td>
  </tr>
<tr>
    <td scope="row"><div class="tt" data-tt-id="p_alist_butterflyfeed" data-tt-parent="p_attributes_misc">butterflyFeed</div></td>
    <td>boolean</td>
    <td>-</td>
    <td>Whether or not the block will attract butterflies.</td>
    <td>all crops, bigberrybush, flower, smallberrybush</td>
   </tr>
   </tr>
  <tr>
  <tr>
Line 1,387: Line 1,492:
     <td>string</td>
     <td>string</td>
     <td>-</td>
     <td>-</td>
     <td>Gives some blocks additional rotation properties when placed. (currently "22.5degnot45deg" is the only option.</td>
     <td>Gives some blocks additional rotation properties when placed (currently "22.5degnot45deg" and "22.tdeg" are the only two options).</td>
     <td>chest</td>  
     <td>chest</td>  
  </tr>
  </tr>
219

edits