Translations:Modding:Developing a Content Mod/10/en: Difference between revisions

From Vintage Story Wiki
(Importing a new version from external source)
 
(Importing a new version from external source)
Tag: Replaced
 
Line 1: Line 1:
==== ModInfo.json ====
=== ModInfo.json ===
To register our mod, we have to tell Vintage Story that our mod exists and some details about it. To do this, create a new file called '<nowiki/>''modinfo.json''' inside your mod workspace, either using your IDE or through Windows. Open the file, and paste the following json code:<syntaxhighlight lang="json">
{
  "type": "content",
  "modid": "examplecontentmod",
  "name": "VS Wiki Example Content Mod",
  "authors": [
    "Nat @ Vintage Story Wiki"
  ],
  "description": "An example showcase of content mod additions.",
  "version": "1.0.0"
}
</syntaxhighlight>This file is a very good example of how a json file is formatted, and you will notice that nearly every asset uses this file format. Json files list a set of "key": "value" entries, allowing you to change those values to fit what is desired. In this case, the following keys represent:

Latest revision as of 09:49, 7 April 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:Developing a Content Mod)
=== ModInfo.json ===

ModInfo.json