execute store result score @s apothecary_potion_pick run random value 1..14
execute if score @s apothecary_potion_pick matches 1 run give @s splash_potion[potion_contents={potion:"minecraft:strong_swiftness"},custom_name='[{"bold":true,"color":"gray","italic":false,"text":"[COMMON] "},{"bold":false,"color":"white","italic":false,"text":"Swiftness Potion"}]'] 1
execute if score @s apothecary_potion_pick matches 2 run give @s splash_potion[potion_contents={potion:"minecraft:strong_harming"},custom_name='[{"bold":true,"color":"gray","italic":false,"text":"[COMMON] "},{"bold":false,"color":"white","italic":false,"text":"Harming Potion"}]'] 1
execute if score @s apothecary_potion_pick matches 3 run give @s splash_potion[potion_contents={potion:"minecraft:strong_healing"},custom_name='[{"bold":true,"color":"gray","italic":false,"text":"[COMMON] "},{"bold":false,"color":"white","italic":false,"text":"Healing Potion"}]'] 1
execute if score @s apothecary_potion_pick matches 4 run give @s splash_potion[potion_contents={potion:"minecraft:strong_poison"},custom_name='[{"bold":true,"color":"gray","italic":false,"text":"[COMMON] "},{"bold":false,"color":"white","italic":false,"text":"Poison Potion"}]'] 1
execute if score @s apothecary_potion_pick matches 5 run give @s splash_potion[potion_contents={potion:"minecraft:strong_regeneration"},custom_name='[{"bold":true,"color":"gray","italic":false,"text":"[COMMON] "},{"bold":false,"color":"white","italic":false,"text":"Regeneration Potion"}]'] 1
execute if score @s apothecary_potion_pick matches 6 run give @s splash_potion[potion_contents={custom_effects:[{id:"minecraft:strength",amplifier:0,duration:600}]},custom_name='[{"bold":true,"color":"gray","italic":false,"text":"[COMMON] "},{"bold":false,"color":"white","italic":false,"text":"Strength Potion"}]'] 1
execute if score @s apothecary_potion_pick matches 7 run give @s splash_potion[potion_contents={potion:"minecraft:slowness"},custom_name='[{"bold":true,"color":"gray","italic":false,"text":"[COMMON] "},{"bold":false,"color":"white","italic":false,"text":"Slowness Potion"}]'] 1
execute if score @s apothecary_potion_pick matches 8 run give @s lingering_potion[potion_contents={potion:"minecraft:swiftness"},custom_name='[{"bold":true,"color":"gray","italic":false,"text":"[COMMON] "},{"bold":false,"color":"white","italic":false,"text":"Lingering Swiftness Potion"}]'] 1
execute if score @s apothecary_potion_pick matches 9 run give @s lingering_potion[potion_contents={potion:"minecraft:harming"},custom_name='[{"bold":true,"color":"gray","italic":false,"text":"[COMMON] "},{"bold":false,"color":"white","italic":false,"text":"Lingering Harming Potion"}]'] 1
execute if score @s apothecary_potion_pick matches 10 run give @s lingering_potion[potion_contents={potion:"minecraft:healing"},custom_name='[{"bold":true,"color":"gray","italic":false,"text":"[COMMON] "},{"bold":false,"color":"white","italic":false,"text":"Lingering Healing Potion"}]'] 1
execute if score @s apothecary_potion_pick matches 11 run give @s lingering_potion[potion_contents={potion:"minecraft:poison"},custom_name='[{"bold":true,"color":"gray","italic":false,"text":"[COMMON] "},{"bold":false,"color":"white","italic":false,"text":"Lingering Poison Potion"}]'] 1
execute if score @s apothecary_potion_pick matches 12 run give @s lingering_potion[potion_contents={potion:"minecraft:regeneration"},custom_name='[{"bold":true,"color":"gray","italic":false,"text":"[COMMON] "},{"bold":false,"color":"white","italic":false,"text":"Lingering Regeneration Potion"}]'] 1
execute if score @s apothecary_potion_pick matches 13 run give @s lingering_potion[potion_contents={custom_effects:[{id:"minecraft:strength",amplifier:0,duration:600}]},custom_name='[{"bold":true,"color":"gray","italic":false,"text":"[COMMON] "},{"bold":false,"color":"white","italic":false,"text":"Lingering Strength Potion"}]'] 1
execute if score @s apothecary_potion_pick matches 14 run give @s lingering_potion[potion_contents={potion:"minecraft:slowness"},custom_name='[{"bold":true,"color":"gray","italic":false,"text":"[COMMON] "},{"bold":false,"color":"white","italic":false,"text":"Lingering Slowness Potion"}]'] 1

title @s actionbar [{"bold":true,"color":"gray","obfuscated": false,"italic":false,"text":"[COMMON]"}]
playsound minecraft:block.note_block.guitar player @a[distance=..3] ~ ~ ~ 1 2

tag @s remove apothecary_rolling