Modding:Basic Block: Difference between revisions

From Vintage Story Wiki
Line 241: Line 241:
== 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/myshinyblock/shapes/blocks/</code> as well.
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/myshinyblock/shapes/block/</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>:
In order to specify the shape by type we need to remove the property <code>shape</code> and replace it with <code>shapebytype</code>:
Line 247: Line 247:
shapebytype: {
shapebytype: {
"*-good": {
"*-good": {
base: "myshinymodel1",
base: "block/myshinymodel1",
},
},
"*-used": {
"*-used": {
base: "myshinymodel",
base: "block/myshinymodel",
},
},
},
},
Confirmedusers, editor, Administrators
886

edits