Modding:Basic Item: Difference between revisions
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
= A Simple Item = | = A Simple Item = | ||
So, the first thing we going to need is an idea. What does this game need. Wait i got it ... the game needs an overpowered wand. | |||
== The Texture == | == The Texture == | ||
This is the texture we gonna use: [[File:Wand.png]]. In order to use it we need to place it inside the assets folder inside the [[Vintagestory folder]]. Therefore the path should look like this: <code>assets/textures/items/tool/wand/wand.png</code>. | |||
== The Json File == | == The Json File == | ||
Now we need to let the game know if its existence. We can accomplish that by creating a json file and placing it inside <code>assets/itemtypes/tool/wand.json</code>. | |||
== Testing == | == Testing == | ||
Line 17: | Line 23: | ||
= Advanced Properties = | = Advanced Properties = | ||
== | == Mining Properties == | ||
== Variants == | |||
== Texture Overlays == | == Texture Overlays == | ||
Revision as of 12:12, 30 January 2017
This tutorial should introduce you into the basic of adding an item to the game using JSON files. If you want to add a block with functionality you should check out the tutorial for Advanced Items. There is a full list of all properties which can be defined inside the json file Item Json Properties.
A Simple Item
So, the first thing we going to need is an idea. What does this game need. Wait i got it ... the game needs an overpowered wand.
The Texture
This is the texture we gonna use: . In order to use it we need to place it inside the assets folder inside the Vintagestory folder. Therefore the path should look like this: assets/textures/items/tool/wand/wand.png
.
The Json File
Now we need to let the game know if its existence. We can accomplish that by creating a json file and placing it inside assets/itemtypes/tool/wand.json
.