execute unless score @s pay matches 350.. run return run function ws:store/bar/fail
scoreboard players remove @s pay 350
title @s title {"translate":"luxury.buysuccess","color":"green"}
give @s potion[minecraft:potion_contents={custom_effects:[{id:blindness,duration:300},{id:health_boost,duration:600,amplifier:4},{id:instant_damage,duration:20},{id:mining_fatigue,duration:300,amplifier:2},{id:nausea,duration:300,amplifier:2},{id:regeneration,duration:600,amplifier:2},{id:speed,duration:600,amplifier:4},{id:weakness,duration:600,amplifier:2}]},minecraft:custom_name='["",{"translate":"bar.brandy","italic":false}]',minecraft:custom_model_data=1007,minecraft:custom_data={bardrink:1}]
execute at @s run playsound minecraft:block.brewing_stand.brew player @s ~ ~ ~ 0.5 1
scoreboard players add @a[tag=bar] pay 175
tellraw @a[tag=bar] [{"translate":"business.bonus"},{"text":": "},{"text":"175$"},{"text":" ("},{"translate":"bar.name"},{"text":")"}]
execute as @a[tag=bar] at @s run playsound minecraft:entity.experience_orb.pickup player @s ~ ~ ~ 0.05 0