Translations:Modding:Content Tutorial Basics/4/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)
When referencing a shape in a json file, you can use the following example property:<syntaxhighlight lang="json">
"shape": {
   "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.

When referencing a shape in a json file, you can use the following example property:

"shape": {
    "base": "item/simplewand"
  },

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.