execute store result score #launch_feathers temp run clear @s feather[minecraft:custom_data~{launch_feather:1b}] 0
execute if score #launch_feathers temp matches 3.. run return run tellraw @s {"text":"You can only have a max of 3 Launch Feathers!","color":"red"}
$execute unless score @s coins matches $(launch_feather).. run return run tellraw @s {"text":"You don't have enough coins! ($(launch_feather)c)","color":"red"}
function pctf:logic/items/launch_feather/give
$function pctf:logic/player/coins/remove {amount: "$(launch_feather)"}