An example addon for coffee
It is very important to download the latest SDK and keep it up to date, otherwise the game will crash if a breaking change was made since the last update
- Clone this repository
- Download the latest SDK and SDK sources
- Put them into the
libs/
folder and replace the ones currently there - Reload gradle
- Modify the addon to your hearts content
The SDK sources are technically not needed, but they are useful to have while developing.
To build the finished addon, just run the gradle build task. The jar will be in build/libs
, the one without the sources
suffix
- Open the pause menu
- Click the "Addons" button
- Click the "Open folder" button
- Drag the addon jar into the folder
- Wait up to 10 seconds for coffee to reload the addon list
- Click "enable" on the addon entry
- The addon is technically not a fabric mod, but it's useful to have it set up to be one, since you have the minecraft game decompiled. You can modify fabric.mod.json entirely, it's not going to be used anywhere.
- Mixins are not available for addons, because they aren't seen as mods, and can be reloaded while in-game. Mixin's dont work like that and won't ever either, so mixin's cant be used with addons. Similarly, the fabric ecosystem, too, is entirely capped off from the addons system.