Modding:Block Json Properties: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 113: Line 113:
   <tr>
   <tr>
     <td scope="row"><div class="tt" data-tt-id="p_shape" data-tt-parent="root">shape</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_shape" data-tt-parent="root">shape</div></td>
     <td>[[JSON - Shape|shape]]</td>
     <td>shape</td>
     <td></td>
     <td></td>
     <td>For the json drawtype, the shape definition of the block as shown in the world, dropped on the ground or held in hand.</td>
     <td>For the json drawtype, the shape definition of the block as shown in the world, dropped on the ground or held in hand.</td>
Line 143: Line 143:
   <tr>
   <tr>
     <td scope="row"><div class="tt" data-tt-id="p_shapeinventory" data-tt-parent="root">shapeinventory</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_shapeinventory" data-tt-parent="root">shapeinventory</div></td>
     <td>[[JSON - Shape|shape]]</td>
     <td>shape</td>
     <td></td>
     <td></td>
     <td>For the json drawtype, the shape definition of the block as shown in the players inventory.</td>
     <td>For the json drawtype, the shape definition of the block as shown in the players inventory.</td>
Line 173: Line 173:
   <tr>
   <tr>
     <td scope="row"><div class="tt" data-tt-id="p_shapebytype" data-tt-parent="root">shapebytype</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_shapebytype" data-tt-parent="root">shapebytype</div></td>
     <td>key: string, value: [[JSON - Shape|shape]]</td>
     <td>key: string, value: shape</td>
     <td></td>
     <td></td>
     <td>When defining multiple block variants, use this property to selectively choose the shape of a variant.</td>
     <td>When defining multiple block variants, use this property to selectively choose the shape of a variant.</td>
Line 275: Line 275:
   <tr>
   <tr>
     <td scope="row"><div class="tt" data-tt-id="p_textures" data-tt-parent="root">textures</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_textures" data-tt-parent="root">textures</div></td>
     <td>key: [[JSON - Direction|direction]], value: [[JSON - Texture|texture]]</td>
     <td>key: direction, value: [[JSON - Texture|texture]]</td>
     <td></td>
     <td></td>
     <td>The texture definitions for the block as seen in the world, when dropped on the ground or held in the hand.</td>
     <td>The texture definitions for the block as seen in the world, when dropped on the ground or held in the hand.</td>
Line 308: Line 308:
   <tr>
   <tr>
     <td scope="row"><div class="tt" data-tt-id="p_texturesinventory" data-tt-parent="root">texturesinventory</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_texturesinventory" data-tt-parent="root">texturesinventory</div></td>
     <td>key: [[JSON - Direction|direction]], value: [[JSON - Texture|texture]]</td>
     <td>key: direction, value: [[JSON - Texture|texture]]</td>
     <td></td>
     <td></td>
     <td>The texture definitions for the block as seen in the player inventory. Overrides the textures definition if set.</td>
     <td>The texture definitions for the block as seen in the player inventory. Overrides the textures definition if set.</td>
Line 314: Line 314:
   <tr>
   <tr>
     <td scope="row"><div class="tt" data-tt-id="p_texturesbytype" data-tt-parent="root">texturesbytype</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_texturesbytype" data-tt-parent="root">texturesbytype</div></td>
     <td>key: string -> [[JSON - Direction|direction]], value: [[JSON - Texture|texture]]</td>
     <td>key: string -> direction, value: [[JSON - Texture|texture]]</td>
     <td></td>
     <td></td>
     <td>When defining multiple block variants, use this property to selectively choose the textures of a variant.</td>
     <td>When defining multiple block variants, use this property to selectively choose the textures of a variant.</td>
Line 320: Line 320:
   <tr>
   <tr>
     <td scope="row"><div class="tt" data-tt-id="p_texturesinventorybytype" data-tt-parent="root">texturesinventorybytype</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_texturesinventorybytype" data-tt-parent="root">texturesinventorybytype</div></td>
     <td>key: string -> [[JSON - Direction|direction]], value: [[JSON - Texture|texture]]</td>
     <td>key: string -> direction, value: [[JSON - Texture|texture]]</td>
     <td></td>
     <td></td>
     <td>When defining multiple block variants, use this property to selectively choose the inventory textures of a variant.</td>
     <td>When defining multiple block variants, use this property to selectively choose the inventory textures of a variant.</td>
Line 326: Line 326:
   <tr>
   <tr>
     <td scope="row"><div class="tt" data-tt-id="p_sideopaque" data-tt-parent="root">sideopaque</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_sideopaque" data-tt-parent="root">sideopaque</div></td>
     <td>key: [[JSON - Direction|direction]], value: boolean</td>
     <td>key: direction, value: boolean</td>
     <td></td>
     <td></td>
     <td></td>
     <td></td>
Line 346: Line 346:
   <tr>
   <tr>
     <td scope="row"><div class="tt" data-tt-id="p_sidesolid" data-tt-parent="root">sidesolid</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_sidesolid" data-tt-parent="root">sidesolid</div></td>
     <td>key: [[JSON - Direction|direction]], value: boolean</td>
     <td>key: direction, value: boolean</td>
     <td></td>
     <td></td>
     <td></td>
     <td></td>
Confirmedusers, editor, Administrators
886

edits