Modding:Content Tutorial Simple Item: Difference between revisions

From Vintage Story Wiki
m
Table formatting...
m (Formatting again why does the visual editor hate me?)
m (Table formatting...)
Line 190: Line 190:
==== Change the color of the wand ====
==== Change the color of the wand ====
{| class="wikitable mw-collapsible mw-collapsed"
{| class="wikitable mw-collapsible mw-collapsed"
!To achieve this...
|To achieve this...
|-
|-
!Modify the simplewand.png texture to a different color.
|Modify the simplewand.png texture to a different color.
|}
|}


==== Change your modid and domain to something else ====
==== Change your modid and domain to something else ====
{| class="wikitable mw-collapsible mw-collapsed"
{| class="wikitable mw-collapsible mw-collapsed"
!To achieve this...
|To achieve this...
|-
|-
!Modify both the modid entry in modinfo.json, and change the name of the 'simpleitem' folder in 'assets'.
|Modify both the modid entry in modinfo.json, and change the name of the 'simpleitem' folder in 'assets'.
|}
|}


==== Rename your 'Simple Wand' ====
==== Rename your 'Simple Wand' ====
{| class="wikitable mw-collapsible mw-collapsed"
{| class="wikitable mw-collapsible mw-collapsed"
!To achieve this...
|To achieve this...
|-
|-
!Change the entry for simplewand in your en.json lang file.
|Change the entry for simplewand in your en.json lang file.
|}
|}


==== Create another wand with a different color ====
==== Create another wand with a different color ====
{| class="wikitable mw-collapsible mw-collapsed"
{| class="wikitable mw-collapsible mw-collapsed"
!To achieve this...
|To achieve this...
|-
|-
!Create a copy of the texture with a different name and color, and a duplicate itemtype file. In the new itemtype file, change the item code and change the texture property to your new texture path. Don't forget to add new lang translation entries!  
|Create a copy of the texture with a different name and color, and a duplicate itemtype file. In the new itemtype file, change the item code and change the texture property to your new texture path. Don't forget to add new lang translation entries!  
|}
|}


{{Navbox/contentmodding}}
{{Navbox/contentmodding}}
</translate>
</translate>
Confirmedusers
536

edits