Modding:Advanced Items: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
(One intermediate revision by the same user not shown)
Line 9: Line 9:
== Item Assets ==
== Item Assets ==


First of all we need to create a new item, including a texture and a lang file. Those assets are pretty straight forward and you can download them [http://wiki.vintagestory.at/images/c/cd/Tunnler_-_No_CS_File.zip here]. Just place the file in your mods folder and you are ready to start programming.
First of all we need to create a new item, including a texture and a lang file. Those assets are pretty straight forward and you can download them [https://wiki.vintagestory.at/images/c/cd/Tunnler_-_No_CS_File.zip here]. Just place the file in your mods folder and you are ready to start programming.


There is only one new property in your json item file called <code>class</code>:
There is only one new property in your json item file called <code>class</code>:
Line 178: Line 178:
</syntaxhighlight>
</syntaxhighlight>


You can also download the file directly: [http://wiki.vintagestory.at/images/a/ad/Tunnler.cs Tunnler.cs].
You can also download the file directly: [https://wiki.vintagestory.at/images/a/ad/Tunnler.cs Tunnler.cs].


== Testing ==
== Testing ==
Line 188: Line 188:
== Distribution ==
== Distribution ==


In order to finish your mod, you need to place your *.cs file in the zip archive. Once that is done you can share it with other people. It will work in the same way as ordinary mods, you can install it by copying it into the <code>mods</code> folder.
In order to finish everything, open the modtools and type in <code>pack <your mod id></code>. Now you can take the zip file and share it with other people. It will work in the same way as ordinary mods, you can install it by copying it into the <code>mods</code> folder.


Here is the complete example mod: [http://wiki.vintagestory.at/images/6/66/Tunnler.zip Tunnler.zip]
Here is the complete example mod: [https://wiki.vintagestory.at/images/6/66/Tunnler.zip Tunnler.zip]




{{Navbox/modding|Vintage Story}}
{{Navbox/modding|Vintage Story}}
Confirmedusers, editor, Administrators
886

edits