execute if entity @s[tag=has_shears] run return run tellraw @s {"text":"You already purchased this!","color":"yellow"}
$execute unless score @s coins matches $(shears).. run return run tellraw @s {"text":"You don't have enough coins! ($(shears)c)","color":"red"}
tag @s add has_shears
give @s shears[can_break=[{blocks:"#pctf:can_break"}],item_name={"color":"gray","italic":false,"text":"Shears"},unbreakable={},tooltip_display={hidden_components:["unbreakable","can_place_on","can_break","attribute_modifiers"]},enchantments={"minecraft:efficiency":4}] 1
$function pctf:logic/player/coins/remove {amount: "$(shears)"}