$execute unless score @s pay matches $(housePrice).. run return run function ws:store/house/fail
$scoreboard players remove @s pay $(housePrice)
$tag @s add $(HouseGroup)$(HouseID)
$title @s title [{"translate":"flats.buyhouse","color":"light_purple","bold":true},{"text":"$(HouseID)"}]
execute at @s run playsound minecraft:custom.questpassed player @s ~ ~ ~ 1
$setblock $(buttonX) $(buttonY) $(buttonZ) air
$execute positioned $(buttonX) $(buttonY) $(buttonZ) run kill @e[type=area_effect_cloud,limit=2,sort=nearest]