Modding:Block Json Properties: Difference between revisions
From Vintage Story Wiki
No edit summary |
|||
Line 38: | Line 38: | ||
<td>enum</td> | <td>enum</td> | ||
<td>opaque</td> | <td>opaque</td> | ||
<td></td> | <td>Determines how the block will be drawn</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 44: | Line 44: | ||
<td></td> | <td></td> | ||
<td>0</td> | <td>0</td> | ||
<td> | <td>Used for solid blocks with no half transparency</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 50: | Line 50: | ||
<td></td> | <td></td> | ||
<td>1</td> | <td>1</td> | ||
<td></td> | <td>Used for non-solid single faced blocks, such as tall grass</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 56: | Line 56: | ||
<td></td> | <td></td> | ||
<td>2</td> | <td>2</td> | ||
<td></td> | <td>Use for solid halftransparent blocks, such as glass</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 62: | Line 62: | ||
<td></td> | <td></td> | ||
<td>3</td> | <td>3</td> | ||
<td></td> | <td>Used for liquids, produces water waves</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 68: | Line 68: | ||
<td></td> | <td></td> | ||
<td>4</td> | <td>4</td> | ||
<td></td> | <td>Used for grass covered blocks. Allows for a smooth transition from grass to soil, while still allowing climate tinting of grass</td> | ||
</tr> | </tr> | ||
<tr> | <tr> |
Revision as of 12:26, 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 | Determines how the block will be drawn |
opaque |
0 | Used for solid blocks with no half transparency | |
opaquenocull |
1 | Used for non-solid single faced blocks, such as tall grass | |
transparent |
2 | Use for solid halftransparent blocks, such as glass | |
liquid |
3 | Used for liquids, produces water waves | |
topsoil |
4 | Used for grass covered blocks. Allows for a smooth transition from grass to soil, while still allowing climate tinting of grass | |
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 |