execute store result score @s apothecary_potion_pick run random value 1..7

execute if score @s apothecary_potion_pick matches 1 run give @s splash_potion[potion_contents={custom_effects:[{id:"minecraft:poison",amplifier:3,duration:1200},{id:"minecraft:wither",amplifier:3,duration:1200},{id:"minecraft:nausea",amplifier:3,duration:1200}]},custom_name='[{"bold":true,"color":"dark_purple","italic":false,"text":"[EPIC] "},{"bold":false,"color":"white","italic":false,"text":"Pure Absinthe"}]'] 1
execute if score @s apothecary_potion_pick matches 2 run give @s splash_potion[potion_contents={custom_effects:[{id:"minecraft:regeneration",amplifier:1,duration:1200},{id:"minecraft:instant_health",amplifier:1,duration:60}]},custom_name='[{"bold":true,"color":"dark_purple","italic":false,"text":"[EPIC] "},{"bold":false,"color":"white","italic":false,"text":"Kombucha"}]'] 1
execute if score @s apothecary_potion_pick matches 3 run give @s potion[potion_contents={custom_effects:[{id:"minecraft:strength",amplifier:0,duration:2400},{id:"minecraft:speed",amplifier:0,duration:2400}]},custom_name='[{"bold":true,"color":"dark_purple","italic":false,"text":"[EPIC] "},{"bold":false,"color":"white","italic":false,"text":"Traditional Chica"}]'] 1
execute if score @s apothecary_potion_pick matches 4 run give @s splash_potion[potion_contents={custom_effects:[{id:"minecraft:resistance",amplifier:1,duration:1200},{id:"minecraft:fire_resistance",amplifier:1,duration:1200}]},custom_name='[{"bold":true,"color":"dark_purple","italic":false,"text":"[EPIC] "},{"bold":false,"color":"white","italic":false,"text":"Potent Laudanum"}]'] 1
execute if score @s apothecary_potion_pick matches 5 run give @s splash_potion[potion_contents={custom_effects:[{id:"minecraft:levitation",amplifier:5,duration:200}]},custom_name='[{"bold":true,"color":"dark_purple","italic":false,"text":"[EPIC] "},{"bold":false,"color":"white","italic":false,"text":"Anti-Gravity Potion"}]'] 1
execute if score @s apothecary_potion_pick matches 6 run give @s splash_potion[potion_contents={custom_effects:[{id:"minecraft:speed",amplifier:2,duration:1200},{id:"minecraft:absorption",amplifier:4,duration:100},{id:"minecraft:regeneration",amplifier:0,duration:300}]},custom_name='[{"bold":true,"color":"dark_purple","italic":false,"text":"[EPIC] "},{"bold":false,"color":"white","italic":false,"text":"Adrenochrome"}]'] 1
execute if score @s apothecary_potion_pick matches 7 run give @s splash_potion[potion_contents={custom_effects:[{id:"minecraft:absorption",amplifier:4,duration:1200}]},custom_name='[{"bold":true,"color":"dark_purple","italic":false,"text":"[EPIC] "},{"bold":false,"color":"white","italic":false,"text":"Shielding Potion"}]'] 1

title @s actionbar [{"text": "xx ","obfuscated": true,"color": "#c61ae0","bold": true},{"bold":true,"color":"dark_purple","obfuscated": false,"italic":false,"text":"[EPIC]"},{"text": " xx","obfuscated": true,"color": "#c61ae0","bold": true}]
playsound minecraft:block.beacon.power_select player @a[distance=..12] ~ ~1 ~ 10 1.5
playsound minecraft:item.trident.return player @a[distance=..12] ~ ~1 ~ 10 1
particle end_rod ~ ~1 ~ 0 0 0 0.3 35
particle flash ~ ~1 ~ 0 0 0 0.8 1

tag @s remove apothecary_rolling