Translations:Modding:Content Tutorial Basics/9/en: Difference between revisions

From Vintage Story Wiki
(Importing a new version from external source)
 
(No difference)

Latest revision as of 13:14, 28 March 2024

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Modding:Content Tutorial Basics)
If our shape only has a single texture, we can use the following property within our block/item/entity:<syntaxhighlight lang="json">
"texture": {
   "base": "item/simplewand"
}
</syntaxhighlight>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:<syntaxhighlight lang="json">
"textures": {
   "head": { "base": "item/wand-blue" },
   "handle": { "base": "item/wand-handle" }
},
</syntaxhighlight>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.

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.