Translations:Modding:Content Tutorial Simple Item/13/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 Simple Item)
Now that your itemtype file has a code, it will now be created and registered in game. However, you need a way of accessing the item. To do this, add a new property:<syntaxhighlight lang="json">
{
  "code": "simplewand",
  "creativeinventory": {
   "general": [ "*" ]
  }
}
</syntaxhighlight>Notice that each property is seperated using a comma. The new property, ''"creativeinventory"'' tells the game what creative tab this item will be placed in. The syntax of this particular property is a little bit more complex, but don't worry about it for now. All this does is add the item into the "general" creative tab.

Now that your itemtype file has a code, it will now be created and registered in game. However, you need a way of accessing the item. To do this, add a new property:

{
  "code": "simplewand",
  "creativeinventory": {
    "general": [ "*" ]
  }
}

Notice that each property is seperated using a comma. The new property, "creativeinventory" tells the game what creative tab this item will be placed in. The syntax of this particular property is a little bit more complex, but don't worry about it for now. All this does is add the item into the "general" creative tab.