Modding:Item Json Properties: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
Line 21: Line 21:
     <td>string</td>
     <td>string</td>
     <td>-</td>
     <td>-</td>
     <td>A unique identifier for the block.</td>
     <td>A unique identifier for the item.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 28: Line 28:
     <td>64</td>
     <td>64</td>
     <td>Determines the maximum amount you can stack the block in one slot.</td>
     <td>Determines the maximum amount you can stack the block in one slot.</td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_enabled " data-tt-parent="root">enabled</div></td>
    <td>boolean</td>
    <td>true</td>
    <td>If the item 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 item class</td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_variantgroups" data-tt-parent="root">variantgroups</div></td>
    <td>arrays</td>
    <td></td>
    <td>Allows you define multiple variants of the same item.</td>
  </tr>
  <tr>
    <td colspan="4" style='font-size: 14pt; border-bottom: 2pt solid black; padding-left: 100px;"><b>Rendering</b></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_guitransform" data-tt-parent="root">guitransform</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_fphandtransform" data-tt-parent="root">fphandtransform</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_tphandtransform" data-tt-parent="root">tphandtransform</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_groundtransform" data-tt-parent="root">groundtransform</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_combustibleprops" data-tt-parent="root">combustibleprops</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_combustiblepropsbytype" data-tt-parent="root">combustiblepropsbytype</div></td>
    <td></td>
    <td></td>
    <td></td>
   </tr>
   </tr>
</table>
</table>
Line 34: Line 90:


Common
Common
*class
*variantgroups
*miningspeedbytype
*miningspeedbytype
*durabilitybytype
*durabilitybytype
Line 45: Line 99:
*materialdensity
*materialdensity
*creativeinventory
*creativeinventory
Rendering
*guitransform
*fphandtransform
*tphandtransform
*groundtransform
*combustibleprops
*combustiblepropsbytype

Revision as of 09:42, 1 September 2017

A complete list of all available properties:

Property Type Default Usage
json
Common
code
string - A unique identifier for the item.
maxstacksize
number 64 Determines the maximum amount you can stack the block in one slot.
enabled
boolean true If the item will be added to game or not.
class
string block The item class
variantgroups
arrays Allows you define multiple variants of the same item.
Rendering
guitransform
fphandtransform
tphandtransform
groundtransform
combustibleprops
combustiblepropsbytype

Stuff to be added

Common

  • miningspeedbytype
  • durabilitybytype
  • tool
  • attributes
  • attributesbytype
  • damagedby
  • texture
  • materialdensity
  • creativeinventory