execute unless score @s pay matches 200.. run return run function ws:store/bar/fail
scoreboard players remove @s pay 200
title @s title {"translate":"luxury.buysuccess","color":"green"}
give @s potion[minecraft:potion_contents={custom_effects:[{id:health_boost,duration:600,amplifier:2},{id:hunger,duration:300},{id:jump_boost,duration:600},{id:nausea,duration:300},{id:regeneration,duration:100},{id:resistance,duration:600,amplifier:4},{id:speed,duration:600,amplifier:2},{id:strength,duration:300,amplifier:2}]},minecraft:custom_name='["",{"translate":"bar.vodka","italic":false}]',minecraft:custom_model_data=1004,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 100
tellraw @a[tag=bar] [{"translate":"business.bonus"},{"text":": "},{"text":"100$"},{"text":" ("},{"translate":"bar.name"},{"text":")"}]
execute as @a[tag=bar] at @s run playsound minecraft:entity.experience_orb.pickup player @s ~ ~ ~ 0.05 0