Development setup¶
Requirements¶
- JDK 17
- Git
- An IDE with Gradle support; IntelliJ IDEA with the Minecraft Development plugin works well. The code uses Lombok.
Build and run¶
git clone https://github.com/Type-Omega/GregTech-Nexus-Addon.git
cd GregTech-Nexus-Addon
./gradlew build # compile and package
./gradlew runClient # start a development client
./gradlew runData # regenerate lang files, models and recipes
Before a pull request, run the same checks as the maintainers:
./gradlew spotlessApplyfixes the formatting.- Create
run/eula.txtwitheula=truebefore the first GameTest run. runGameTestServercan exit with 0 even when a recipe fails to parse: search the log forParsing error loading recipe gtna:.
Wiki¶
The catalog needs the datagen dump: run ./gradlew runData, then python3 tools/wiki/generate_machine_pages.py (add --no-render to keep the existing images). See Translating for the other generators.