Interface ForgeModTOMLData
This file defines the metadata of your mod. Its information may be viewed by users from the main screen of the game through the Mods button. A single info file can describe several mods.
The mods.toml file is formatted as TOML, the example mods.toml file in the MDK provides comments explaining the contents of the file. It should be stored as src/main/resources/META-INF/mods.toml. A basic mods.toml, describing one mod, may look like this:
🏷️ Properties
authors
authors: stringThe authors to this mod
Defined in: packages/mod-parser/forge.ts:176
credits
credits: stringA string that contains any acknowledgements you want to mention
Defined in: packages/mod-parser/forge.ts:172
dependencies
dependencies: { mandatory: boolean; modId: string; ordering: "NONE" | "BEFORE" | "AFTER"; side: "BOTH" | "CLIENT" | "SERVER"; versionRange: string }[]A list of dependencies of this mod
Defined in: packages/mod-parser/forge.ts:184
description
description: stringA description of this mod
Defined in: packages/mod-parser/forge.ts:180
displayName
displayName: stringThe user - friendly name of this mod
Defined in: packages/mod-parser/forge.ts:156
displayURL
displayURL: stringA link to the mod’s homepage
Defined in: packages/mod-parser/forge.ts:164
issueTrackerURL
issueTrackerURL: stringA URL to refer people to when problems occur with this mod
Defined in: packages/mod-parser/forge.ts:198
loaderVersion
loaderVersion: stringA version range to match for said mod loader - for regular FML
Defined in: packages/mod-parser/forge.ts:194
logoFile
logoFile: stringThe filename of the mod’s logo.It must be placed in the root resource folder, not in a subfolder
Defined in: packages/mod-parser/forge.ts:168
modid
modid: stringThe modid this file is linked to
Defined in: packages/mod-parser/forge.ts:148
modLoader
modLoader: stringThe name of the mod loader type to load - for regular FML
Defined in: packages/mod-parser/forge.ts:190
provides
provides: string[]Defined in: packages/mod-parser/forge.ts:186
updateJSONURL
updateJSONURL: stringThe URL to a version JSON
Defined in: packages/mod-parser/forge.ts:160
version
version: stringThe version of the mod.It should be just numbers seperated by dots, ideally conforming to Semantic Versioning
Defined in: packages/mod-parser/forge.ts:152