Translations:Modding:Content Tutorial Basics/9/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)

If our shape only has a single texture, we can use the following property within our block/item/entity:

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

Note that the above is texture, not textures. Also note that when using a single texture, the key is always "base", regardless of the texture name in the shape file. To change multiple textures in a block/item/entity, use the following:

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

Note that as we are changing multiple textures, we use textures. Also note that "head" and "handle" match with the textures we are changing in the shape file.