Repository navigation
Adding mixins
This guide assumes you've already created and setup an Avoid project.
§ Adding mixins with the Avoid Framework
WARNING: Mixins in Avoid do not run on Sponge and Paper!
-
Add the
mixinsfield to your avoid.mod.json file;
Like this:

-
Create the
mymod.mixins.jsonfile in your project resources root;
It should be like the following:{ "required": true, "minVersion": "0.8", "package": "com.example.mymod.mixin", "compatibilityLevel": "JAVA_21", "mixins": [ ], "client": [ ], "injectors": { "defaultRequire": 1 }, "overwrites": { "requireAnnotations": true }, "mixinextras": { "minVersion": "0.5.3" } } -
As an optional step, you may install the Minecraft Dev extension if you're using IntelliJ IDEA.
©️ Copyright 2026 Olafcio (on behalf of the AvoidLib org)
📝 All Rights Reserved
Avoid Framework
🏚️ 1. Home
📽️ 2. Creating your mod
🌄 3. Adding assets to your mod
🧊 4. Creating a block
💧 5. Creating a fluid
✏️ 6. Creating an item
🎯 7. Creating an entity selector
🤖 8. Creating a command
⌨️ 9. Creating a keybind
🐺 10. Creating an entity
🌫️ 11. Creating a fog
🔩 12. Creating an item component
🔮 13. Creating an effect
📚 14. Language support & adding libraries
🚩 15. Deprecation rules
⏳ 16. Loading philosophy
🔀 17. Adding mixins
🌀 18. Creating a subloader
Migrations