User Tools

Site Tools


Sidebar

← Go back to the homepage

Fabric Tutorials

Setup

Basics

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.

Items

Blocks and Block Entities

Data Generation

World Generation

Commands

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

Events

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.

Entities

Fluids

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.

Miscellaneous

Yarn

Contribute to Fabric

tutorial:loader04x

:!: This page is irrelevant, most mods are now on Loader 0.4.x, and should be removed from the sidebar and kept archived for miscellaneous use.

Loader 0.4.x and You!

This tutorial lists what you need to know to update your mods to Loader 0.4.x (and beyond!?).

Schema changes

The schema has changed somewhat. Throughout 0.4.x, the schemaVersion 0 will be supported, but no such promises are made for 0.5.x and beyond.

Useful sources:

Nested JARs

There has been a lot of confusion about what nested JARs are meant to be used for.

Nested JARs are:

  • a solution to provide dependencies which are in the form of Fabric mods, allowing the loader to pick the best version matching a given modpack's sets of dependencies,
  • a solution that allows you turning libraries into Fabric mods and avoiding conflicts where they are not cleanly shadowable or where there is good reason for a Fabric mod developer to be the authoritative versioning source,
  • a potential solution to cleanly package subprojects/submodules of a mod in one “combined” JAR, while also allowing using them separately.

Nested JARs are not:

  • meant to be used on non-mod Java libraries,
  • always the best solution for libraries which can be safely shadowed under a different package. Keep in mind that a Fabric mod ID can only exist once, meaning that potential version conflicts could prevent a pack from loading - shadowed libraries do not have this problem.

In doubt, refer to this helpful chart:

Incompatibilities

  • If your mod is using plugin-loader, please abandon it and adopt the entrypoints system instead.
tutorial/loader04x.txt · Last modified: 2022/11/05 12:05 by jab125