Minecraft Wiki
Advertisement
Minecraft Wiki
Trench Egg Farm (cross section)

Chickens go over the hopper, and eggs will accumulate in the chest.