Translations:Modding:Content Tutorial Basics/7/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)
The following property exists in our shape file:<syntaxhighlight lang="json">
"textures": {
"base": "item/simplewand"
}
</syntaxhighlight>Note that we can use multiple textures in a single shape file:<syntaxhighlight lang="json">
"textures": {
"head": "item/wand-blue",
"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 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.

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.