Forge mixins support

Supported MCreator versions
2023.3
2023.4
2024.1
2024.2
2024.3
Tags / plugin type
Java plugin
mixin
Downloads:
3237
Upvotes: 28
About the plugin

Forge mixins is a plugin that allows other java plugins to define mixins that their mod elements generate. This can be done by including a list of strings in the generatable element of the mod element, which is then picked up by this plugin and included in the list of mixins. The plugin does not add any new features by itself.


How does the plugin pick up mixins from mod elements?

In order to have your mod elements' mixins recognised by this plugin and included in the mixin list, your generatable element needs to include a public List<String> with the name mixins. This should be initialized with the mixin names in the generatable element's constructor.


The plugin also adds the "Mixin" mod element, which is a copy of the "Custom element" mod element, but is detected as a mixin. You can use this element to manually code new mixins you want to use.



This is a java plugin and therefore requires java plugins to be enabled.

 

Changelog

v1.4
-Ported to MCreator 2024.3 and neoforge 1.21.1

v1.3
-Ported to MCreator 2024.2 and neoforge 1.20.6

v1.2.2
-Fixed the import formatter breaking in some cases

v1.2.1
-Fixed the plugin breaking tags in 2024.1 in versions below 1.20.4

v1.2
-Fixed the mixin mod element generating in the wrong folder
-Support for MCreator 2024.1
-Support for neoforge 1.20.4

v1.1
-Added the mixin mod element
License
MIT License

Plugin downloads
Forge mixins v1.1 (MCreator 2023.3 ONLY) - forge_mixins.zip Uploaded on: 03/23/2024 - 11:12   File size: 18.9 KB
Forge mixins v1.2 (MCreator 2023.4 ONLY) - forge_mixins.zip Uploaded on: 04/13/2024 - 08:18   File size: 19.08 KB
Forge mixins v1.2.2 (MCreator 2024.1 ONLY) - forge_mixins_2.zip Uploaded on: 04/17/2024 - 15:30   File size: 22.92 KB
Forge mixins v1.3 (MCreator 2024.2 ONLY) - forge_mixins.zip Uploaded on: 07/20/2024 - 06:20   File size: 15.99 KB
Forge mixins v1.4 (MCreator 2024.3 ONLY) - forge_mixins.zip Uploaded on: 10/16/2024 - 17:10   File size: 16.31 KB

Comments

its not possible to add client side mixins .. the genrator overides the array.. plz add support for it 2024.2/2024.3

Hey when I try to load the game it crashes on run client and says this:

[09:49:24] [main/DEBUG] [mixin/]: Registering mixin config: mixins.endolution.json
Exception in thread "main" org.spongepowered.asm.launch.MixinInitialisationError: Error initialising mixin config mixins.endolution.json
at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.Config.create(

Hey, do you think is possible to see a support for 1.18.2 on 2023.3 please ? have a good one

So if I understood everything correctly- all I have to do is type List<Citadel> mixins? I'm very new to all of this and have no understanding of code. I just want to make an addon for a mod but it requires citadel.

can you please make with for 1.19.2 and 1.19.4? my entire workspace breaks if i have mixins and transfer to those versions

Hey friend, thank you for making this plugin. I have a question, I am trying to use mixins for Citadel; but I keep getting this error- Caused by: java.lang.IllegalArgumentException: The specified resource 'citadel.mixins.json' was invalid or could not be read - I was wondering what I need to do to correct it?

Are you planning on an update for MCreator 2024.2 / Minecraft 1.20.6?

hi could you add a way to set the mixins to client only, as if i change the mixins.json manually to make the mixins clientside, it gets overwritten.