Skip to content
Moros edited this page Mar 22, 2024 · 3 revisions

Bending has a platform agnostic addon loading system.

An addon example can be found here.

Usage

Addons must implement the Addon interface. It models a simple lifecycle composed of 3 phases in the following order:

  1. Addon#load()
  2. Addon#enable(Game game)
  3. Addon#unload()

Installation

Any platform

Directory layout:

  plugins/config
  │── bending
  │   ├── bending.conf
  │   ├── addons
+ │   │   └── MyAddon-1.0.0.jar
  │   ├── data
  │   │   └── ...
  │   └── translations
  │       └── ...
  │── <other plugins/mods>

Fabric

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" ]
}
Clone this wiki locally