Getting Started
Estimated reading time: 3 minutesThis guide explains how to add maplebirchFramework as a dependency to your Mod and use it.
Installing the Framework
- Download the framework from GitHub Releases (current recommended asset:
maplebirch-0.5.9.7-v3.2.5.modpackor the matching.mod.zip) - Install it via ModLoader's Mod manager. Ensure the framework and all its dependencies (ModLoader, ModLoaderGui, BeautySelectorAddon, etc.) are loaded correctly
The framework declares the alias Simple Frameworks. If players still have the legacy Simple Framework mod installed, maplebirch disables it at startup to avoid conflicts.
From v3.2.5 onward (on game version >= 0.5.9.7) only two compatibility globals remain: window.simpleFrameworks.addto (mapped to maplebirch.tool.addTo) and the TimeEvent helper class (internally bridged to maplebirch.dynamic.regTimeEvent). Other legacy shortcut globals were removed—new mods should call the maplebirch APIs directly.
The framework also pins GameVersion to >=0.5.9.7. Mirror both GameVersion and maplebirch constraints in your own boot.json (prefer >=3.2.5).
The framework itself is not encrypted. Package your mod as .modpack with dol-mod-protection-tools—see Mod protection & credentials.
Declaring Dependencies
Declare the version constraint for maplebirch in your Mod's boot.json through dependenceInfo:
ModLoader will check the version constraint when loading; if it is not satisfied, the Mod will not be loaded.
Registering with the Framework
Register your Mod with maplebirch's AddonPlugin system via the addonPlugin field in boot.json:
The following configuration options are supported in params:
Minimal Example
The following is a complete boot.json example that depends on maplebirch:
language: true means all language files under the translations/ directory are imported automatically. Place your translation files in the following structure:
Difference Between module and script
module— Files are executed immediately after theinject_earlyphase completes. The framework itself may not be fully initialized at this point. Use for scenarios that require very early module registrationscript— Files are executed after all Mods have registered with AddonPlugin. The framework is fully initialized at this point. Recommended for most use cases
Verifying Framework Load
Check whether the framework is available in your script:
Next Steps
- Changelog — v3.2.5 and earlier release summaries
- Core Architecture — Deep dive into MaplebirchCore and module system
- AddonPlugin System — Detailed usage of each params configuration option
- Variables and Game State — Managing the
V.maplebirchnamespace
