execute unless score @s pay matches 800.. run return run function ws:store/unishop/fail
scoreboard players remove @s pay 800
title @s title {"translate":"luxury.buysuccess","color":"green"}
give @s leather_chestplate[custom_model_data=2,custom_name='{"italic":false,"translate":"lobby.producer.equipment"}',lore=['{"italic":false,"translate":"lobby.producer.equipment.lore"}'],unbreakable={show_in_tooltip:false},custom_data={producer:1},attribute_modifiers={modifiers:[{id:"armor",type:"generic.armor",amount:0,operation:"add_value",slot:"chest"},{id:"armor",type:"generic.armor_toughness",amount:0,operation:"add_value",slot:"chest"},{id:"armor",type:"generic.knockback_resistance",amount:0,operation:"add_value",slot:"chest"}],show_in_tooltip:false},trim={material:"minecraft:netherite",pattern:"minecraft:suit",show_in_tooltip:false}] 1
execute at @s run playsound minecraft:entity.villager.yes player @s ~ ~ ~