execute if entity @s[type=!chicken,tag=!boss] run summon chicken ~ ~ ~
execute if entity @s[type=chicken,tag=!boss] run summon item ~ ~ ~ {Item:{id:"minecraft:egg",Count:1b}}
scoreboard players add @s[tag=boss] damage 800

execute if entity @s[tag=!boss] run tp @s ~ -10 ~
execute if entity @s[tag=!boss] run kill @s

execute if entity @s[type=!chicken,tag=!boss] run playsound entity.chicken.ambient ambient @a ~ ~ ~
execute if entity @s[type=chicken] run playsound entity.chicken.egg ambient @a ~ ~ ~
