$execute unless score @s coins matches $(invisibility_potion).. run return run tellraw @s {"text":"You don't have enough coins! ($(invisibility_potion)c)","color":"red"}
give @s potion[custom_name={"color":"yellow","italic":false,"text":"Invisibility Potion"},lore=[{"color":"dark_aqua","italic":false,"text":"Invisibility - 20s"}],tooltip_display={hidden_components:["potion_contents"]},potion_contents={custom_color:11714754,custom_effects:[{id:"minecraft:unluck",amplifier:10,duration:1,show_particles:0b,show_icon:0b}]}] 1
$function pctf:logic/player/coins/remove {amount: "$(invisibility_potion)"}