Confirmedusers
261
edits
(vsdata link) |
(Link to Modding:Registry_Object_JSON_Parsing) |
||
Line 145: | Line 145: | ||
<!--T:40--> | <!--T:40--> | ||
Now we need to change a few things in our json file. We can add all kinds of different groups, but for now we keep it simple. We are adding group called <code>type</code>, with the states <code>gold</code> and <code>iron</code>. You can use any group code you want. | Now we need to change a few things in our json file. We can add all kinds of different groups, but for now we keep it simple. We are adding a [[Modding:Registry_Object_JSON_Parsing|variant group]] called <code>type</code>, with the states <code>gold</code> and <code>iron</code>. You can use any group code you want. | ||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
"variantgroups": [ | "variantgroups": [ |