execute unless score @s pay matches 180.. run return run function ws:store/unishop/fail
scoreboard players remove @s pay 180
title @s title {"translate":"luxury.buysuccess","color":"green"}
give @s iron_chestplate[minecraft:max_damage=300,attribute_modifiers={modifiers:[{id:"armor",type:"generic.armor",amount:9,operation:"add_value",slot:"chest"},{id:"movement_speed",type:"generic.movement_speed",amount:-0.05,operation:"add_multiplied_base",slot:"chest"},{id:"knockback_resistance",type:"generic.knockback_resistance",amount:0.1,operation:"add_multiplied_base",slot:"chest"}],show_in_tooltip:true}] 1
execute at @s run playsound minecraft:entity.villager.yes player @s ~ ~ ~