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