execute unless score @s pay matches 150.. run return run function ws:store/unishop/fail
scoreboard players remove @s pay 150
title @s title {"translate":"luxury.buysuccess","color":"green"}
give @s gold_nugget[max_stack_size=1,custom_name='{"italic":false,"translate":"luxury.item.pieceofluck"}',custom_data={luck:1},enchantment_glint_override=true,attribute_modifiers={modifiers:[{id:"luck",type:"generic.luck",amount:20,operation:"add_value",slot:"offhand"}],show_in_tooltip:true}]
execute at @s run playsound minecraft:entity.villager.yes player @s ~ ~ ~