Modding:Basic Block: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
Line 21: Line 21:
= Advanced Properties =
= Advanced Properties =


[[Block Json Properties]]


== Properties Overview ==
== Overview ==
A complete list of all available properties:
A complete list of all available properties:
<div class="treeview">
* '''Json File'''
** '''code ''(string)'''''
** '''maxstacksize ''(number)''''': ''default'': 64
** '''enabled ''(boolean)''''': ''default'': true; If the block will be added to game or not.
** '''randomdrawoffset ''(boolean)''''': ''default'': false; If the block has a random draw offset.
** '''renderpass'''
*** opaque ''(default)''
*** opaquenocull
*** transparent
*** liquid
*** topsoil
** '''variantgroups ''(array)'''''
*** '''loadFromProperties'''
** '''creativeinventory'''
*** '''default'''
** '''shapeinventory'''
** '''shape'''
*** '''base'''
** '''shapebytype'''
** '''ambientocclusion ''(boolean)''''': ''default'': true; If ambient occlusion will be applied to the block.
** '''blockmaterial'''
** '''drawtype'''
*** blockLayer_1
*** blockLayer_2
*** blockLayer_3
*** blockLayer_4
*** blockLayer_5
*** blockLayer_6
*** blockLayer_7
*** json
*** empty
*** cube
*** cross
*** transparent
*** liquid
*** crossandsnowlayer
** '''textures'''
** '''texturesinventory'''
** '''texturesbytype'''
** '''texturesinventorybytype'''
** '''resistance'''
** '''sounds'''
*** '''place'''
*** '''walk'''
*** '''break'''
*** '''hit'''
*** '''inside'''
</div>