fabric.mod.json
Metadata file used by the Fabric mod loader
| Type | object |
|---|---|
| File match |
fabric.mod.json
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/fabric-mod-json/latest.json |
| Source | https://www.schemastore.org/fabric.mod.json |
Validate with Lintel
npx @lintel/lintel check
Properties
The mod identifier
The mod version
The version of the fabric.mod.json schema
The environment where this mod will be loaded
The entrypoints used by this mod
6 nested properties
The entrypoint for all environments (classes must implement ModInitializer)
The entrypoint for the client environment (classes must implement ClientModInitializer)
The entrypoint for the server environment (classes must implement DedicatedServerModInitializer)
The entrypoint called just before the game instance is created (classes must implement PreLaunchEntrypoint)
The entrypoint for the data generator environment (classes must implement DataGeneratorEntrypoint)
The entrypoint for the Game Test environment (classes must implement FabricGameTest)
Contains an array of nestedJar objects
A string→string dictionary, connecting namespaces to LanguageAdapter implementations
Path to an access widener definition file
id→versionRange map for dependencies. Failure to meet these causes a hard failure
id→versionRange map for dependencies. Failure to meet these causes a soft failure (warning)
id→versionRange map for dependencies. Are not matched and are mainly used as metadata
id→versionRange map for dependencies. A successful match causes a soft failure (warning)
id→versionRange map for dependencies. A successful match causes a hard failure
Name of the mod
Description of the mod
The direct authorship information
Contributors to this mod
5 nested properties
Contact e-mail pertaining to the mod
IRC channel pertaining to the mod. Must be of a valid URL format
Project or user homepage. Must be a valid HTTP/HTTPS address
Project issue tracker. Must be a valid HTTP/HTTPS address
Project source code repository. Must be a valid URL
The license the mod uses
A map of namespace:id→value for custom data fields.
Definitions
Contact e-mail pertaining to the mod
IRC channel pertaining to the mod. Must be of a valid URL format
Project or user homepage. Must be a valid HTTP/HTTPS address
Project issue tracker. Must be a valid HTTP/HTTPS address
Project source code repository. Must be a valid URL
The environment where this mod will be loaded
A string value pointing to a path from the root of the JAR to a nested JAR which should be loaded alongside the outer mod JAR
A version range or an array of those that match versions. The following variants are supported:
*matches any version.- Ranges following NPM semver specification:
>=,>,=,<and<=- X-ranges to specify variable components, e.g.
1.x - tilde ranges that allow patch version changes, e.g.
~1.2.3 - caret ranges that allow up to minor version changes, e.g.
^1.2.3
- Exact string matches are always performed as well.
If an array of ranges is used, they're treated as in an "OR" relationship - only one of the ranges needs to match.