CustomBrewRecipes
A fabric mod that allows developers to create new Brewing Recipes that also support custom non potion items and Components or NBT data.
Detailed instructions can be found in the javadoc, but all you have to do is calling
CustomBrewRecipeRegister.registerCustomRecipe()
and supply the items for the recipe.
Or if you need custom components, use the
CustomBrewRecipeRegister.registerCustomRecipeWithComponents()
and either use itemstacks that already have custom components or supply the nbt to the method.
There also is a NBT version of the method that saves stuff to the CustomData component.
You can also check for the presence of component types (or nbt-fields) and not their values!
CustomBrewRecipeRegister.registerCustomRecipeWithComponentPrescence()
NB: The output item will still need to have the whole ComponentMap/NBT, since it's the one which is going to be created!
You can also check for the presence of field/componet and specific value! You will need to use
CustomBrewRecipeRegister.registerCustomRecipeWithComponentType();
NB: The output item will still need to have the whole ComponentMap/NBT, since it's the one which is going to be created!
Setup
You can add it to your project by adding in your build.gradle:
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation "maven.modrinth:custombrewrecipes:<version>"
}
License
This mod is available under the CC0 license.
How to Install CustomBrewRecipes (Mod)
CustomBrewRecipes by Emafire003 is verified for Fabric, Neoforge, Quilt across Minecraft versions 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4 (latest release: 1.3.2-neo, file size: 13 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4) and platform (Fabric, Neoforge, Quilt).
- Make sure you have the compatible loader or environment installed for Fabric, Neoforge, Quilt.
- Move the downloaded CustomBrewRecipes file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Fixed a bug where registering multiple recipes with the same items (in input, ingredient and output) with different NBT resulted in only one recipe being used
- Now you can also check for the presence of field and specific value! You will need to use
CustomBrewRecipeRegister.registerCustomRecipeNbtField();
- Improved the way recipes with NBT are stored
- Added option to register recipes that check only for the presence of an NBT-field in the input & ingredient items.
