Modding:Basic Block: Difference between revisions

From Vintage Story Wiki
Line 34: Line 34:
}
}
</syntaxhighlight>
</syntaxhighlight>
Short explanation of each line:
* '''code''': A unique identifier for your block. If you plan a larger mod, it is suggested to prefix your modname to the identifier.
* '''creativeinventory''': The creative inventory tabs the block should be shown in (currently only 1 tab available)
* '''shape''': Which model the block should use
* '''drawtype''': Determines the drawing system, 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')
* '''resistance''': How many seonds of real time it takes to break the block without tools
* '''sounds''': The sounds to be played when placing/breaking or walking on the block


Now navigate to the [[Vintagestory folder]] again and place the json file inside it in <code>assets\assets\blocktypes\metal\</code>.
Now navigate to the [[Vintagestory folder]] again and place the json file inside it in <code>assets\assets\blocktypes\metal\</code>.
Confirmedusers, Bureaucrats, editor, Administrators
1,779

edits