Skip to content

Build and test with friends

Warning

This page is for the LabyMod 3 Addon API, which is no longer maintained nor supported. Visit https://wiki.labymod.net/pages/addon/ for the LabyMod 4 Addon API Wiki.

Set up the addon information

To set some information in your addon settings you have to add the following lines in your addon.json:

{
  "uuid": "%uuid%",
  "name": "Name of your addon",
  "mainClass": "path.to.main",
  "description": "This is my first addon!",
  "version": 1,
  "author": "YOUR_NAME",
  "category": 1,
  "icon": "http://link-to-icon.net/icon64x64.png"
}

Note

Category ids:
1 - GUI
2 - Tools
3 - Server Support
4 - Graphics

Warning

These information are not necessary in the step Publish your addon.

Build your addon with forge

Before you execute ./gradlew build to build the addon, make sure you added these lines of code in your build.gradle:

reobf {
    jar {
        useNotchSrg()
    }
}
Your final jar will be placed in ./build/libs/modid-1.0.jar