Confirmedusers, editor, Administrators
886
edits
CreativeMD (talk | contribs) |
CreativeMD (talk | contribs) |
||
Line 21: | Line 21: | ||
The next thing we need is a json file which will determine the properties of the block. For now we keep it simple and only cover simple properties, but there are a lot of other things you can do with. Here is a full list of all [[Block Json Properties]]. | The next thing we need is a json file which will determine the properties of the block. For now we keep it simple and only cover simple properties, but there are a lot of other things you can do with. Here is a full list of all [[Block Json Properties]]. | ||
Now you need to create a new json file in your editor (we recommend to use an editor with syntax highlighting, such as [https://notepad-plus-plus.org/ Notepad++] or Visual Studio) | Now you need to create a new json file in your editor (we recommend to use an editor with syntax highlighting, such as [https://notepad-plus-plus.org/ Notepad++] or Visual Studio). | ||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
Line 40: | Line 40: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Short explanation of each line: | Short explanation of each line: | ||
Line 52: | Line 51: | ||
* '''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> means this will use the vanilla assets, otherwise it will try to find those sounds inside your mod zip file. | ||
Now save the file in your workspace folder inside <code>assets/mygoldblock/blocktypes/</code> and name it <code>mygoldblock.json</code>. | |||
== Naming the Block == | == Naming the Block == |