-
Notifications
You must be signed in to change notification settings - Fork 7
Getting started with Addons
To design an addon (separate from extension/contribution, see: Contributing.md), you must first start up a Forge mod as normal, this section presumes you know how to do that. (Use tutorials if not. Warning: if you don't understand what is going on, you may want to learn Gradle and Java first)
After you have started a mod, you will get a build.gradle file.
Simply open it, and you should see classpath 'net.minecraftforge.gradle:ForgeGradle:2.0-SNAPSHOT'
under buildscript.dependencies, you can either add to this section or to the dependencies section.
Add in the deobf jar file into your project and point to it using compile
or classpath
(in this case it won't matter) like this classpath HTTYMD1.7.10-10.13.2.1230F-1.0.2R-deobf.jar
(1.0.2 doesn't have a deobf, this is purely an example, also just a tutorial, you may have better methods)
You should be able to then start up your favorite IDE (after running gradle normally through the project) and you will have access to the mod's API system (which is mostly unusable currently).
It is suggested you use cpw's Optional annotation system if you don't feel like forcing this mod on users, along with Loader.isModLoaded(""), don't forget the dependency reliance in the @Mod annotation (otherwise your project may cause crashes out of nowhere)