execute unless score @s pay matches 300.. run return run function ws:store/building/fail
scoreboard players remove @s pay 300
title @s title {"translate":"luxury.buysuccess","color":"green"}
give @s stripped_oak_log[minecraft:custom_name='[{"translate":"building.facing.wood","italic":false}]']
execute at @s run playsound minecraft:block.anvil.land player @s ~ ~ ~