Modding:Block Json Properties: Difference between revisions

From Vintage Story Wiki
Line 2,079: Line 2,079:
     <td colspan="5" style='font-size: 14pt; border-bottom: 2pt solid black; padding-left: 100px;'><b>Rendering</b></td>
     <td colspan="5" style='font-size: 14pt; border-bottom: 2pt solid black; padding-left: 100px;'><b>Rendering</b></td>
   </tr>
   </tr>
   <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>
Line 2,084: Line 2,086:
     <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. Within a mod, to refer to a texture from the base game, prefix the path with "game:" (i.e. base: "game:path/to/texture") </td>
     <td>The texture definitions for the block as seen in the world, when dropped on the ground or held in the hand. Within a mod, to refer to a texture from the base game, prefix the path with "game:" (i.e. base: "game:path/to/texture") </td>
    <td>all blocks</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,094: Line 2,097:
     <td></td>
     <td></td>
     <td>The texture definitions for the block as seen in the player inventory. Overrides the textures.</td>
     <td>The texture definitions for the block as seen in the player inventory. Overrides the textures.</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,100: Line 2,104:
     <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>
    <td>Barrel, firepit</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,106: Line 2,111:
     <td></td>
     <td></td>
     <td>The path to the shape json file, the base dir is ''assets/shapes/''.</td>
     <td>The path to the shape json file, the base dir is ''assets/shapes/''.</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,112: Line 2,118:
     <td>0</td>
     <td>0</td>
     <td>Only 90 degree rotations are possible.</td>
     <td>Only 90 degree rotations are possible.</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,118: Line 2,125:
     <td>0</td>
     <td>0</td>
     <td>Only 90 degree rotations are possible.</td>
     <td>Only 90 degree rotations are possible.</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,124: Line 2,132:
     <td>0</td>
     <td>0</td>
     <td>Only 90 degree rotations are possible.</td>
     <td>Only 90 degree rotations are possible.</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,130: Line 2,139:
     <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>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,136: Line 2,146:
     <td>&quot;cube&quot;</td>
     <td>&quot;cube&quot;</td>
     <td>Determines how the block is tesselated, select JSON for being able to use custom JSON Models. The other values are hardcoded methods of tesselating the block.</td>
     <td>Determines how the block is tesselated, select JSON for being able to use custom JSON Models. The other values are hardcoded methods of tesselating the block.</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,142: Line 2,153:
     <td>0</td>
     <td>0</td>
     <td></td>
     <td></td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,148: Line 2,160:
     <td>1</td>
     <td>1</td>
     <td></td>
     <td></td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,154: Line 2,167:
     <td>2</td>
     <td>2</td>
     <td></td>
     <td></td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,160: Line 2,174:
     <td>3</td>
     <td>3</td>
     <td></td>
     <td></td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,166: Line 2,181:
     <td>4</td>
     <td>4</td>
     <td></td>
     <td></td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,172: Line 2,188:
     <td>5</td>
     <td>5</td>
     <td></td>
     <td></td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,178: Line 2,195:
     <td>6</td>
     <td>6</td>
     <td></td>
     <td></td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,184: Line 2,202:
     <td>7</td>
     <td>7</td>
     <td>Will draw a json model.</td>
     <td>Will draw a json model.</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,190: Line 2,209:
     <td>8</td>
     <td>8</td>
     <td>Nothing will be drawn.</td>
     <td>Nothing will be drawn.</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,196: Line 2,216:
     <td>9</td>
     <td>9</td>
     <td>Draws an ordinary cube.</td>
     <td>Draws an ordinary cube.</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,202: Line 2,223:
     <td>10</td>
     <td>10</td>
     <td></td>
     <td></td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,208: Line 2,230:
     <td>11</td>
     <td>11</td>
     <td></td>
     <td></td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,214: Line 2,237:
     <td>12</td>
     <td>12</td>
     <td></td>
     <td></td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,220: Line 2,244:
     <td>13</td>
     <td>13</td>
     <td></td>
     <td></td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,226: Line 2,251:
     <td>&quot;opaque&quot;</td>
     <td>&quot;opaque&quot;</td>
     <td>Determines how the block will be drawn.</td>
     <td>Determines how the block will be drawn.</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,232: Line 2,258:
     <td>0</td>
     <td>0</td>
     <td>Used for solid blocks with no half transparency.</td>
     <td>Used for solid blocks with no half transparency.</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,238: Line 2,265:
     <td>1</td>
     <td>1</td>
     <td>Used for non-solid single faced blocks, such as tall grass.</td>
     <td>Used for non-solid single faced blocks, such as tall grass.</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,244: Line 2,272:
     <td>2</td>
     <td>2</td>
     <td>Use for solid halftransparent blocks, such as glass</td>
     <td>Use for solid halftransparent blocks, such as glass</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,250: Line 2,279:
     <td>3</td>
     <td>3</td>
     <td>Used for liquids, produces waves.</td>
     <td>Used for liquids, produces waves.</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,256: Line 2,286:
     <td>4</td>
     <td>4</td>
     <td>Used for grass covered blocks. Allows for a smooth transition from grass to soil, while still allowing climate tinting of grass.</td>
     <td>Used for grass covered blocks. Allows for a smooth transition from grass to soil, while still allowing climate tinting of grass.</td>
    <td>-</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 2,262: Line 2,293:
     <td>true</td>
     <td>true</td>
     <td>If ambient occlusion will be applied to the block.</td>
     <td>If ambient occlusion will be applied to the block.</td>
    <td>-</td>
   </tr>
   </tr>
  <tr>
  <tr>
219

edits