Home Commands Examples Getting Started With Scripts Global Keywords

Brewing

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import crafttweaker.api.recipe.Brewing;

Methods

Adds a new brewing recipe to the Brewing Stand.

script.zs
// Brewing.addRecipe(output as IItemStack, reagent as IIngredient, input as IIngredient)
brewing.addRecipe(<item:minecraft:dirt>, <item:minecraft:apple>, <item:minecraft:arrow>);
ParameterTypeDescription
Parameter
output
Type
IItemStack
Description
The item that the recipe outputs.
Parameter
reagent
Type
IIngredient
Description
The reagent that is put in the top slot of the Brewing Stand.
Parameter
input
Type
IIngredient
Description
The Ingredient that get brewed into the output. E.G. a Water bottle getting brewed into a Thick Potion.

Removes an ItemStack to ItemStack recipe from the Brewing Stand. These are mainly potions added by mods.

script.zs
// Brewing.removeRecipe(output as IItemStack, reagent as IItemStack, input as IItemStack)
brewing.removeRecipe(<item:minecraft:glass>, <item:minecraft:diamond>, <item:minecraft:stick>);
ParameterTypeDescription
Parameter
output
Type
IItemStack
Description
The ItemStack that the recipe outputs.
Parameter
reagent
Type
IItemStack
Description
The reagent that is put in the top slot of the Brewing Stand.
Parameter
input
Type
IItemStack
Description
The Ingredient that get brewed into the output. E.G. a Water bottle getting brewed into a Thick Potion.

Removes a Potion to Potion recipe from the Brewing Stand. These are mainly the default vanilla recipes.

script.zs
// Brewing.removeRecipe(output as Potion, reagent as IItemStack, input as Potion)
brewing.removeRecipe(<potion:minecraft:thick>, <item:minecraft:glowstone_dust>, <potion:minecraft:water>);
ParameterTypeDescription
Parameter
output
Type
Potion
Description
The Potion that the recipe outputs.
Parameter
reagent
Type
IItemStack
Description
The reagent that is put in the top slot of the Brewing Stand.
Parameter
input
Type
Potion
Description
The Potion ingredient that get brewed into the output. E.G. a Water bottle getting brewed into a Thick Potion.

Removes recipes from the Brewing Stand based on their Input (The ItemStack that goes in the bottom 3 slots). E.G. A water bottle in Vanilla brewing recipes

script.zs
// Brewing.removeRecipeByInput(input as IItemStack)
brewing.removeRecipeByInput(<item:minecraft:glass>);
ParameterTypeDescription
Parameter
input
Type
IItemStack
Description
The input of the recipes to remove.

Removes recipes from the Brewing Stand based on their input Potion. These are mainly the default vanilla recipes. The input potion is the potion that is in the top slot of the Brewing Stand.

script.zs
Brewing.removeRecipeByInputPotion(input as Potion)
ParameterTypeDescription
Parameter
input
Type
Potion
Description
The input potion of the recipes to remove.

Removes recipes from the Brewing Stand based on their output Potion. These are mainly the default vanilla recipes.

script.zs
// Brewing.removeRecipeByOutputPotion(output as Potion)
brewing.removeRecipeByOutputPotion(<potion:minecraft:swiftness>);
ParameterTypeDescription
Parameter
output
Type
Potion
Description
The potion of the recipes to remove.

Removes recipes from the Brewing Stand based on their Reagent (The item in the top slot).

script.zs
// Brewing.removeRecipeByReagent(reagent as IItemStack)
brewing.removeRecipeByReagent(<item:minecraft:golden_carrot>);
ParameterTypeDescription
Parameter
reagent
Type
IItemStack
Description
The reagent of the recipes to remove.