Better Brewing

Better Brewing

1.6k Downloads

  

This mod adds a more immersive brewing system alternative to Brewing Stands, with the use of the new Brewing Cauldron. You can craft the new Brewing Cauldron by crafting a Cauldron with a Blaze Powder. All potion recipes for all potion effects are entirely configurable through the use of data packs and the configuration file, and it works for cross compatibility with all mods effects! All vanilla potions can be brewed by default, and have data tags associated to them

By right clicking a Brewing Cauldron, you will open the new Brewing Cauldron GUI. You can insert up to 4 ingredients. Based on the item tag the ingredients have, if two or more of them have the same brewing tag(Set in the configuration file), it will add that effect to the created potion! You can either set a custom name for the potion, or it will default to the value(s) from the configuration file. By clicking brew in the Brewing Cauldron GUI, if it is possible, you will brew a potion into the cauldron. Then, right click the Brewing Cauldron with an empty bottle to collect the potion from the Brewing Cauldron! The amount of potions brewed corresponds to the water level of the Brewing Cauldron.

You can add a potion catalyst into the cauldron to get different effect. By defaut, redstone adds duration, and glowstone amplifies the potion. These recipes are also set in the configuration file. Gunpowder will always make a splash potion, and dragon's breath will always makes a lingering potion, and this is not configurable.

 Mixing potions broke in the last updates while I was doing other things and I didn't notice(v1.0.3-1.0.4). The issue is fixed in v1.0.5.

  

Notes:

Item tags for potions must be set in a data pack if you wish to add new ones. This allows for creating new data tags for modded potion effects, and setting them in the configuration file. The CustomPotionColor can be set in either hexadecimal code ex:(#100000), or decimal code ex:(1048576).

  •  I need to balance the mod's default data tags still, so please if you have suggestions on that put them below!
  • The name of this mod is also subject to change, I was unsure of what to call it as of right now, let me know if you have any suggestions! 
    • Config values are set with the following format: "IngredientEffectTag;CustomPotionEffects;CustomPotionColor;SingleEffectPotionName;MultipleEffectPotionName" 
      The best example of this is that uses two potion effects (separated by a comma) :
      "es_brewing:brewing_turtle_master;{Id:2,Amplifier:3,Duration:400},{Id:11,Amplifier:2,Duration:400};CustomPotionColor:7822692;Potion of the Turtle Master;Slowness IV and Resistance III"

Cauldron Brewing GUI:

 

Default Config File:


["Potion List"]
#
#Determines the potion variables defined by an items tags set to ingredients with no catalysts.
#
#Note: Dragon's Breath and Gunpowder as a catalyst will still turn your potion into a lingering or splash potion no matter what.
potionArray = ["es_brewing:brewing_swiftness;{Id:1,Amplifier:0,Duration:3600};CustomPotionColor:8303306;Potion of Swiftness;Swiftness",
"es_brewing:brewing_slowness;{Id:2,Amplifier:0,Duration:1800};CustomPotionColor:6057603;Potion of Slowness;Slowness",
"es_brewing:brewing_turtle_master;{Id:2,Amplifier:3,Duration:400},{Id:11,Amplifier:2,Duration:400};CustomPotionColor:7822692;Potion of the Turtle Master;Slowness IV and Resistance III",
"es_brewing:brewing_strength;{Id:5,Amplifier:0,Duration:3600};CustomPotionColor:9839908;Potion of Strength;Strength",
"es_brewing:brewing_healing;{Id:6,Amplifier:0};CustomPotionColor:16524580;Potion of Healing;Healing",
"es_brewing:brewing_poison;{Id:19,Amplifier:0,Duration:900};CustomPotionColor:5215794;Potion of Poison;Poison",
"es_brewing:brewing_leaping;{Id:8,Amplifier:0,Duration:3600};CustomPotionColor:2358349;Potion of Leaping;Leaping",
"es_brewing:brewing_regeneration;{Id:10,Amplifier:0,Duration:900};CustomPotionColor:13721262;Potion of Regeneration;Regeneration",
"es_brewing:brewing_water_breathing;{Id:13,Duration:3600};CustomPotionColor:3101852;Potion of Water Breathing;Water Breathing",
"es_brewing:brewing_night_vision;{Id:16,Duration:3600};CustomPotionColor:2105508;Potion of Night Vision;Night Vision",
"es_brewing:brewing_invisibility;{Id:14,Duration:3600};CustomPotionColor:8488341;Potion of Invisibility;Invisibility",
"es_brewing:brewing_harming;{Id:7,Amplifier:0};CustomPotionColor:4459017;Potion of Harming;Harming",
"es_brewing:brewing_slow_falling;{Id:19,Duration:1800};CustomPotionColor:16577749;Potion of Slow Falling;Slow Falling",
"es_brewing:brewing_weakness;{Id:18,Duration:1800};CustomPotionColor:4804169;Potion of Weakness;Weakness",
"es_brewing:brewing_fire_resistance;{Id:12,Duration:3600};CustomPotionColor:15244603;Potion of Fire Resistance;Fire Resistance"]

["Potion List Glowstone Catalyst"]
#
#Determines the potion variables defined by an items tags set to ingredients defined by a Glowstone Catalyst.
potionArrayTwo = ["es_brewing:brewing_swiftness{Id:1,Amplifier:1,Duration:3600};CustomPotionColor:8303306;Potion of Swiftness II;Swiftness II",
"es_brewing:brewing_slowness;{Id:2,Amplifier:1,Duration:1800};CustomPotionColor:6057603;Potion of Slowness II;Slowness II",
"es_brewing:brewing_turtle_master;{Id:2,Amplifier:5,Duration:400},{Id:11,Amplifier:3,Duration:400};CustomPotionColor:7822692;Potion of the Turtle Master II;Slowness VI and Resistance IV",
"es_brewing:brewing_strength;{Id:5,Amplifier:1,Duration:3600};CustomPotionColor:9839908;Potion of Strength II;Strength II",
"es_brewing:brewing_healing;{Id:6,Amplifier:1};CustomPotionColor:16524580;Potion of Healing;Healing II",
"es_brewing:brewing_poison;{Id:19,Amplifier:1,Duration:900};CustomPotionColor:5215794;Potion of Poison II;Poison II",
"es_brewing:brewing_leaping;{Id:8,Amplifier:1,Duration:3600};CustomPotionColor:2358349;Potion of Leaping II;Leaping II",
"es_brewing:brewing_regeneration;{Id:10,Amplifier:1,Duration:900};CustomPotionColor:13721262;Potion of Regeneration;Regeneration II",
"es_brewing:brewing_harming;{Id:7,Amplifier:1};CustomPotionColor:4459017;Potion of Harming II;Harming II"]

["Potion List Redstone Catalyst"]
#
#Determines the potion variables defined by an items tags set to ingredients defined by a Redstone Catalyst.
potionArrayPlus = ["es_brewing:brewing_swiftness;{Id:1,Amplifier:0,Duration:9600};CustomPotionColor:8303306;Potion of Swiftness+;Swiftness+",
"es_brewing:brewing_slowness;{Id:2,Amplifier:0,Duration:9600};CustomPotionColor:6057603;Potion of Slowness+;Slowness+",
"es_brewing:brewing_turtle_master;{Id:2,Amplifier:3,Duration:800},{Id:11,Amplifier:2,Duration:800};CustomPotionColor:7822692;Potion of the Turtle Master+;Slowness IV+ and Resistance III+",
"es_brewing:brewing_strength;{Id:5,Amplifier:0,Duration:9600};CustomPotionColor:9839908;Potion of Strength+;Strength+",
"es_brewing:brewing_poison;{Id:19,Amplifier:0,Duration:3600};CustomPotionColor:5215794;Potion of Poison+;Poison+",
"es_brewing:brewing_leaping;{Id:8,Amplifier:0,Duration:9600};CustomPotionColor:2358349;Potion of Leaping+;Leaping+",
"es_brewing:brewing_regeneration;{Id:10,Amplifier:0,Duration:3600};CustomPotionColor:13721262;Potion of Regeneration+;Regeneration+",
"es_brewing:brewing_water_breathing;{Id:13,Duration:9600};CustomPotionColor:3101852;Potion of Water Breathing+;Water Breathing+",
"es_brewing:brewing_night_vision;{Id:16,Duration:9600};CustomPotionColor:2105508;Potion of Night Vision+;Night Vision+",
"es_brewing:brewing_invisibility;{Id:14,Duration:9600};CustomPotionColor:8488341;Potion of Invisibility+;Invisibility+",
"es_brewing:brewing_slow_falling;{Id:19,Duration:9600};CustomPotionColor:16577749;Potion of Slow Falling+;Slow Falling+",
"es_brewing:brewing_weakness;{Id:18,Duration:9600};CustomPotionColor:4804169;Potion of Weakness+;Weakness+",
"es_brewing:brewing_fire_resistance;{Id:12,Duration:9600};CustomPotionColor:15244603;Potion of Fire Resistance+;Fire Resistance+"]

["Potion List Both Catalysts"]
#
#Determines the potion variables defined by an items tags set to ingredients defined by both a Redstone and a Glowstone Catalyst.
potionArrayTwoPlus = ["es_brewing:brewing_swiftness;{Id:1,Amplifier:1,Duration:9600};CustomPotionColor:8303306;Potion of Swiftness II+;Swiftness II+",
"es_brewing:brewing_slowness;{Id:2,Amplifier:1,Duration:9600};CustomPotionColor:6057603;Potion of Slowness II+;Slowness II+",
"es_brewing:brewing_turtle_master;{Id:2,Amplifier:5,Duration:800},{Id:11,Amplifier:3,Duration:800};CustomPotionColor:7822692;Potion of the Turtle Master II+;Slowness VI+ and Resistance IV+",
"es_brewing:brewing_strength;{Id:5,Amplifier:1,Duration:9600};CustomPotionColor:9839908;Potion of Strength II+;Strength II+",
"es_brewing:brewing_poison;{Id:19,Amplifier:1,Duration:3600};CustomPotionColor:5215794;Potion of Poison II+;Poison II+",
"es_brewing:brewing_leaping;{Id:8,Amplifier:1,Duration:9600};CustomPotionColor:2358349;Potion of Leaping II+;Leaping II+",
"es_brewing:brewing_regeneration;{Id:10,Amplifier:1,Duration:3600};CustomPotionColor:13721262;Potion of Regeneration II+;Regeneration II+"]

["Potion List 2 Glowstone Catalysts"]
#
#Determines the potion variables defined by an items tags set to ingredients defined by two Glowstone Catalysts.
potionArrayThree = ["es_brewing:brewing_swiftness{Id:1,Amplifier:2,Duration:3600};CustomPotionColor:8303306;Potion of Swiftness III;Swiftness III",
"es_brewing:brewing_slowness;{Id:2,Amplifier:2,Duration:1800};CustomPotionColor:6057603;Potion of Slowness III;Slowness III",
"es_brewing:brewing_turtle_master;{Id:2,Amplifier:7,Duration:400},{Id:11,Amplifier:4,Duration:400};CustomPotionColor:7822692;Potion of the Turtle Master III;Slowness VIII and Resistance V",
"es_brewing:brewing_strength;{Id:5,Amplifier:2,Duration:3600};CustomPotionColor:9839908;Potion of Strength III;Strength III",
"es_brewing:brewing_healing;{Id:6,Amplifier:2};CustomPotionColor:16524580;Potion of Healing;Healing III",
"es_brewing:brewing_poison;{Id:19,Amplifier:2,Duration:900};CustomPotionColor:5215794;Potion of Poison III;Poison III",
"es_brewing:brewing_leaping;{Id:8,Amplifier:2,Duration:3600};CustomPotionColor:2358349;Potion of Leaping III;Leaping III",
"es_brewing:brewing_regeneration;{Id:10,Amplifier:2,Duration:900};CustomPotionColor:13721262;Potion of Regeneration;Regeneration III",
"es_brewing:brewing_harming;{Id:7,Amplifier:2};CustomPotionColor:4459017;Potion of Harming III;Harming III"]

["Potion List 2 Redstone Catalysts"]
#
#Determines the potion variables defined by an items tags set to ingredients defined by two Redstone Catalysts.
potionArrayPlusPlus = ["es_brewing:brewing_swiftness;{Id:1,Amplifier:0,Duration:25600};CustomPotionColor:8303306;Potion of Swiftness++;Swiftness++",
"es_brewing:brewing_slowness;{Id:2,Amplifier:0,Duration:25600};CustomPotionColor:6057603;Potion of Slowness++;Slowness++",
"es_brewing:brewing_turtle_master;{Id:2,Amplifier:3,Duration:9600},{Id:11,Amplifier:2,Duration:1600};CustomPotionColor:7822692;Potion of the Turtle Master++;Slowness IV++ and Resistance III++",
"es_brewing:brewing_strength;{Id:5,Amplifier:0,Duration:25600};CustomPotionColor:9839908;Potion of Strength++;Strength++",
"es_brewing:brewing_poison;{Id:19,Amplifier:0,Duration:3600};CustomPotionColor:5215794;Potion of Poison++;Poison++",
"es_brewing:brewing_leaping;{Id:8,Amplifier:0,Duration:9600};CustomPotionColor:2358349;Potion of Leaping++;Leaping++",
"es_brewing:brewing_regeneration;{Id:10,Amplifier:0,Duration:9600};CustomPotionColor:13721262;Potion of Regeneration++;Regeneration++",
"es_brewing:brewing_water_breathing;{Id:13,Duration:25600};CustomPotionColor:3101852;Potion of Water Breathing++;Water Breathing++",
"es_brewing:brewing_night_vision;{Id:16,Duration:25600};CustomPotionColor:2105508;Potion of Night Vision++;Night Vision++",
"es_brewing:brewing_invisibility;{Id:14,Duration:25600};CustomPotionColor:8488341;Potion of Invisibility++;Invisibility++",
"es_brewing:brewing_slow_falling;{Id:19,Duration:25600};CustomPotionColor:16577749;Potion of Slow Falling++;Slow Falling++",
"es_brewing:brewing_weakness;{Id:18,Duration:25600};CustomPotionColor:4804169;Potion of Weakness++;Weakness++",
"es_brewing:brewing_fire_resistance;{Id:12,Duration:25600};CustomPotionColor:15244603;Potion of Fire Resistance++;Fire Resistance++"]

Default Data Tag Data:

*Need to finish adding values*

"es_brewing:brewing_swiftness":

{

{

"replace": false,

"values": [

"minecraft:rabbit_foot",

"minecraft:rabbit_hide",

"minecraft:feather",

"minecraft:sugar",

"minecraft:sweet_berries",

"minecraft:azure_bluet"

]

}


"es_brewing:brewing_slowness":

{

{

"replace": false,

"values": [ 

"minecraft:wheat",

"minecraft:cactus",

"minecraft:sugar_cane",

"minecraft:seagrass",

"minecraft:sea_pickle"

]

}


"es_brewing:brewing_turtle_master":

{
"replace": false,
"values": [
"minecraft:scute",
"minecraft:turtle_helmet",
"minecraft:turtle_egg"
]
}


"es_brewing:brewing_strength":

{

{

"replace": false,

"values": [ 

"minecraft:blaze_powder",

"minecraft:red_mushroom",

"minecraft:turtle_helmet",

"minecraft:beetroot",

"minecraft:honey_bottle"

]

}


"es_brewing:brewing_healing":

{
"replace": false,
"values": [
"minecraft:golden_carrot",
"minecraft:honey_bottle",
"minecraft:golden_apple",
"minecraft:glistering_melon_slice"
]
}


"es_brewing:brewing_poison":

{
"replace": false,
"values": [
"minecraft:pufferfish",
"minecraft:spider_eye",
"minecraft:rotten_flesh",
"minecraft:poisonous_potato"
]
}


"es_brewing:brewing_leaping":

{
"replace": false,
"values": [
"minecraft:rabbit_foot",
"minecraft:feather",
"minecraft:rabbit_hide"
]
}


"es_brewing:brewing_regeneration":

{
"replace": false,
"values": [
"minecraft:honeycomb",
"minecraft:honey_bottle",
"minecraft:golden_apple"
]
}


"es_brewing:brewing_water_breathing":

{

{

"replace": false,

"values": [

"minecraft:seagrass",

"minecraft:pufferfish",

"minecraft:sugar_cane",

"minecraft:sea_pickle",

"minecraft:nautilus_shell",

"minecraft:heart_of_the_sea"

]

}


"es_brewing:brewing_night_vision":

{
"replace": false,
"values": [
"minecraft:golden_carrot",
"minecraft:pumpkin",
"minecraft:carrot"
]
}


"es_brewing:brewing_invisibility":

{

{

"replace": false,

"values": [

"minecraft:glow_berries",

"minecraft:fermented_spider_eye",

"minecraft:allium",

"minecraft:golden_carrot"

]

}


"es_brewing:brewing_harming":

{
"replace": false,
"values": [
"minecraft:fermented_spider_eye",
"minecraft:rotten_flesh",
"minecraft:nether_wart",
"minecraft:crimson_fungus"
]
}


"es_brewing:brewing_slow_falling":

{

{

"replace": false,

"values": [

"minecraft:azure_bluet",

"minecraft:feather",

"minecraft:phantom_membrane",

"minecraft:warped_fungus"

]

}


"es_brewing:brewing_weakness":

{

{

"replace": false,

"values": [

"minecraft:wheat", 

"minecraft:fermented_spider_eye",

"minecraft:dried_kelp",

"minecraft:nether_wart",

"minecraft:blue_orchid",

"minecraft:brown_mushroom"

]

}


"es_brewing:brewing_fire_resistance":

{"

replace": false,

"values": [

"minecraft:magma_cream",

"minecraft:crimson_fungus",

"minecraft:golden_apple" 

]

}

Plans:

  • Make new Brewing GUI look nicer.
  • Balance default potion data tags.
  • Add the ability to only see what tags an item has if you have unlocked it for that item (Configurable false/true). (May become a different mod/addon instead)