addonscript-spec/docs/schema/meta.md
2022-01-29 17:45:11 +01:00

1.8 KiB

Meta Object

{
  "addon": {
    "name": "My cool addon name",
    "icon": "./icon.png",
    "description": "./README.md",
    "summary": "My Addon",
    "website": "https://example.com",
    "source": "https://gitea.com/user/myaddon",
    "issues": "https://gitea.com/user/myaddon/issues",
    "type": "mod",
    "contributors": [{"name": "Alice", "email": "alice@example.com"}, {"name": "Bob", "email": "bob@example.com"}]
  },
  "version": {
    "changelog": "./CHANGELOG.md",
    "timestamp": 1594753200
  },
  "additional": {}
}

Optional properties

addon

An addon mata object.

version

A version mata object.

additional

This object can contain any arbitrary data,

Addon Meta Object

Optional Properties

name

The full, human-readable name of the addon. This is what a program such as a launcher should display to the user.

icon

A link to the icon of the addon. This path should point to an image file of small resolution which is ideally square. It can be dispayed to users in programs.

description

A link to a description file for the addon. The file should be in CommonMark markdown.

summary

A short description of the addon, to be shown in lists and menus where the addon is shown aside others.

website

A URL to a website about the addon

source

A URL to the source code of the addon.

issues

A URL to an issue tracker for the addon.

type

The type of the addon, for example mod, modpack or resourcepack.

contributors

An array of people who have contributed to the addon.

Version Meta Object

Optional properties

changelog

A link to a changelog file for the addon.

timestamp

A unix timestamp of the time and date of the version's release.