← Назад к ресурсам

CustomBrewRecipes

A fabric mod that makes it easy for developers adding non-potion brewing recipes that support NBT data!

Modrinth

Описание

# 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 ```java CustomBrewRecipeRegister.registerCustomRecipe() ``` and supply the items for the recipe. Or if you need custom components, use the ```java 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! ```java 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 ```java 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! [![nodecraft](https://github.com/user-attachments/assets/66b45404-d8c6-497b-8cc8-ac08adfae0de)](https://nodecraft.com/r/emalightdev) ## Setup You can add it to your project by adding in your build.gradle: ```gradle repositories { maven { name = "Modrinth" url = "https://api.modrinth.com/maven" content { includeGroup "maven.modrinth" } } } dependencies { modImplementation "maven.modrinth:custombrewrecipes:" } ``` ## License This mod is available under the CC0 license.