latest--schema_version_1
shared| Type | object |
|---|---|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/quilt-mod-json/_shared/latest--schema_version_1.json |
| Parent schema | quilt-mod-json |
The QuiltMC mod metadata. Utilized by the Quilt Loader in order to load mods. The format specification may be seen here.
Properties
The quilt mod file schema version to be used for parsing this file. Currently, the only valid version is 1.
Information necessary for the mod loading process.
14 nested properties
A unique identifier for the organization behind or developers of the mod. The group string must match the ^[a-zA-Z0-9-_.]+$ regular expression, and must not begin with the reserved namespace loader.plugin. It is recommended, but not required, to follow Maven's guide to naming conventions.
An array of ProvidesObjects describing other mods/APIs that this package provides.
A collection of key: value pairs, where each key is the type of the entrypoints specified and each values is either a single entrypoint or an array of entrypoints. An entrypoint is an object with the following keys:
- adapter — Language adapter to use for this entrypoint. By default this is
defaultand tells loader to parse using the JVM entrypoint notation. - value — Points to an implementation of the entrypoint. See below for the default JVM notation.
If an entrypoint does not need to specify a language adapter other than the default language adapter, the entrypoint can be represented simply as the value string instead.
JVM entrypoint notation
When referring to a class, the [binary name] is used. An example of a binary name is my.mod.MyClass$Inner.
One of the following value notations may be used in the JVM notation:
- Implementation onto a class
- The value must contain a fully qualified binary name to the class.
- Implementing class must extend or implement the entrypoint interface.
- Class must have a no-argument public constructor.
- Example:
example.mod.MainModClass
- A field inside of a class.
- The value must contain a fully qualified binary name to the class followed by
::and a field name. - The field must be static.
- The type of the field must be assignable from the field's class.
- Example:
example.mod.MainModClass::THE_INSTANCE - If there is ambiguity with a method's name, an exception will be thrown.
- The value must contain a fully qualified binary name to the class followed by
- A method inside of a class.
- The value must contain a fully qualified binary name to the class followed by
::and a method name. - The method must be capable to implement the entrypoint type as a method reference. Generally this means classes which are functional interfaces.
- Constructor requirement varies based on the method being static or instance level:
- A static method does not require a public no-argument constructor.
- An instance method requires a public no-argument constructor.
- Example:
example.mod.MainModClass::init - If there is ambiguity with a fields's name or other method, an exception will be thrown.
- The value must contain a fully qualified binary name to the class followed by
Other notations
Some language providers may extend the capabilities of the JVM language notation or provide additional notations. For notation rules for other language adapters, consult the capabilities of the language adapter.
An array of loader plugins. A plugin is an object with the following keys:
- adapter — Language adapter to use for this plugin
- value — Points to an implementation of the
LoaderPlugininterface. Can be in either of the following forms:my.package.MyClass— A class to be instantiated and usedmy.package.MyClass::thing— A static field containing an instance of aLoaderPlugin
If a plugin does not need to specify a language adapter other than the default language adapter, the plugin can be represented simply as the value string instead.
A list of paths to nested JAR files to load, relative to the root directory inside of the mods JAR.
A collection of key: value pairs, where each key is the namespace of a language adapter and the value is an implementation of the LanguageAdapter interface.
Influences whether or not a mod candidate should be loaded or not. May be any of these values
- "always" (default for mods directly in the mods folder)
- "if_possible"
- "if_required" (default for jar-in-jar mods)
This doesn't affect mods directly placed in the mods folder.
Always
If any versions of this mod are present, then one of them will be loaded.
Due to how mod loading actually works if any of the different versions of this mod are present, and one of them has "load_type" set to "always", then all of them are treated as it being set to "always".
If Possible
If this mod can be loaded, then it will - otherwise it will silently not be loaded.
If Required
If this mod is in another mods "depends" field then it will be loaded, otherwise it will silently not be loaded.
A list of Maven repository url strings where dependencies can be looked for in addition to Quilt's central repository.
The intermediate mappings used for this mod. The intermediate mappings string must be a valid maven coordinate and match the ^[a-zA-Z0-9-_.]+:[a-zA-Z0-9-_.]+$ regular expression. This field currently only officially supports org.quiltmc:hashed and net.fabricmc:intermediary.
Optional metadata that can be used by mods to display information about the mods installed.
6 nested properties
A human-readable name for this mod.
A human-readable description of this mod. This description should be plain text, with the exception of line breaks, which can be represented with the newline character \n.
A collection of key: value pairs denoting the persons or organizations that contributed to this project. The key should be the name of the person or organization, while the value can be either a string representing a single role or an array of strings each one representing a single role.
A role can be any valid string. The "Owner" role is defined as being the person(s) or organization in charge of the project.
A collection of key: value pairs denoting various contact information for the people behind this mod, with all values being strings. The following keys are officially defined, though mods can provide as many additional values as they wish:
- email — Valid e-mail address for the organization/developers
- homepage — Valid HTTP/HTTPS address for the project or the organization/developers behind it
- issues — Valid HTTP/HTTPS address for the project issue tracker
- sources — Valid HTTP/HTTPS address for a source code repository
4 nested properties
Valid e-mail address for the organization/developers.
Valid HTTP/HTTPS address for the project or the organization/developers behind it.
Valid HTTP/HTTPS address for the project issue tracker.
Valid HTTP/HTTPS address for a source code repository.
The license or array of licenses this project operates under.
A license is defined as either an SPDX identifier string or an object in the following form:
{
"name": "Perfectly Awesome License v1.0",
"id": "PAL-1.0",
"url": "https://theperfectlyawesomelicense.com/",
"description": "This license does things and stuff and says that you can do things and stuff too!"
}
The "description" field is optional.
One or more paths to a square .PNG file. If an object is provided, the keys must be the resolution of the corresponding file. For example:
"icon": {
"32": "path/to/icon32.png",
"64": "path/to/icon64.png",
"4096": "path/to/icon4096.png"
}
A single or array of mixin configuration entries.
An entry can either be an object or a string.
The mixin configuration entry object has one required field config and an optional field environment.
The config field is a path to the mixin config file relative to the root of the mod JAR.
The environment field is the environment in which the config should be loaded. If no environment or '*' is set, the mixin config is loaded on both environments.
Providing a string is the same as providing a mixin configuration entry with a config field and no environment field.
Examples:
"mixin": {
"config": "modid.mixins.json",
"environment": "client"
}
"mixin": "modid.mixins.json"
"mixin": [
{
"config": "modid_client.mixins.json",
"environment": "client"
},
"modid.mixins.json"
]
A single or array of paths to accesswidener files relative to the root of the mod JAR.
1 nested properties
Defines the environment(s) that this mod should be loaded on. Valid values are:
"*"— All environments (default)"client"— The physical client"dedicated_server"— The dedicated server
Definitions
Points to an implementation of the entrypoint. For the default JVM language adapter, this can be in either of the following forms:
my.package.MyClass— A class to be instantiated and usedmy.package.MyClass::thing— A static field containing an instance of the entrypoint or a method handle for entrypoints that are functional interfaces
Points to an implementation of the LoaderPlugin interface. Can be in either of the following forms:
my.package.MyClass— A class to be instantiated and usedmy.package.MyClass::thing— A static field containing an instance of aLoaderPlugin
Defines a range of versions. It can make use of any of the following patterns:
*— Matches any version. Will fetch the latest version available if needed1.0.0— Matches the most recent version greater than or equal to version 1.0.0 and less than 2.0.0=1.0.0— Matches exactly version 1.0.0 and no other versions>=1.0.0— Matches any version greater than or equal to 1.0.0>1.0.0— Matches any version greater than version 1.0.0<=1.0.0— Matches any version less than or equal to version 1.0.0<1.0.0— Matches any version less than version 1.0.01.0.x— Matches any version with major version 1 and minor version 0.~1.0.0— Matches the most recent version greater than or equal to version 1.0.0 and less than 1.1.0^1.0.0— Matches the most recent version greater than or equal to version 1.0.0 and less than 2.0.0
Defines the environment(s) that this mod should be loaded on. Valid values are:
"*"— All environments (default)"client"— The physical client"dedicated_server"— The dedicated server