Skip to content

Build and test with friends

Set up the addon information

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
  "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:

1
2
3
4
5
reobf {
    jar {
        useNotchSrg()
    }
}

Your final jar will be placed in ./build/libs/modid-1.0.jar