-
Notifications
You must be signed in to change notification settings - Fork 24
Mixins
In Fabric, it's impossible to directly edit Minecraft code.
However, there's a way safer, more compatible way to do it, and it's called Mixins.
There are tons of documentation on these:
They might seem too complicated and limited at first glance, but they're really powerful and easy to understand after using them for a bit. The entirety of StationAPI Minecraft injections is also done through Mixins, ensuring compatibility with other mods.
It's also possible to mixin into other mods, mixin on specific conditions, or even use ASM through a mixin config plugin or FabricASM.
The conclusion is, while editing Minecraft code with Fabric might be a bit more complicated than directly editing the source, it's also a lot more compatible with other mods, more maintainable, and a lot less questionable from the point of Minecraft's EULA.