Modding:Theme Pack: Difference between revisions

From Vintage Story Wiki
(Created page with "== Packing == == Info file == Every zip-file mod requires a <code>modinfo.json</code> inside the root directory of the archive. Otherwise the entire mod will be ignored. Thi...")
 
No edit summary
Line 20: Line 20:
----
----


The <code>type</code> '''theme''' will define this mod being a ThemePack. So it cannot override gameplay affecting assets categories (such as blocktypes, itemtypes and so on) and no scripts or mod classes will be loaded.
<syntaxhighlight lang=json>
  "type": "theme",
</syntaxhighlight>
 
Defines this mod as being a '''ThemePack'''. Therefore it cannot override gameplay affecting assets categories (such as blocktypes, itemtypes and so on) and no scripts or mod classes will be loaded.


<syntaxhighlight lang=json>
<syntaxhighlight lang=json>
Line 26: Line 30:
</syntaxhighlight>
</syntaxhighlight>


Means this ThemePack requires 1.5.0.3 or a newer version.
Means it requires at least VintageStory v1.5.0.3 or a newer version.


== Icon ==
== Icon ==

Revision as of 16:27, 6 February 2018

Packing

Info file

Every zip-file mod requires a modinfo.json inside the root directory of the archive. Otherwise the entire mod will be ignored. This info file specifies what kind of me it is, its name, author, etc.

An example of a theme pack info file (modinfo.json):

{
  "type": "theme",
  "name": "My Example Themepack",
  "description" : "This is a themepack and serves as an example.",
  "author": "CreativeMD",
  "version": "1.0",
  "gameversions": [ "1.5.0.3+" ],
  "website": "http://example.com"
}

  "type": "theme",

Defines this mod as being a ThemePack. Therefore it cannot override gameplay affecting assets categories (such as blocktypes, itemtypes and so on) and no scripts or mod classes will be loaded.

  "gameversions": [ "1.5.0.3+" ],

Means it requires at least VintageStory v1.5.0.3 or a newer version.

Icon

Distribution