Please make sure to make your pull requests off the development branch if you're adding new features. If there's
an important bug fix, still make your PR on development, but put it in a separate commit so I can cherry-pick it
into master branch. Thank you!
# Not recommended
git checkout -b development --track origin/development- IDE (One of them)
- IntelliJ IDEA (Recommended)
- Eclipse
- (Plugin) Lombok to help with things such as not having to manually create Getters and Setters.
- IntelliJ IDEA
- After installing the plugin
- Go to
Preferences - Go to
Build, Execution, Deployment - Go to
Compiler - Go to
Annotation Processors - Check ☑
Enable annotation processing.
- Go to
- After installing the plugin
- Eclipse
- IntelliJ IDEA
Note: You can use gradle instead of using gradle wrapper ./gradlew.
-
Clone the repository
-
Setup the development environment
./gradlew setupDecompWorkspace
-
Integrate the development environment with your IDE
- IntelliJ IDEA
./gradlew idea genIntellijRuns
- Eclipse (doesn't generate debug configuration)
./gradlew eclipse
- (Eclipse) Change Text File Encoding from
DefaulttoUTF-8- Go to
Window->Preferences->General->Workspace - Change
Text File EncodingfromDefaulttoUTF-8
- Go to
-
Make sure to add the VM argument to your debug configuration
-Dfml.coreMods.load=codes.biscuit.skyblockaddons.tweaker.SkyblockAddonsLoadingPlugin -
Include your Minecraft username and password as arguments in the debug configuration. In order, to login into Hypixel by your account.
--username "<username>" --password "<password>"Note: Don't share your password with anyone. We aren't going to ask you about your password!
-
You are now ready to build the mod!
- Build the mod
./gradlew build
Note
If your jar build is failing because the code is trying to access private methods or fields, this may be because someone added some new access transformers.
You may want to re-run the gradle task
./gradlew setupDecompWorkspace
so the access transformers are applied to the source code!
- (Optional) Run the Minecraft Forge client
- Using an IDE
- Run the debug configuration you created in "Getting Started."
- Using the command line
./gradlew runClient --args="--username <username> --password <password>" - Using an IDE