Modding:Basic Block: Difference between revisions
From Vintage Story Wiki
CreativeMD (talk | contribs) |
CreativeMD (talk | contribs) |
||
Line 240: | Line 240: | ||
== Variants of Custom Shapes == | == Variants of Custom Shapes == | ||
I created another model for the blocks in good condition ([http://wiki.vintagestory.at/images/f/fa/Myshinymodel1.json myshinymodel1.json]), because they should look more awesome, than the ones in used conditions. Therefore we need to copy the json file to <code>assets/shapes/block/metal/</code> as well. | |||
In order to specify the shape by type we need to remove the property <code>shape</code> and replace it with <code>shapebytype</code>: | |||
<syntaxhighlight lang="json"> | |||
shapebytype: { | |||
"*-good": { | |||
base: "metal/myshinymodel1", | |||
}, | |||
"*-used": { | |||
base: "metal/myshinymodel", | |||
}, | |||
}, | |||
</syntaxhighlight> | |||
[[File:2017-01-12 14-51-45.png|700px]] | |||
I hope I could introduce you into the basic of adding blocks the game. [[Advanced Blocks]] will teach you how to add more functionality to your block. | |||
There are a lot of more things you can do with the system. It is always recommend to take a look at the files created by Vintage Story itself to understand how the system is working. | |||
[http://wiki.vintagestory.at/images/4/42/MyShinyBlockMod.zip MyShinyBlockMod] |