boot.json Reference
Estimated reading time: 4 minutesboot.json is the Mod manifest file and must be at the root of the zip archive. It declares basic info, file lists, and dependencies.
Field Reference
Required Fields
These fields must exist (even if empty arrays):
name— Mod nameversion— VersionstyleFileList— CSS file listscriptFileList— JS script listtweeFileList— Twee file listimgFileList— Image file list
Path Rules
- All paths in
boot.jsonare relative to the zip root (the directory containingboot.json). - Image paths in
imgFileListare resolved relative to the zip root. Avoid paths that might collide with other strings in game files, or image replacement may unexpectedly overwrite content. - File names within the same Mod must be unique. Avoid naming conflicts with the base game or other Mods where possible; overlapping paths will overwrite the original.
Changelog / Notes
- Removed:
imgFileReplaceList— Image replacement is now handled by ImageHookLoader, which intercepts image requests. Images that match base game paths are replaced automatically when listed inimgFileList. - Added
addonPlugin— Declare Addon plugin dependencies; unsatisfied dependencies produce warnings in the load log. - Added
dependenceInfo— Declare Mod/ModLoader/game version dependencies; unsatisfied dependencies produce warnings in the load log.
Version Constraint Syntax
dependenceInfo version supports:
Versions follow Semantic Versioning, validated with semver.
Tip
For GameVersion, only the main version is compared; anything after the first - is ignored.
