-
-
Notifications
You must be signed in to change notification settings - Fork 4
Addons
Moros edited this page Mar 22, 2024
·
3 revisions
Bending has a platform agnostic addon loading system.
An addon example can be found here.
Addons must implement the Addon interface. It models a simple lifecycle composed of 3 phases in the following order:
Addon#load()
Addon#enable(Game game)
Addon#unload()
Directory layout:
plugins/config
│── bending
│ ├── bending.conf
│ ├── addons
+ │ │ └── MyAddon-1.0.0.jar
│ ├── data
│ │ └── ...
│ └── translations
│ └── ...
│── <other plugins/mods>
In Fabric, you can also load addons through a custom entrypoint supplied by Bending.
If you have a full mod you can add the following in your fabric.mod.json
:
"entrypoints": {
"bending": [ "com.example.mod.MyAddon" ]
}