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
.mod.zipfile from GitHub Releases - Install it via ModLoader's Mod manager. Ensure the framework and all its dependencies (ModLoader, ModLoaderGui, BeautySelectorAddon, etc.) are loaded correctly
The framework's alias is Simple Frameworks. If you have an older version of the Simple Framework installed, maplebirch will automatically disable it at startup to avoid conflicts.
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
- 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
