Confirmedusers, editor, Administrators
886
edits
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__FORCETOC__ | __FORCETOC__ | ||
It's highly recommended to read [[Basic Item]] first. Additionally this tutorial requires a development environment. If you don't have one already you should read the tutorial [[Setting up | It's highly recommended to read [[Basic Item]] first. Additionally this tutorial requires a development environment. If you don't have one already you should read the tutorial [[Setting up your Development Environment]]. | ||
= Tunnel pickaxe = | = Tunnel pickaxe = | ||
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 [ | 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: [ | 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 | 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: [ | Here is the complete example mod: [https://wiki.vintagestory.at/images/6/66/Tunnler.zip Tunnler.zip] | ||
{{Navbox/modding|Vintage Story}} |