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