Skip to content

Instantly share code, notes, and snippets.

View LowLevelCodingCH's full-sized avatar
💭
OSDev is Great 🗿Btw loving christ✝️☦️

LowLevelCodingCH LowLevelCodingCH

💭
OSDev is Great 🗿Btw loving christ✝️☦️
View GitHub Profile

What are mixins?

Mixins are a way to inject code or change the minecraft source code directly and should be use with caution. If you can do a PR to Forge or use an event, try those first. If all else fails, then mixins may be a good option to look into. Here are some resources for mixins:

Now, I'll be honest, the official mixin doc is kind of terrible to learn from for most people. It's extremely dense and and really only helps people who already knows in-depth bytecode and stuff. But most modders aren't like that and just wants to do small stuff lol. But I'll give you the run-down here. There's a few kinds of mixins that you will encounter quite often.