This is the grug mod loader for Minecraft.
See my blog post for an introduction to the grug modding language.
This mod currently only works in Minecraft 1.20.6, for Minecraft Forge 50.1.0.
You must be on Linux, and are recommended to use VS Code.
See ubuntu.com its guide for installing the latest version of Java.
- Run
git submodule update --initto clone the subrepositories. - Press
Ctrl+Shift+Bto open the task menu, and selectRecompile. - Run
./gradlew runClientto launch the game, or pressF5if you want to also attach VS Code's debugger.
See the Getting Started with Forge page from Forge's website for more information.
If you get exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 68, you'll need to update gradle/wrapper/gradle-wrapper.properties its distributionUrl, using the table from this Stack Overflow answer based on what java --version prints for you.
If you get Error getting artifact: net.minecraftforge:forge:1.20.6-50.1.0_mapped_official_1.20.6:null@jar from MinecraftUserRepo, you should try recloning this repository.
Run ./gradlew jacocoTestReport.
You can view the coverage results in your browser by opening the build/reports/jacoco/test/html/index.html file it generates.
If the coverage results are not updating, you can fix that by deleting the build/jacoco/test.exec file that gets generated.
- Edit
run/server.properties, and change theonline-mode=falsetoonline-mode=true. - Edit
run/eula.txtitseula=falsetoeula=true, making sure you read the eula. - In terminal 1, run
./gradlew runServer. - In terminal 2, run
./gradlew runClient. - In the client, click the
Multiplayerbutton in the main menu, and use theAdd Serverbutton to add a server withServer Addressvalue127.0.0.1(usinglocalhostdoes not work). - Join the server.