effect give @s minecraft:saturation 1 10 true
clear @s minecraft:paper
tag @s remove chicken
scoreboard players add @s score2 10
effect clear @s minecraft:glowing
effect clear @s minecraft:slowness
effect clear @s minecraft:weakness

tellraw @a {"text":"","color":"white","extra":[{"selector":"@s","type":"selector"},{"text":" captured a chicken  !","type":"text"}],"type":"text"}
execute at @s[team=blue] run function cf:game/chicken/summonred
execute at @s[team=red] run function cf:game/chicken/summonblue
execute at @a run playsound minecraft:block.note_block.pling player @a ~ ~ ~
playsound minecraft:entity.chicken.death player @s