Forge mixins support

Supported MCreator versions
2023.3
2023.4
2024.1
2024.2
2024.3
2024.4
Tags / plugin type
Java plugin
mixin
Downloads:
4529
Upvotes: 34
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.5
-Ported to MCreator 2024.4

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
Forge mixins v1.5 (MCreator 2024.4 ONLY) - forge_mixins.zip Uploaded on: 01/01/2025 - 14:44   File size: 16.56 KB

Comments

This plugin appears to be broken in MCreator 2024.4, I continuously get the error

* What went wrong:
An exception occurred applying plugin request [id: 'org.spongepowered.mixin', version: '0.7.+']
> Failed to apply plugin 'org.spongepowered.mixin'.
> Could not find property 'minecraft', or 'patcher' on root project 'Test', ensure ForgeGradle is applied.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 180ms"

I've tried tweaking build.gradle to see if maybe it was being generated improperly or something, but the error persists, any help is appreciated, thank you.

For regular user this is worst plugin ever, like it can break your workspace just because it wants! MANY, MANY errors! This is literally unplayable

i got an error when i update to 2024.4:
* What went wrong:
An exception occurred applying plugin request [id: 'org.spongepowered.mixin', version: '0.7.+']
> Failed to apply plugin 'org.spongepowered.mixin'.
> Could not find property 'minecraft', or 'patcher' on root project 'mod', ensure ForgeGradle is applied.

There is a problem with the plugin and it means that you can no longer create mods for Forge 1.20.1. If you try it, it will always fail, regardless of whether you switch to Forge in a workspace or create a new one, it will always fail without exception

Emmm...
Replace
id 'org.spongepowered.mixin' version '0.7.+'
id 'net.minecraftforge.gradle' version '[6.0.16,6.2)'
to
id 'net.minecraftforge.gradle' version '[6.0.16,6.2)'
id 'org.spongepowered.mixin' version '0.7.+'

https://limewire.com/d/90d2046b-8a13-4d84-9ff0-e27c33a71363#MYTNztcQU7vbBXIT-J5bvRnh6sKPe2ICvV5WS3gDppc

fix version,
1.20.1 will be dropped.
I think you will like the last gift.

I did a forced update to 2024.4, it even works, but there is a serious problem. When you have the plugin in mcreator, it practically makes the main addition of 2024.4 useless, the animations in Java models.

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