documentation:fabric_mod_json
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
documentation:fabric_mod_json [2019/05/26 12:22] – [Custom fields] falseresync | documentation:fabric_mod_json [2022/07/21 07:29] – [Mod loading] solidblock | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== fabric.mod.json ====== | ====== fabric.mod.json ====== | ||
+ | The fabric.mod.json file is a mod metadata file used by Fabric Loader to load mods. In order to be loaded, a mod must have this file with the exact name placed in the root directory of the mod JAR. | ||
===== Mandatory fields ===== | ===== Mandatory fields ===== | ||
Line 11: | Line 12: | ||
==== Mod loading ==== | ==== Mod loading ==== | ||
+ | * **provides**:Defines the list of ids of mod. Fabric Loader will treat these ids as mods that exist. | ||
* **environment**: | * **environment**: | ||
* **'' | * **'' | ||
Line 16: | Line 18: | ||
* **server** Runs on the server side. | * **server** Runs on the server side. | ||
* **entrypoints** Defines main classes of your mod, that will be loaded. | * **entrypoints** Defines main classes of your mod, that will be loaded. | ||
- | * There are 3 entry points for your mod: | + | * There are 3 default |
* **main** Will be run first. For classes implementing '' | * **main** Will be run first. For classes implementing '' | ||
* **client** Will be run second and only on the client side. For classes implementing '' | * **client** Will be run second and only on the client side. For classes implementing '' | ||
Line 27: | Line 29: | ||
] | ] | ||
</ | </ | ||
- | * If you're using any other language, | + | * If you're using any other language, |
- | " | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | ] | + | |
- | </ | + | |
* **jars** A list of nested JARs inside your mod's JAR to load. Before using the field, check out [[tutorial: | * **jars** A list of nested JARs inside your mod's JAR to load. Before using the field, check out [[tutorial: | ||
" | " | ||
Line 62: | Line 58: | ||
The key of each entry of the objects below is a Mod ID of the dependency. | The key of each entry of the objects below is a Mod ID of the dependency. | ||
- | The value of each key is a string or array of strings declaring supported version ranges. In the case of an array, an “OR” relationship is assumed - that is, only one range has to match for the collective range to be satisfied. | + | The value of each key is a string or array of strings declaring supported version ranges. In the case of an array, an "OR" |
In the case of all versions, * is a special string declaring that any version is matched by the range. In addition, exact string matches must be possible regardless of the version type. | In the case of all versions, * is a special string declaring that any version is matched by the range. In addition, exact string matches must be possible regardless of the version type. |
documentation/fabric_mod_json.txt · Last modified: 2023/12/27 12:53 by mineblock11