mouse0w0 / forge-mixin-example

An example for using Mixin in Minecraft Forge 1.12.2 & 1.8.9
The Unlicense
113 stars 19 forks source link

Mixins in development environment #1

Closed mchorse closed 4 years ago

mchorse commented 4 years ago

Hello, I think it's worth adding following to the minecraft {} section of build.gradle:

String resolved_core_config = mod_mixin_configs.replace('${mod_id}', mod_id);
clientRunArgs += "--mixin ${resolved_core_config}"
serverRunArgs += "--mixin ${resolved_core_config}"

As of right now, Mixins don't work in development environment without providing the JSON file explicitly.

mouse0w0 commented 4 years ago

This repository is just to show an example of using Mixin in Forge. You could modify it according to your needs.

I have no idea how to fix it. Welcome to submit pull request.

mchorse commented 4 years ago

Alright, I’ll do in a bit! Thank you for example though!