Modding:Block Json Properties: Difference between revisions

From Vintage Story Wiki
(Created page with "== Overview == A complete list of all available properties: <table id="treeviewtable" class="table table-bordered tt-table"> <tr style='background-color: gray;'> <th w...")
 
Line 20: Line 20:
     <td>string</td>
     <td>string</td>
     <td>empty</td>
     <td>empty</td>
     <td></td>
     <td>A unique identifier for the block.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 26: Line 26:
     <td>number</td>
     <td>number</td>
     <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>
   <tr>
   <tr>
Line 32: Line 32:
     <td>boolean</td>
     <td>boolean</td>
     <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>
   <tr>
   <tr>

Revision as of 12:22, 5 January 2017

Overview

A complete list of all available properties:


Property Type Default Usage
json
code
string empty A unique identifier for the block.
maxstacksize
number 64 Determines the maximum amount you can stack the block in one slot
enabled
boolean true If the block will be added to game or not
renderpass
enum opaque
opaque
0 default blocks
opaquenocull
1
transparent
2
liquid
3
topsoil
4
variantgroups
arrays
creativeinventory
arrays
shapeinventory
object
base
shape
object
base
shapebytype
object
ambientocclusion
boolean true if ambient occlusion will be applied to the block
blockmaterial
string
drawtype
enum cube
blockLayer_1
0
blockLayer_2
1
blockLayer_3
2
blockLayer_4
3
blockLayer_5
4
blockLayer_6
5
blockLayer_7
6
json
7
empty
8
cube
9
cross
10
transparent
11
liquid
12
crossandsnowlayer
13
textures
arrays
texturesinventory
arrays
texturesbytype
arrays
texturesinventorybytype
arrays
resistance
sounds
enum
place
0
walk
1
break
2
hit
3
inside
4