From 38e426e5ba7e729a554ef1e2fc4ec7a279cf1df4 Mon Sep 17 00:00:00 2001 From: makamys Date: Sat, 16 Dec 2023 04:07:01 +0100 Subject: [PATCH] Add some comments clarifying what each META-INF property does --- build.gradle | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index c135319..033f49d 100644 --- a/build.gradle +++ b/build.gradle @@ -134,15 +134,22 @@ def outRefMapFile = "${tasks.compileJava.temporaryDir}/mixins.${modid}.refmap.js jar { manifest { attributes ( - 'MixinConfigs': "mixins.${modid}.json", + // This will bootstrap Mixin and make your mod discoverable by it. 'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker', - // If these two are not set, Forge will not detect the mod, it will only run the mixins - 'FMLCorePluginContainsFMLMod': 'true', - 'ForceLoadAsMod': 'true', + // This is the normal way of registering Mixin configs. + // Mixin will automatically add any that are specified here. + 'MixinConfigs': "mixins.${modid}.json", - // Needed for FML plugin/early mixin loader + // To use the IEarlyMixinLoader interface, an FML plugin needs to be + // registered. 'FMLCorePlugin': 'io.github.legacymoddingmc.unimixins.example.ExampleCore', + + // If your mod also contains a Forge mod (marked by a @Mod annotation), + // these need to be set or it will get ignored. + // Note that a Forge mod is required for late mixins to work. + 'ForceLoadAsMod': 'true', + 'FMLCorePluginContainsFMLMod': 'true', ) }