Modding:Block Json Properties: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
Line 22: Line 22:
     <td scope="row"><div class="tt" data-tt-id="p_code" data-tt-parent="root">Code</div></td>
     <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>-</td>
     <td>required</td>
     <td>A unique identifier for the block.</td>
     <td>A unique identifier for the block.</td>
   </tr>
   </tr>
Line 34: Line 34:
     </td>
     </td>
   </tr>
   </tr>
    <tr>
  <tr>
     <td scope="row"><div class="tt" data-tt-id="p_enabled" data-tt-parent="root">Enabled</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_enabled" data-tt-parent="root">Enabled</div></td>
     <td>boolean</td>
     <td>boolean</td>
Line 40: Line 40:
     <td>If the block will be loaded or not. Can be used to temporarily remove the block.</td>
     <td>If the block will be loaded or not. Can be used to temporarily remove the block.</td>
   </tr>
   </tr>
    <tr>
  <tr>
     <td scope="row"><div class="tt" data-tt-id="p_variantgroups" data-tt-parent="root">VariantGroups</div></td>
     <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>
Line 118: Line 118:
   <tr>
   <tr>
     <td colspan="4" style='font-size: 14pt; border-bottom: 2pt solid black; padding-left: 100px;'><b>Specific</b></td>
     <td colspan="4" style='font-size: 14pt; border-bottom: 2pt solid black; padding-left: 100px;'><b>Specific</b></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_class" data-tt-parent="root">Class</div></td>
    <td>string</td>
    <td>&quot;block&quot;</td>
    <td>The block class can add special functionalities for the block.</td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_class_info" data-tt-parent="P_class" data-invisible="true"></div></td>
    <td colspan="3">
A complete tutorial of creating you own class can be found [[Advanced Blocks|here]].
</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 130: Line 142:
     <td>true</td>
     <td>true</td>
     <td>If the block will be added to game or not.</td>
     <td>If the block will be added to game or not.</td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_class" data-tt-parent="root">class</div></td>
    <td>string</td>
    <td>block</td>
    <td>The block class</td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_entityclass" data-tt-parent="root">entityclass</div></td>
    <td>string</td>
    <td>-</td>
    <td>The blockentity class</td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_behaviors" data-tt-parent="root">behaviors</div></td>
    <td>array of strings</td>
    <td>empty</td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_info" data-tt-parent="p_behaviors" data-invisible="true"></div></td>
    <td colspan="3">
{{:json:block:behavior}}
    </td>
   </tr>
   </tr>
   <tr>
   <tr>