Modding:Basic Item: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
(5 intermediate revisions by 4 users not shown)
Line 14: Line 14:
This is the texture we gonna use [[File:Wand.png]].
This is the texture we gonna use [[File:Wand.png]].


In order to use the texture we need to put it at the right place. Therefore create the following folders in your workspace <code>assets/mywandmod/textures/item/<code>. Now rename the texture to <code>wand.png</code> and place it in there.
In order to use the texture we need to put it at the right place. Therefore create the following folders in your workspace <code>assets/mywandmod/textures/item/</code>. Now rename the texture to <code>wand.png</code> and place it in there.


== The Item File ==
== The Item File ==
Line 47: Line 47:
There is only one thing left. We need to create a zip file of the assets folder inside your workspace. Either you use an external program (such as WinRAR or 7Zip) or you right-click the <code>assets</code> folder and hit '''Send To''' -> '''Compressed (zipped) folder'''. Eventually you can rename the zip file to <code>MyWandMod.zip</code>. The zip file can be either used for testing purposes or you can send it to other people so they can use it as well.
There is only one thing left. We need to create a zip file of the assets folder inside your workspace. Either you use an external program (such as WinRAR or 7Zip) or you right-click the <code>assets</code> folder and hit '''Send To''' -> '''Compressed (zipped) folder'''. Eventually you can rename the zip file to <code>MyWandMod.zip</code>. The zip file can be either used for testing purposes or you can send it to other people so they can use it as well.


[http://wiki.vintagestory.at/images/e/ec/MyWandMod.zip MyWandMod.zip]
Furthermore you need to add a <code>modinfo.json</code> file, check out [[Game_Content_Mod|this tutorial]].
 
[https://wiki.vintagestory.at/images/e/ec/MyWandMod.zip MyWandMod.zip]


To install the mod, navigate to the [[Vintagestory folder]] and place it inside the mods folder.
To install the mod, navigate to the [[Vintagestory folder]] and place it inside the mods folder.


Now we got everything ready to run our first test. You should be able to find the added item in the creative inventory.
Now we got everything ready to run our first test. You should be able to find the added item in the creative inventory.


[[File:2017-01-30 13-59-27.png|700px]]
[[File:2017-01-30 13-59-27.png|700px]]
'''Hint''': Use the client command <code>.tfedit</code> if you want to adjust the item position, rotation and scale in Hands, in GUI, when dropped on the ground or in third person mode.


= Advanced Properties =
= Advanced Properties =
Line 181: Line 186:
== Download ==
== Download ==


You can download the mod to test it out yourself: [http://wiki.vintagestory.at/images/e/ec/MyAdvancedWandMod.zip MyAdvancedWandMod.zip]
You can download the mod to test it out yourself: [https://wiki.vintagestory.at/images/e/ec/MyAdvancedWandMod.zip MyAdvancedWandMod.zip]
 
 
 
{{Navbox/modding|Vintage Story}}
Confirmedusers, editor, Administrators
886

edits