In order to get a constant supply of food and feathers, I decided to set up a simple semi-automated chicken farm, but for some reason, my chickens keep dying. Why is this? Here are the details:
The dispenser is triggered by a rapid pulsar. This way, approximately every 16 seconds a new chicken is spawned, until I run out of eggs. The chickens float on a 1-layer thick water surface to allow collecting eggs:
As you can see the floating area is about 2x10 blocks large.
There used to be many chickens in these containers, dropping an egg every few seconds. Then, they all died (I could collect meat instead of eggs). Luckily, I had a batch of eggs, so I refilled the dispenser and got around 20 chickens out of it. Leaving the farm for a while and coming back left me with just 2 chickens.
How can I avoid these mass extinctions?