Nbt Crafting (Fabric)
Minecraft's vanilla recipe system is powerful, but it has a notable limitation: it cannot read or write NBT data. That means you cannot create a recipe that requires a damaged tool or outputs an item with custom enchantments, names, or lore. Nbt Crafting (Fabric) shatters that barrier, extending the JSON datapack and recipe framework to fully support NBT input and output. Whether you are a map maker, modpack developer, or server owner, this Fabric mod opens up a world of creative possibilities without requiring a single line of Java code.
What Makes Nbt Crafting (Fabric) Essential for Custom Recipes
At its core, Nbt Crafting (Fabric) reintroduces the data attribute into recipe JSON files. This attribute lets you define precise NBT conditions for ingredients and results. For example, you can require that an ingredient have a specific damage value, display name, or set of enchantments. The output can then carry over or generate new NBT, all while keeping the crafting interface clean and vanilla-styled. The mod does not introduce a scripting language; it simply enhances the existing datapack system, making it accessible to anyone comfortable with JSON.
Key Features That Expand Crafting
- NBT-sensitive ingredients: Require items with exact or ranged NBT values, such as a sword with less than 41 durability.
- Custom output NBT: Add display names, lore, enchantments, attributes, and more to crafted items.
- Brewing, cauldron, and anvil recipes: Go beyond the crafting table. Define custom potion recipes, cauldron interactions, and anvil combinations with NBT support.
- Recipe book enhancement: The recipe book now shows the output amount for all recipes, a small but handy quality-of-life improvement.
- Server-side friendly: The mod works entirely server-side, though minor visual glitches may appear on clients without the mod (e.g., missing output names in the recipe book).
How to Install Nbt Crafting (Fabric) for Minecraft
Getting started with Nbt Crafting (Fabric) is straightforward. First, ensure you are running Minecraft Java Edition with the Fabric mod loader. The mod supports versions from 1.16 up to 1.20.1, and you will also need the Fabric API installed. Here is a quick step-by-step guide:
- Download the Fabric installer from the official Fabric website and set up your game profile for the desired Minecraft version.
- Install Fabric API by placing its JAR file into the
modsfolder. - Download Nbt Crafting (Fabric) from a trusted source like CurseForge or Modrinth. Look for the file matching your Minecraft version.
- Place the downloaded JAR into the same
modsfolder. - Launch the game using your Fabric profile. The mod will be active immediately.
If you use the foxygame.net launcher, you can skip the manual steps entirely. The launcher’s built-in add-on catalog includes Nbt Crafting (Fabric), allowing a one-click install that automatically resolves dependencies and ensures you have the correct version for your modpack. This makes experimenting with NBT recipes hassle-free, especially when juggling multiple mods.
Creating Your First NBT Recipe
Once installed, you can start writing custom recipes using the standard datapack structure. Place your JSON files under data/<namespace>/recipes/. Here is a simple shapeless recipe that turns a damaged diamond sword and a diamond into a named, enchanted diamond axe:
{
"type": "crafting_shapeless",
"ingredients": [
{
"item": "minecraft:diamond_sword",
"data": {
"require": {
"Damage": "$..40"
}
}
},
{
"item": "minecraft:diamond"
}
],
"result": {
"item": "minecraft:diamond_axe",
"data": {
"display": {
"Name": "Battle Axe",
"Lore": ["A reforged weapon of power"]
},
"Enchantments": [
{
"id": "minecraft:sharpness",
"lvl": 10
}
]
}
}
}
The require block checks that the sword’s damage is between 0 and 40 (using the $..40 range syntax). The output then sets a custom name, lore, and a Sharpness X enchantment. This is just the beginning; you can craft conditional recipes for repairing items, upgrading tools, or even creating entirely new gameplay loops.
Advanced Recipe Types
Nbt Crafting (Fabric) also supports brewing recipes. You can define custom potion inputs and outputs with NBT, allowing for unique potion effects or ingredient requirements. Cauldron recipes let you specify interactions like washing dyed armor or creating tipped arrows in bulk. Anvil recipes enable NBT-sensitive repair and combination mechanics, perfect for modpacks or adventure maps. All these types follow the same JSON pattern, making them easy to learn and integrate.
Compatibility and Mod Support
Because the mod builds on the vanilla Ingredient class, it is compatible with most other mods that use the standard recipe system. If a mod adds custom items with NBT, you can reference them in your recipes without issue. However, mods that completely overhaul crafting (like custom crafting tables with unique mechanics) may not work seamlessly. For the best experience, pair Nbt Crafting (Fabric) with Cotton, a library mod that allows global datapack loading and recipe removal, giving you full control over the recipe landscape.
Server-Side Usage and Considerations
One of the standout features is that Nbt Crafting (Fabric) can run purely on the server. Clients do not need the mod to join and use custom recipes, though they will see a generic output in the recipe book instead of the exact NBT-modified item. The crafting result itself is correct, so gameplay remains unaffected. This makes it ideal for vanilla-friendly servers that want to add depth without requiring players to install anything extra.
Why Choose Nbt Crafting (Fabric) Over Alternatives
There are other mods that add custom crafting, but many rely on their own scripting systems or GUIs. Nbt Crafting (Fabric) stays true to the vanilla datapack philosophy, meaning your recipes are portable, version-agnostic, and easy to share. The mod is released under the CC0 license, so you can freely include it in modpacks or even reuse its code. While the project is currently looking for maintainers, the existing feature set is stable and well-documented on the wiki, making it a reliable choice for your next Minecraft project.
Whether you want to download Nbt Crafting (Fabric) to craft legendary weapons, design intricate potion systems, or simply learn how to install NBT-driven recipes, this mod delivers a lightweight yet powerful solution. Dive into the wiki, experiment with the examples, and transform your Minecraft world one recipe at a time.