🇬🇧 English
🇬🇧 English
Appearance
🇬🇧 English
🇬🇧 English
Appearance
This page is written for version:
1.20.4
This page is written for version:
1.20.4
Before you start, you should have a basic understanding of developing with Java, and an understanding of Object-Oriented Programming (OOP).
If you are unfamiliar with these concepts, you may want to look into some tutorials on Java and OOP before you start modding, here are some of the resources that you can use to learn Java and OOP:
Before we start, let's go over some of the terms that you will encounter when modding with Fabric:
Fabric is a lightweight modding toolchain for Minecraft: Java Edition.
It is designed to be a simple and easy-to-use modding platform. Fabric is a community-driven project, and it is open-source, meaning that anyone can contribute to the project.
You should be aware of the four main components of Fabric:
Modding is the process of modifying a game in order to change its behavior or add new features - in the case of Minecraft, this can be anything from adding new items, blocks, or entities, to changing the game's mechanics or adding new game modes.
Minecraft: Java Edition is obfuscated by Mojang, making modification alone difficult. However, with the help of modding tools like Fabric, modding becomes much easier. There are several mapping systems that can assist in this process.
Loom remaps the obfuscated code to a human-readable format using these mappings, making it easier for modders to understand and modify the game's code. Yarn is a popular and excellent mappings choice for this, but other options exist as well. Each mapping project may have its own strengths or focus.
Loom allows you to easily develop and compile mods against remapped code, and Fabric Loader allows you to load these mods into the game.
Fabric API is a set of APIs and tools for mod developers to use when creating mods.
Fabric API provides a wide set of APIs that build on top of Minecraft's existing functionality - for example, providing new hooks and events for modders to use, or providing new utilities and tools to make modding easier - such as transitive access wideners and the ability to access internal registries, such as the compostable items registry.
While Fabric API offers powerful features, some tasks, like basic block registration, can be accomplished without it using the vanilla APIs.