Who should use Fabric
Fabric is a lightweight mod loader and toolchain for Minecraft Java modding. It is a good fit when you want fast updates, a smaller API surface, and direct control over your mod code.
2026 toolchain
The official Fabric documentation currently targets Minecraft 1.21.10. You should be comfortable with Java and object-oriented programming before starting.
Use a current JDK, an IDE such as IntelliJ IDEA or VS Code, Gradle, Fabric Loader, Fabric API when your feature needs it, and Loom for development/build tasks.
Create the project
Start from the official Fabric template or generator, then open the Gradle project in your IDE. Let Gradle finish importing before editing code; the first import can take a while.
Run the client
Use the generated run configuration or the Gradle task `runClient` to launch a development client. Keep a separate test world for your mod so failed experiments do not damage normal saves.
./gradlew runClient
./gradlew runServerFirst item plan
For a first mod, add one item, one item model, one texture, one translation entry, and one creative tab entry. Do not start with dimensions or complex rendering; prove your registry and asset pipeline first.
Build the mod
When the mod runs in development, build the JAR and test the shortest non-dev JAR from `build/libs` in a clean Fabric profile.
./gradlew buildOfficial sources checked
These are the official or primary references used to keep this tutorial current: