execute if score .redshop buttonsel matches 1 run tellraw @s[scores={feathers=..0}] {"text":"Not enough feathers  !","type":"text"}
execute if score .redshop buttonsel matches 1 run give @s minecraft:carrot_on_a_stick[minecraft:custom_data={customTag:1},minecraft:custom_model_data={floats:[1001.0f]},minecraft:custom_name='{"bold":true,"color":"red","italic":false,"text":"Smallinator"}',minecraft:lore=['{"text":"The smallinator will change your size to ","color":"gray","italic":false}','{"text":"make you small, use it to sneak on your enemies !","color":"gray","italic":false}']]
execute if score .redshop buttonsel matches 1 run tellraw @s {"text":"-1  !","type":"text"}
execute if score .redshop buttonsel matches 1 run scoreboard players remove @s feathers 1
#minecraft:carrot_on_a_stick[minecraft:custom_data={customTag:32},minecraft:custom_model_data=1010,minecraft:custom_name=,lore=[]]

execute if score .redshop buttonsel matches 2 run tellraw @s[scores={feathers=..0}] {"text":"Not enough feathers  !","type":"text"}
execute if score .redshop buttonsel matches 2 run give @s minecraft:carrot_on_a_stick[minecraft:custom_data={customTag:2},minecraft:custom_model_data={floats:[1000.0f]},minecraft:custom_name='{"bold":true,"color":"yellow","italic":false,"text":"Biginator"}',minecraft:lore=['{"text":"The biginator will change your size to ","color":"gray","italic":false}','{"text":"make you big, use it to fight your enemies !","color":"gray","italic":false}']]

execute if score .redshop buttonsel matches 2 run tellraw @s {"text":"-1  !","type":"text"}
execute if score .redshop buttonsel matches 2 run scoreboard players remove @s feathers 1


execute if score .redshop buttonsel matches 3 run tellraw @s[scores={feathers=..2}] {"text":"Not enough feathers  !","type":"text"}
execute if score .redshop buttonsel matches 3 run give @s[scores={feathers=3..}] minecraft:carrot_on_a_stick[minecraft:custom_data={customTag:9},minecraft:custom_model_data={floats:[1008.0f]},minecraft:custom_name='{"bold":true,"color":"white","italic":false,"text":"Chicken Ride "}',minecraft:lore=['{"text":"The chicken ride will summon a big chicken","color":"gray","italic":false}','{"text":"for you to ride !","color":"gray","italic":false}']]

execute if score .redshop buttonsel matches 3 run tellraw @s[scores={feathers=3..}] {"text":"-3  !","type":"text"}
execute if score .redshop buttonsel matches 3 run scoreboard players remove @s[scores={feathers=3..}] feathers 3

execute if score .redshop buttonsel matches 4 run tellraw @s[scores={feathers=..2}] {"text":"Not enough feathers  !","type":"text"}
execute if score .redshop buttonsel matches 4 run give @s[scores={feathers=3..}] minecraft:carrot_on_a_stick[minecraft:custom_data={customTag:3},minecraft:custom_model_data={floats:[1002.0f]},minecraft:custom_name='{"bold":true,"color":"white","italic":false,"text":"Feather Staff "}',minecraft:lore=['{"text":"The feather staff lets you launch","color":"gray","italic":false}','{"text":"feathers to freeze your enemies !","color":"gray","italic":false}']]

execute if score .redshop buttonsel matches 4 run tellraw @s[scores={feathers=3..}] {"text":"-3  !","type":"text"}
execute if score .redshop buttonsel matches 4 run scoreboard players remove @s[scores={feathers=3..}] feathers 3

execute if score .redshop buttonsel matches 5 run tellraw @s[scores={feathers=..0}] {"text":"Not enough feathers  !","type":"text"}
execute if score .redshop buttonsel matches 5 run give @s minecraft:splash_potion[minecraft:custom_name='{"bold":true,"color":"white","italic":false,"text":"Flash Egg"}',minecraft:lore=['{"text":"An egg filled with glowstone.","color":"gray","bold":false,"italic":false}'],minecraft:potion_contents={custom_effects:[{id:"minecraft:blindness"}]},minecraft:max_stack_size=16]
execute if score .redshop buttonsel matches 5 run tellraw @s {"text":"-1  !","type":"text"}
execute if score .redshop buttonsel matches 5 run scoreboard players remove @s feathers 1


execute if score .redshop buttonsel matches 6 run tellraw @s[scores={feathers=..1}] {"text":"Not enough feathers  !","type":"text"}
execute if score .redshop buttonsel matches 6 run give @s[scores={feathers=2..}] minecraft:iron_chestplate[minecraft:max_damage=32,minecraft:item_name='{"bold":true,"color":"white","italic":false,"text":"Feather Chestplate"}',minecraft:lore=['{"text":"Protects you from your enemies","color":"gray","bold":false,"italic":false}'],minecraft:damage=0] 1
execute if score .redshop buttonsel matches 6 run tellraw @s[scores={feathers=2..}] {"text":"-2  !","type":"text"}
execute if score .redshop buttonsel matches 6 run scoreboard players remove @s[scores={feathers=2..}] feathers 2



execute if score .redshop buttonsel matches 7 run tellraw @s[scores={feathers=..9}] {"text":"Not enough feathers  !","type":"text"}
execute if score .redshop buttonsel matches 7 run give @s[scores={feathers=10..}] minecraft:elytra[minecraft:max_damage=1,minecraft:item_name='{"bold":true,"color":"white","italic":false,"text":"Chicken Wings"}',minecraft:lore=['{"text":"Gives the player slow falling + jump boost","color":"gray","bold":false,"italic":false}']] 1

execute if score .redshop buttonsel matches 7 run tellraw @s[scores={feathers=10..}] {"text":"-10  !","type":"text"}
execute if score .redshop buttonsel matches 7 run scoreboard players remove @s[scores={feathers=10..}] feathers 10

execute if score .redshop buttonsel matches 8 run tellraw @s[scores={feathers=..5}] {"text":"Not enough feathers  !","type":"text"}
execute if score .redshop buttonsel matches 8 run give @s[scores={feathers=6..}] minecraft:carrot_on_a_stick[minecraft:custom_name='{"bold":true,"color":"red","italic":false,"text":"Chicken Decoy"}',minecraft:lore=['{"color":"gray","italic":false,"text":"This decoy will look just like a chicken"}','{"color":"gray","italic":false,"text":"but it will explode if a player tries to catch it !"}'],minecraft:custom_model_data={floats:[1013.0f]}] 1

execute if score .redshop buttonsel matches 8 run tellraw @s[scores={feathers=6..}] {"text":"-6  !","type":"text"}
execute if score .redshop buttonsel matches 8 run scoreboard players remove @s[scores={feathers=6..}] feathers 6

item replace entity @e[type=minecraft:item_display,tag=buy,tag=red] container.0 with minecraft:paper[minecraft:custom_model_data={floats:[2007.0f]}]

schedule function cf:interaction/resetbutton 4t