Please make sure to make your pull requests off the main branch if you're adding new features.
If there's an important bug fix, always make a PR, but off of the stable branch. Then that hotfix
can be rebased back into main afterward (with checkout main, & rebase stable).
# Not recommended
git checkout -b development --track origin/development- JDK
- JDK 21
Note
You can also look at the Gradle Compatibility Matrix to see the compatible Java version based on the currently used Gradle version instead of JDK 21.
- IDE (One of them)
- IntelliJ IDEA (Recommended)
- Our team uses IDEA. We may not be able to provide support for other IDEs.
- Eclipse
- IntelliJ IDEA (Recommended)
- (Plugin) Lombok to help with things such as not having to manually create Getters and Setters.
- IntelliJ IDEA (pre-installed)
- Eclipse
Note
You can use gradle instead of using gradle wrapper ./gradlew.
- Clone the repository
- Wait for the gradle project to import.
- Setup the development environment
./gradlew configureClientLaunch
- Integrate the development environment with your IDE
- IntelliJ IDEA
- Set the project SDK to Java 21 (instructions)
- Set the gradle JVM to 21 (instructions)
- Eclipse (doesn't generate debug configuration)
- Change Text File Encoding from
DefaulttoUTF-8- Go to
Window->Preferences->General->Workspace - Change
Text File EncodingfromDefaulttoUTF-8
- Go to
- IntelliJ IDEA
- 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 validateAccessWidenerso the access transformers are applied to the source code!
The build process produces these artifacts:
- SkyblockAddons-2.0.0-for-MC-1.21.5.jar (mod code, resources, shaded libraries, remapped for obfuscated environment)
- (Optional) Run the Minecraft Forge client
- Using IntelliJ IDEA
- Add the Java argument
-Dsba.data.online=trueif you want to use data files from the CDN. - Run the "Minecraft Client" debug configuration.
- Click the link in the console to log in with DevAuth.
- Add the Java argument
- See DevAuth/README for more details about configuration.
- Using IntelliJ IDEA