2023-12-12 07:28:20 +01:00
2023-12-12 02:03:09 +01:00
2023-12-12 02:04:05 +01:00
2023-12-12 02:04:05 +01:00
2023-12-12 07:23:52 +01:00
2023-12-12 07:28:20 +01:00

UniMixins Example Mod

This is an example mod that shows how to get started with UniMixins. The buildscript uses GTNH's fork of ForgeGradle, and "modern" Gradle (6.9.1).

The following features are demonstrated:

  • Basic mixin
    • build.gradle
    • mixin/MixinGuiMainMenu.java
    • mixins.unimixinsexample.json
  • Early mixin (GTNHMixins)
    • build.gradle
    • mixins.unimixinsexample.early.json
    • ExampleCore.java
    • mixin/early/MixinGuiMainMenu.java
  • Late mixin (GTNHMixins)
    • build.gradle
    • mixins.unimixinsexample.late.json
    • ExampleLateMixins.java
    • mixin/late/MixinBaubles.java
  • MixinExtras
    • mixin/early/MixinGuiMainMenu.java

Setup

You must use Java 8 to build the mod. (You can force a specific Java version in your IDE settings, or by setting the JAVA_HOME environmental variable if you are building from the command line.)

Building the mod:

./gradlew build

Running via Gradle:

./gradlew runClient

To run using a native IDE run configuration, you must add the following program arguments...

--tweakClass org.spongepowered.asm.launch.MixinTweaker --mixin mixins.unimixinsexample.json

...And the following JVM argument:

-Dfml.coreMods.load=io.github.legacymoddingmc.unimixins.example.ExampleCore

License

This example mod is available under the CC0 license.

S
Description
No description provided
Readme
2.1 MiB
0 Stars 1 Watchers 0 Forks
Languages
Java 96.6%
Python 3%
Shell 0.4%