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

execute if score @s apothecary_potion_pick matches 1 run give @s potion[potion_contents={custom_effects:[{id:"minecraft:health_boost",amplifier:4,duration:25000}]},custom_name='[{"bold":true,"color":"red","italic":false,"text":"[MYTHICAL] "},{"bold":false,"color":"white","italic":false,"text":"Dragon Blood"}]'] 1
execute if score @s apothecary_potion_pick matches 2 run function kiwi3:relics/dagda_cauldron/dagda_cauldron_item_apothecary
execute if score @s apothecary_potion_pick matches 3 run function kiwi3:relics/holy_milk_bucket/holy_milk_bucket_item_apothecary
execute if score @s apothecary_potion_pick matches 4 run give @s splash_potion[potion_contents={potion:"minecraft:healing"},max_stack_size=99,custom_name='[{"bold":true,"color":"red","italic":false,"text":"[MYTHICAL] "},{"bold":false,"color":"white","italic":false,"text":"99 Healing Potions"}]'] 99
execute if score @s apothecary_potion_pick matches 5 run give @s splash_potion[potion_contents={potion:"minecraft:harming"},max_stack_size=99,custom_name='[{"bold":true,"color":"red","italic":false,"text":"[MYTHICAL] "},{"bold":false,"color":"white","italic":false,"text":"99 Harming Potions"}]'] 99
execute if score @s apothecary_potion_pick matches 6 run give @s splash_potion[potion_contents={custom_effects:[{id:"minecraft:strength",amplifier:8,duration:200},{id:"minecraft:speed",amplifier:5,duration:200},{id:"minecraft:resistance",amplifier:3,duration:200},{id:"minecraft:wither",amplifier:4,duration:10000}]},custom_name='[{"bold":true,"color":"dark_red","italic":false,"text":"[MYTHICAL] "},{"bold":false,"color":"white","italic":false,"text":"Ragnarok Draught"}]'] 1

title @s actionbar [{"text": "xxx ","obfuscated": true,"color": "#db4123","bold": true},{"bold":true,"color":"red","obfuscated": false,"italic":false,"text":"[MYTHICAL]"},{"text": " xxx","obfuscated": true,"color": "#db4123","bold": true}]
playsound minecraft:block.beacon.activate player @a ~ ~1 ~ 10 1
playsound minecraft:entity.ender_dragon.growl player @a ~ ~1 ~ 10 1.5
playsound minecraft:entity.ender_dragon.growl player @a ~ ~1 ~ 10 0
playsound minecraft:entity.lightning_bolt.thunder player @a ~ ~1 ~ 10 0
playsound minecraft:ui.toast.challenge_complete player @a ~ ~1 ~ 10 1
playsound minecraft:entity.player.levelup player @a ~ ~1 ~ 10 0
particle end_rod ~ ~1 ~ 0 0 0 0.8 200
particle totem_of_undying ~ ~1 ~ 0 0 0 0.8 75
particle enchant ~ ~1 ~ 3 3 3 0.8 500
particle flash ~ ~1 ~ 3 3 3 0.8 25
effect give @s resistance 15 4 true
effect give @s instant_health 15 4 true
summon lightning_bolt ~ ~ ~

tag @s remove apothecary_rolling