template-forge-mixin-1.8.9
template-forge-mixin-1.8.9 copied to clipboard
A ready-to-use template for Forge 1.8.9 Development with Mixins integrated.
Template for Forge 1.8.9 + Mixins
Note: I have only tested this with IntelliJ, but it should work with Eclipse just fine.
Introduction
This repository includes a plug-and-play project template for 1.8.9 Forge Development with Mixins.
It contains an example mod with an example mixin (MixinMinecraft.java).
Setup
- Download or clone this repository
- Open it as a Project
- The gradle setup should be running automatically, if not, use
./gradlew - Run the gradle task
gradle setupDecompWorkspace(if you are getting the error "Heap Memory too low", increase the memory by adding-Xmx4Gor-Xmx8Gto the gradle task, depending on how much RAM you have; Right-Click the Gradle Task -> Modify Run Configuration... -> Modify Options -> Add VM Options) - If the setup is done, try to run the client with the example mod (use my prebuilt task
gradle buildCopyToRunModsAndRunif you want -> combines building, copying to the run mods folder and running) - Nice! You just setup your working environment for 1.8.9 Forge Development with Mixins! If everything worked correctly you should find the following three things in your console:
[ExampleMod] Injecting with IFMLLoadingPlugin.Mixin worked!DIRT BLOCK >> tile.dirt
Post-Setup
Do the TODOs that are marked in:
build.gradlesrc/main/java/com/example/examplemod/mixins/MixinLoader.java
Change the data in the resources/mcmod.info and rename and change the data of resources/mixins.examplemod.json
Need help?
If you followed these steps but something went wrong, you can open an issue or contact me (see contact options on my profile), I am happy to help!
License
You can read all the applying licenses in the file LICENSE.md
