Translations:Modding:Content Tutorial Basics/7/en

From Vintage Story Wiki
Revision as of 13:14, 28 March 2024 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The following property exists in our shape file:

"textures": {
	"base": "item/simplewand"
}

Note that we can use multiple textures in a single shape file:

"textures": {
	"head": "item/wand-blue",
	"handle": "item/wand-handle"
}

In the 'textures' block, we have a list of keys and values. The key refers to the name of the texture inside the shape file, 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.