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