schedule clear cf:events/goldenegg/noegg
kill @e[tag=goldenegg]
particle minecraft:flash ~ ~ ~ 0 0 0 1 0 normal
playsound minecraft:entity.generic.explode ambient @a ~ ~ ~ 5
particle minecraft:end_rod ~ ~1 ~ 0.4 0.4 0.4 0.1 20 normal
execute if entity @s[team=red] run scoreboard players add @a[team=red] feathers 5
execute if entity @s[team=blue] run scoreboard players add @a[team=blue] feathers 5
scoreboard players set .state goldenegg 0
function cf:events/wichevent