execute unless score @s pay matches 500.. run return run function ws:store/unishop/fail
scoreboard players remove @s pay 500
title @s title {"translate":"luxury.buysuccess","color":"green"}
give @s netherite_chestplate[max_damage=1000,enchantment_glint_override=false,attribute_modifiers={modifiers:[{id:"armor",type:"generic.armor",amount:20,operation:"add_value",slot:"chest"},{id:"movement_speed",type:"generic.movement_speed",amount:-0.35,operation:"add_multiplied_base",slot:"chest"},{id:"knockback_resistance",type:"generic.knockback_resistance",amount:0.8,operation:"add_multiplied_base",slot:"chest"},{id:"attack_damage",type:"generic.attack_damage",amount:3,operation:"add_value",slot:"chest"},{id:"jump_strength",type:"generic.jump_strength",amount:-0.5,operation:"add_multiplied_base",slot:"chest"},{id:"max_health",type:"generic.max_health",amount:10,operation:"add_value",slot:"chest"}],show_in_tooltip:true}]
execute at @s run playsound minecraft:entity.villager.yes player @s ~ ~ ~