Home Commands Examples Getting Started With Scripts Global Keywords
BracketHandlers ForgeBracketDumpers ForgeBracketValidators

Brewing

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

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

Description

Members

addRecipe(output as IItemStack, reagent as IIngredient, input as IIngredient)
Adds a new brewing recipe to the Brewing Stand.
script.zs
// CTBrewing.addRecipe(output as IItemStack, reagent as IIngredient, input as IIngredient);
myCTBrewing.addRecipe(<item:minecraft:dirt>, <item:minecraft:apple>, <item:minecraft:arrow>);

Parameters:

output Type: IItemStack - The item that the recipe outputs.
reagent Type: IIngredient - The reagent that is put in the top slot of the Brewing Stand.
input Type: IIngredient - The Ingredient that get brewed into the output. E.G. a Water bottle getting brewed into a Thick Potion.
removeRecipe(output as Potion, reagent as IItemStack, input as Potion)
Removes a Potion to Potion recipe from the Brewing Stand. These are mainly the default vanilla recipes.
script.zs
// CTBrewing.removeRecipe(output as Potion, reagent as IItemStack, input as Potion);
myCTBrewing.removeRecipe(<potion:minecraft:thick>, <item:minecraft:glowstone_dust>, <potion:minecraft:water>);

Parameters:

output Type: Potion - The Potion that the recipe outputs.
reagent Type: IItemStack - The reagent that is put in the top slot of the Brewing Stand.
input Type: Potion - The Potion ingredient that get brewed into the output. E.G. a Water bottle getting brewed into a Thick Potion.
removeRecipe(output as IItemStack, reagent as IItemStack, input as IItemStack)
Removes an ItemStack to ItemStack recipe from the Brewing Stand. These are mainly potions added by mods.
script.zs
// CTBrewing.removeRecipe(output as IItemStack, reagent as IItemStack, input as IItemStack);
myCTBrewing.removeRecipe(<item:minecraft:glass>, <item:minecraft:diamond>, <item:minecraft:stick>);

Parameters:

output Type: IItemStack - The ItemStack that the recipe outputs.
reagent Type: IItemStack - The reagent that is put in the top slot of the Brewing Stand.
input Type: IItemStack - The Ingredient that get brewed into the output. E.G. a Water bottle getting brewed into a Thick Potion.
removeRecipeByInput(input as IItemStack)
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
// CTBrewing.removeRecipeByInput(input as IItemStack);
myCTBrewing.removeRecipeByInput(<item:minecraft:glass>);

Parameters:

input Type: IItemStack - The input of the recipes to remove.
removeRecipeByInputPotion(input as Potion)
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
// CTBrewing.removeRecipeByInputPotion(input as Potion);
myCTBrewing.removeRecipeByInputPotion(myPotion);

Parameters:

input Type: Potion - The input potion of the recipes to remove.
removeRecipeByOutputPotion(output as Potion)
Removes recipes from the Brewing Stand based on their output Potion. These are mainly the default vanilla recipes.
script.zs
// CTBrewing.removeRecipeByOutputPotion(output as Potion);
myCTBrewing.removeRecipeByOutputPotion(<potion:minecraft:swiftness>);

Parameters:

output Type: Potion - The potion of the recipes to remove.
removeRecipeByReagent(reagent as IItemStack)
Removes recipes from the Brewing Stand based on their Reagent (The item in the top slot).
script.zs
// CTBrewing.removeRecipeByReagent(reagent as IItemStack);
myCTBrewing.removeRecipeByReagent(<item:minecraft:golden_carrot>);

Parameters:

reagent Type: IItemStack - The reagent of the recipes to remove.