User Tools

Site Tools


← Go back to the homepage

Fabric Tutorials



These pages are essential must-reads when modding with Fabric, and modding Minecraft in general, if you are new to modding, it is recommended you read the following.


Blocks and Block Entities

Data Generation

World Generation


These pages will guide you through Mojang's Brigadier library which allows you to create commands with complex arguments and actions.


These pages will guide you through using the many events included in Fabric API, and how to create your own events for you or other mods to use.



Mixins & ASM

These pages will guide you through the usage of SpongePowered's Mixin library, which is a highly complex topic. We recommend you read these pages thoroughly.



Contribute to Fabric


Exporting Mixin Classes

When debugging mixins, it's useful to be able to see the finalized classes with your changes and injects inserted. Mixin provides a flag that allows for this:


This should be placed in your VM options. Once your classes have been loaded, they will appear in \run\.mixin.out

Only Exporting Required Classes

Dumping every mixined class can be useful, but is often unnecessary and does slow down minecraft a bit. Mixin provides a convenient annotation for applying debug features to individual mixins:

@Debug(export = true) // Enables exporting for the targets of this mixin
public class MyMixin {
    // Mixin code here


Some classes may not appear until the game is running (or a world is loading).

tutorial/mixin_export.txt · Last modified: 2023/03/15 17:52 by mattidragon