Contributing
Quick Note
Ever since Moulberry stopped working on NEU, other contributors have been working on new features and fixes for the mod. If you are interested in contributing yourself, make a pull request to NotEnoughUpdates/NotEnoughUpdates.
Before you contribute
- Please check your feature / bug wasn't already fixed in one of our releases, on the development branch or in an open pull request
- Consider joining our Discord to check in on the newest developments by other people, or to get help with problems you encounter.
- Please check that your feature idea complies with the Hypixel Rules. (See these Hypixel forum posts for extra information: Mods in SkyBlock, QoL Modifications, Modifications Sending Invalid Clicks)
- Make sure that your feature idea is not already implemented in another non-paid mod. (E.g. Dungeon Solver)
Setting up a development environment
Software prerequisites
- Install a Java Development Kit (You will need both version 8 and version 17) Eclipse Temurin Download for convenience, however, any JDK will do.
- Install Git. Windows download
- Install an IDE, such as Jetbrains IntelliJ IDEA.
Software configuration
- Fork the NEU repository using the fork button on top right of the page and name the repo NotEnoughUpdates.
- Clone the forked repository using
git clone https://github.com/<YourUserName>/NotEnoughUpdates. - Make sure to create new branches for features you are working on and not commit to the master branch of your repository.
- After you have committed all the necessary changes, make a pull request on that branch.
- Use the master branch as a way to pull the latest changes from the NEU repo.
- Import that folder as a Gradle Project in your IDE (IntelliJ should autodetect it as Gradle if you select the
NotEnoughUpdatesfolder in the Open dialog) - Set your project SDK to your 1.8 JDK. This can be done in the modules settings (CTRL+ALT+SHIFT+S) in IntelliJ.
- Set your gradle JVM to your 1.17 JDK. This can be done by searching for
gradle jvmin the CTRL+SHIFT+A dialog in IntelliJ. - The
Minecraft Clienttask should appear automatically after gradle loads. - If it doesn't you can run the
genIntelliJRunsorgenEclipseRunsgradle task. In IntelliJ that can be done in the Gradle tab on the right side of your IDE. - Optionally, run the
genSourcesgradle task. - Run the
Minecraft Clientto make sure that everything works. - Note: if you are using macOS, remove the
XstartOnFirstThreadJVM option
Logging into Hypixel in a development environment
Use DevAuth. You do not need to download the jar, just follow the configuration instructions in the DevAuth README
Hot Reloading
Hot Reloading is possible by launching using the IntelliJ debugger and having DCEVM 1.8 installed to your JVM. Then you can run a regular build and confirm the reload prompt. This can cause issues (especially with commands), so restarting is sometimes still necessary.
Warning: Depending on your system configuration, you may need to install DCEVM onto an existing JVM. In that case, you need to install a Java 1.8 JVM, specifically version 1.8u181 (although some newer versions up until 1.8u265 may work). These old JVM versions may require an Oracle account to download, and you can find them here.
For quicker hot swapping or if the above does not work, you can install Single Hotswap. With this, you can hot swap a single java class instead of rebuilding the entire project. This still requires DCEVM.
Creating a new Release
Minimized, for your convenience
### Preparing a release To prepare a release, first merge all the PRs that you want, and then tag that resulting merge commit using `git tag# Generate an RSA private key
openssl genpkey -out id_rsa.pem -algorithm RSA # This step can be skipped, if you want to re-use an existing *RSA* key.
# Convert your RSA key to pkcs8, without a password protection
openssl pkcs8 -in id_rsa.pem -outform DER -out myname.der -topk8 -nocrypt
# Generate a public key from your pkcs8 private key
openssl rsa -pubout -in id_rsa.pem -outform der -out myname.key
