execute unless score @s pay matches 300.. run return run function ws:store/bar/fail
scoreboard players remove @s pay 300
title @s title {"translate":"luxury.buysuccess","color":"green"}
give @s potion[minecraft:potion_contents={custom_effects:[{id:absorption,duration:600,amplifier:4},{id:hunger,duration:600},{id:instant_health,duration:20,amplifier:9},{id:night_vision,duration:600},{id:slowness,duration:600,amplifier:2},{id:weakness,duration:600,amplifier:2}]},minecraft:custom_name='["",{"translate":"bar.mojito","italic":false}]',minecraft:custom_model_data=1006,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 150
tellraw @a[tag=bar] [{"translate":"business.bonus"},{"text":": "},{"text":"150$"},{"text":" ("},{"translate":"bar.name"},{"text":")"}]
execute as @a[tag=bar] at @s run playsound minecraft:entity.experience_orb.pickup player @s ~ ~ ~ 0.05 0