Modding:Basic Block: Difference between revisions

From Vintage Story Wiki
Add links to more details for the block attributes
mNo edit summary
(Add links to more details for the block attributes)
 
Line 58: Line 58:


<!--T:15-->
<!--T:15-->
* '''code''': A unique identifier for your block.
* [[Modding:Block_Json_Properties#p_code|code]]: A unique identifier for your block.
* '''creativeinventory''': The creative inventory tabs the block should be shown in (currently only 1 tab available)
* [[Modding:Block_Json_Properties#p_creativeinventory|creativeinventory]]: The creative inventory tabs the block should be shown in (currently only 1 tab available)
* '''shape''': Which model the block should use
* [[Modding:Block_Json_Properties#p_shape|shape]]: Which model the block should use
* '''drawtype''': Determines the drawing system, e.g. use 'cube' for normal full cubes or 'json' for custom created shapes.
* [[Modding:Block_Json_Properties#p_drawtype|drawtype]]: Determines the drawing system, e.g. use 'cube' for normal full cubes or 'json' for custom created shapes.
* '''textures''': What textures to apply. For simple blocks you can define one single texture for 'all' faces or define one for every facing ('north', 'east', 'west', 'south', 'up', 'down')
* [[Modding:Block_Json_Properties#p_textures|textures]]: What textures to apply. For simple blocks you can define one single texture for 'all' faces or define one for every facing ('north', 'east', 'west', 'south', 'up', 'down')
* '''resistance''': How many seconds of real life time it takes to break the block without tools
* [[Modding:Block_Json_Properties#p_resistance|resistance]]: How many seconds of real life time it takes to break the block without tools
* '''sounds''': The sounds to be played when placing/breaking or walking on the block. The prefix <code>game</code> has to be added, since our block has the domain <code>mygoldblock</code>. Otherwise it would try to find those sounds inside our domain.
* [[Modding:Block_Json_Properties#p_sounds|sounds]]: The sounds to be played when placing/breaking or walking on the block. The prefix <code>game</code> has to be added, since our block has the domain <code>mygoldblock</code>. Otherwise it would try to find those sounds inside our domain.


<!--T:16-->
<!--T:16-->
Confirmedusers
510

edits