execute unless score @s pay matches 30.. run return run function ws:store/unishop/fail
scoreboard players remove @s pay 30
title @s title {"translate":"luxury.buysuccess","color":"green"}
give @s minecraft:carrot_on_a_stick[minecraft:custom_data={staple:1},minecraft:custom_model_data=1002,minecraft:item_name='{"translate":"luxury.item.staple"}',lore=['{"translate":"luxury.item.staple.lore","italic":false,"color":"gray"}']]
execute at @s run playsound minecraft:entity.villager.yes player @s ~ ~ ~