execute unless score @s pay matches 300.. run return run function ws:store/unishop/fail
scoreboard players remove @s pay 300
title @s title {"translate":"luxury.buysuccess","color":"green"}
give @s wheat_seeds[custom_data={crop:1},max_stack_size=1,!food]
execute at @s run playsound minecraft:entity.villager.yes player @s ~ ~ ~