Modding:Content Tutorial Basics: Difference between revisions

From Vintage Story Wiki
m
Minor formatting.
m (Explanation of Content Mod Basics)
m (Minor formatting.)
Line 7: Line 7:


== Shape Files ==
== Shape Files ==
A shape file is a '''3d model''' of a block, item, or entity. They are always stored within the '<nowiki/>''shapes''' folder in your mod's assets.
A shape file is a '''3d model''' of a block, item, or entity. They are always stored within the shapes folder in your mod's assets.


When referencing a shape in a json file, you can use the following example property:<syntaxhighlight lang="json">
When referencing a shape in a json file, you can use the following example property:<syntaxhighlight lang="json">
Line 13: Line 13:
     "base": "item/simplewand"
     "base": "item/simplewand"
   },
   },
</syntaxhighlight>Note that the value automatically looks in your mod folder, unless a domain is provided. In this case for the example mod, the path to the shape is "assets/examplecontentmod/shapes/item/simplewand.json". You do not need to provide the full path, nor do you need to provide the file type.
</syntaxhighlight>Note that the value automatically looks in your mod folder, unless a domain is provided. In this case for the example mod, the path to the shape is "''assets/examplecontentmod/shapes/item/simplewand.json''". You do not need to provide the full path, nor do you need to provide the file type.


== Texture Files ==
== Texture Files ==
Line 29: Line 29:
"handle": "item/wand-handle"
"handle": "item/wand-handle"
}
}
</syntaxhighlight>In the '<nowiki/>''textures''<nowiki/>' block, we have a list of keys and values. The key refers to the name of the texture, and the value refers to the file path of the texture. In the first instance, similar to when we reference our shape file, the game will search in our mod's texture folder as no domain was given. In this case for the example mod, the path is "assets/examplecontentmod/textures/item/simplewand.png". Note again that you do not need to provide the full path or provide the file type.
</syntaxhighlight>In the '<nowiki/>''textures''<nowiki/>' block, we have a list of keys and values. The key refers to the name of the texture, and the value refers to the file path of the texture. In the first instance, similar to when we reference our shape file, the game will search in our mod's texture folder as no domain was given. In this case for the example mod, the path is "''assets/examplecontentmod/textures/item/simplewand.png''". Note again that you do not need to provide the full path or provide the file type.


=== Modifying Textures ===
=== Modifying Textures ===
Confirmedusers
615

edits