$execute unless score @s coins matches $(tnt).. run return run tellraw @s {"text":"You don't have enough coins! ($(tnt)c)","color":"red"}
give @s armor_stand[tooltip_display={hidden_components:["unbreakable","attribute_modifiers","can_place_on","can_break"]},can_place_on=[{blocks:"#pctf:wool_placeable"}],can_break=[{blocks:"#pctf:can_break"}],entity_data={id:"minecraft:armor_stand",NoGravity:1b,Invulnerable:1b,Small:1b,Invisible:1b,NoBasePlate:1b,Tags:["tnt"],CustomName:"tnt_stand"},item_model="minecraft:tnt",item_name={"color":"yellow","italic":false,"text":"TNT"},max_stack_size=2] 1
$function pctf:logic/player/coins/remove {amount: "$(tnt)"}