This document shows how to create addons, references, and use common arguments in the LoopModding system for Unity.
Addons are JSON files placed in the folder:
Mods/Addons/
{
"modName": "WelcomeMessage",
"eventName": "OnGameStart",
"PrintMessage": {
"chatMessage": "Welcome to the game!"
}
}
modName
: The name of your mod.eventName
: The event that triggers this addon (e.g., OnGameStart
).PrintMessage
) has an object of arguments.The mod manager will load all addon files and map actions to events.
References are reusable JSON entries stored in:
Mods/References/
These files contain key-value pairs that you can reference in your addon JSON files.
colors.json
):{
"warningColor": "#FF0000",
"infoColor": "#00FF00"
}