|
|
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:
| |