Modding:Item Json Properties: Difference between revisions

From Vintage Story Wiki
Line 409: Line 409:
     <td>64</td>
     <td>64</td>
     <td>Determines the maximum amount you can stack the item in one slot.</td>
     <td>Determines the maximum amount you can stack the item in one slot.</td>
    <td> hide, nugget</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 414: Line 415:
     <td>decimal number</td>
     <td>decimal number</td>
     <td>0.5</td>
     <td>0.5</td>
     <td>The damage the deals when hitting an entity.</td>
     <td>The damage the item deals when hitting an entity.</td>
    <td>sword, spear</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 420: Line 422:
     <td>decimal number</td>
     <td>decimal number</td>
     <td>1.5</td>
     <td>1.5</td>
     <td>The maximum distance you can hit an entity.</td>
     <td>The maximum distance you can hit an entity with the item.</td>
    <td>sword, spear</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 427: Line 430:
     <td>9999</td>
     <td>9999</td>
     <td>Determines on whether an object floats on liquids or not.</td>
     <td>Determines on whether an object floats on liquids or not.</td>
    <td>ingot</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 432: Line 436:
     <td colspan="3">
     <td colspan="3">
Water has a density of 1000, meaning everything below or equal will float on water. The same goes for lava which has a density of 5000.
Water has a density of 1000, meaning everything below or equal will float on water. The same goes for lava which has a density of 5000.
Vintage story uses real world densities for each material (where 1000 = 1 g/cm^3). To give an idea of the current range of densities, gold has a density of 19300, iron's is 7870, and a feather is 20.
</td>
</td>
   </tr>
   </tr>
Line 442: Line 448:
   <tr>
   <tr>
     <td scope="row"><div class="tt" data-tt-id="p_liquidselectable_info" data-tt-parent="p_liquidselectable" data-invisible="true"></div></td>
     <td scope="row"><div class="tt" data-tt-id="p_liquidselectable_info" data-tt-parent="p_liquidselectable" data-invisible="true"></div></td>
     <td colspan="3">
     <td colspan="4">
Used for buckets in order to fill it with water and to place waterlily on top of water.
Used for buckets in order to fill it with water and to place waterlily on top of water.
</td>
</td>
219

edits