Forge 1.8.9 Mod Template
This repository serves as a ready-to-use template for developing mods for Minecraft Forge 1.8.9. It comes pre-configured with Gradle 4.9, allowing you to jump straight into development.
Getting Started
Follow these steps to set up your development environment and run the mod:
-
Setup Decomp Workspace: Before you can start coding or running the client, you need to set up the ForgeGradle development environment. This task downloads and decompiles Minecraft, making it ready for mod development.
./gradlew setupDecompWorkspace -
Run Client: Once the decompiled workspace is set up, you can run a Minecraft client with your mod loaded. This is useful for testing your changes directly.
./gradlew runClient -
Build Mod JAR: When you're ready to package your mod for distribution, use the
jartask to build the mod's.jarfile. This file will be located in thebuild/libsdirectory../gradlew jar
Happy modding!
Troubleshooting
If you encounter issues with the setup or running the client, try these steps:
-
Clean Build: Sometimes, old build artifacts can cause problems. Cleaning the build directory can resolve these.
./gradlew clean -
Clean ForgeGradle Cache: If issues persist, especially after updating ForgeGradle or dependencies, clearing its cache can help.
./gradlew cleanCache