TCLauncher

TCLauncher › All guides

Mixin error in Minecraft: what it is and how to fix it

“Mixin apply failed”, “Mixin transformation error” and other Mixin errors: why they happen in modded instances and how to find the mod behind them.

Updated:

Mixin error in Minecraft: what it is and how to fix it — TCLauncher

Mixin is the technology most Fabric, Quilt and NeoForge mods use to “hook” into the game's code. A mod says: “at this spot in the game, add my code”. When two mods want to change the same spot, or a mod expects a different game version, you get a Mixin error.

What the error looks like

  • Mixin apply failed modname.mixins.json:SomeMixin
  • MixinTransformerError: An unexpected critical error was encountered
  • InvalidInjectionException or Critical injection failure

The key part of these lines is the *.mixins.json file name. Its first part almost always points to the mod: sodium.mixins.json is Sodium, create.mixins.json is Create.

The three most common causes

  1. The mod isn't for this game version. Mixins are tied to specific game code: even 1.20.1 and 1.20.4 differ. A mod for another version almost always produces exactly this error. In “Mods” → “Installed” such a mod is marked “not for this version”.
  2. Two mods change the same spot. For example, two rendering mods, or two menu or inventory mods. This is a classic mod conflict.
  3. An outdated library. The mod needs a newer version of Fabric API, Architectury or another library than the one in the instance.

How to fix it

  1. Find the mod by the mixins file name in the report. If the name isn't obvious, the AI assistant will tell you which mod it belongs to.
  2. Update it and all libraries — the “Update all” button in the “Mods” tab. Often that's enough.
  3. Check the version: the mod must be for your exact game version and loader. The launcher's catalogue only shows compatible versions.
  4. If two mods appear in the report, turn one off with the “Disable” button and see whether the game starts.

Mixin and OptiFine

OptiFine changes the game in a completely different way from Mixin mods and doesn't get along with them well. If a Mixin error appeared after installing OptiFine, remove it. For performance and shaders on Fabric, Sodium with Iris is the better choice; see OptiFine or Sodium.

An error without a mod name

Sometimes the report has no clear mixins file. Then splitting in halves helps: disable half of the mods, start the game, and repeat until only the culprit remains. Details — in the article exit code 1.

Download TCLauncher — it only shows compatible mod versions and tells you which mod broke the launch.

FAQ

What does “Mixin apply failed” mean?

A mod couldn't hook into the game's code: it's for another version, it conflicts with another mod, or it needs a newer library.

How do I find which mod causes the Mixin error?

Look at the *.mixins.json file name in the report — its first part is usually the mod.

Can I play with OptiFine and Mixin mods?

Often not: they don't get along. For performance and shaders, Sodium with Iris is the better choice.

Download TCLauncher