execute if entity @s[tag=has_axe] run return run tellraw @s {"text":"You already purchased this!","color":"yellow"}
$execute unless score @s coins matches $(axe).. run return run tellraw @s {"text":"You don't have enough coins! ($(axe)c)","color":"red"}
tag @s add has_axe
give @s stone_axe[can_break=[{blocks:"#pctf:can_break"}],item_name={"color":"gray","italic":false,"text":"Stone Axe"},unbreakable={},tooltip_display={hidden_components:["unbreakable","can_place_on","can_break","attribute_modifiers"]},attribute_modifiers=[{id:"attack_damage",type:"attack_damage",amount:0,operation:"add_value",slot:"mainhand"},{id:"attack_speed",type:"attack_speed",amount:-3.5,operation:"add_value",slot:"mainhand"}]] 1
$function pctf:logic/player/coins/remove {amount: "$(axe)"}