Modding:Basic Block: Difference between revisions

From Vintage Story Wiki
Line 49: Line 49:
* '''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')
* '''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
* '''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> means this will use the vanilla assets, otherwise it will try to find those sounds inside your mod zip file.
* '''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.


Now save the file in your workspace folder inside <code>assets/mygoldblock/blocktypes/</code> and name it <code>mygoldblock.json</code>.
Now save the file in your workspace folder inside <code>assets/mygoldblock/blocktypes/</code> and name it <code>mygoldblock.json</code>.
Confirmedusers, editor, Administrators
886

edits