Formatter Validator Minifier Escape / Unescape JSON ↔ String JSON ↔ YAML JSON → CSV NDJSON / JSON Lines JSON → Types JSON ↔ XML JSON Diff JSON Patch Canonicalize (RFC 8785) Schema Validator Schema Generator JSONPath Tester JWT Decoder JSON Errors Schemas More Tools
JSONTools / Schema registry / fabric.mod.json
Schema registry

fabric.mod.json

Metadata file used by the Fabric mod loader

fabric.mod.json

Check your file against this schema

Opens the validator with this schema already loaded. Paste your fabric.mod.json and it validates in your browser — nothing is uploaded.

Validate a fabric.mod.json → View raw schema

Fields

Generated directly from the schema, following local $refs, to two levels of nesting.

Field Type Description
idrequiredstringThe mod identifier
versionrequiredstringThe mod version
schemaVersionrequiredintegerThe version of the fabric.mod.json schema
environmentstringThe environment where this mod will be loaded
one of: "*", "client", "server"
entrypointsobjectThe entrypoints used by this mod
entrypoints.mainarrayThe entrypoint for all environments (classes must implement ModInitializer)
entrypoints.clientarrayThe entrypoint for the client environment (classes must implement ClientModInitializer)
entrypoints.serverarrayThe entrypoint for the server environment (classes must implement DedicatedServerModInitializer)
entrypoints.preLauncharrayThe entrypoint called just before the game instance is created (classes must implement PreLaunchEntrypoint)
entrypoints.fabric-datagenarrayThe entrypoint for the data generator environment (classes must implement DataGeneratorEntrypoint)
entrypoints.fabric-gametestarrayThe entrypoint for the Game Test environment (classes must implement FabricGameTest)
jarsarrayContains an array of nestedJar objects
languageAdaptersobjectA string→string dictionary, connecting namespaces to LanguageAdapter implementations
mixinsarray
accessWidenerstringPath to an access widener definition file
dependsobjectid→versionRange map for dependencies. Failure to meet these causes a hard failure
recommendsobjectid→versionRange map for dependencies. Failure to meet these causes a soft failure (warning)
suggestsobjectid→versionRange map for dependencies. Are not matched and are mainly used as metadata
conflictsobjectid→versionRange map for dependencies. A successful match causes a soft failure (warning)
breaksobjectid→versionRange map for dependencies. A successful match causes a hard failure
namestringName of the mod
descriptionstringDescription of the mod
authorsarrayThe direct authorship information
contributorsarrayContributors to this mod
contactobject
contact.emailstringContact e-mail pertaining to the mod
contact.ircstringIRC channel pertaining to the mod. Must be of a valid URL format
contact.homepagestringProject or user homepage. Must be a valid HTTP/HTTPS address
contact.issuesstringProject issue tracker. Must be a valid HTTP/HTTPS address
contact.sourcesstringProject source code repository. Must be a valid URL
licenseoneOfThe license the mod uses
icononeOf
customobjectA map of namespace:id→value for custom data fields.

What we found in this schema

Specification sections for the keywords in this schema

Keyword Document Section
$idJSON Schema Core, draft 2020-12§8.2.1 — The "$id" Keyword
$refJSON Schema Core, draft 2020-12§8.2.3.1 — Direct References with "$ref"
$schemaJSON Schema Core, draft 2020-12§8.1.1 — "$schema"
additionalPropertiesJSON Schema Core, draft 2020-12§10.3.2.3 — "additionalProperties"
defaultJSON Schema Validation, draft 2020-12§9.2 — "default"
descriptionJSON Schema Validation, draft 2020-12§9.1 — "title" and "description"
enumJSON Schema Validation, draft 2020-12§6.1.2 — "enum"
itemsJSON Schema Core, draft 2020-12§10.3.1.2 — "items"
oneOfJSON Schema Core, draft 2020-12§10.2.1.3 — "oneOf"
patternJSON Schema Validation, draft 2020-12§6.3.3 — "pattern"
propertiesJSON Schema Core, draft 2020-12§10.3.2.1 — "properties"
requiredJSON Schema Validation, draft 2020-12§6.5.3 — "required"
typeJSON Schema Validation, draft 2020-12§6.1.1 — "type"

Documents

Attribution

This schema comes from SchemaStore, distributed under the Apache License 2.0. Copyright 2015–present Mads Kristensen and contributors. View the original file. The field table and audit on this page are generated by JSONTools.tools; the schema itself is unmodified.

← All schemas