I've got one in my base that works, although not terribly well. Basic concept is as follows.
At top is a small 2x2x2 area with a floor of soul sand with hoppers below that. I tossed a crapload of chicken eggs into here to hatch a bunch of chickens, then fed them seeds until I had even more. These are the egg-layers.
The hoppers under the soul sand feed into a storage double chest or two and then into a dispenser. The dispenser is hooked up to a switch-off-able hopper clock that causes the dispenser to rapidly fire eggs into a hatching chamber.
This hatching chamber consists of a pair of daylight sensors atop hoppers, with glass along the sides not filled with the egg-shooting dispenser. Eggs hit the daylight sensor and hatch chicks, who then stand around on top of the daylight sensor until they grow into adults.
When I notice that they grew into adults, I manually hit a button that triggers dispensers to place buckets of water in the air space above the chickens, and they float up into the water with no air above it and drown. Unfortunately with the new 1.13 and later water mechanics, all their drops float up to the top of this water, so I then hit the same button and the water is retracted back into the buckets in the dispensers, and the feathers/meat falls back down to be collected by the hoppers below the daylight sensors.
Those hoppers feed into a final chest where I can collect the feathers and raw chicken. It also collects any eggs they lay once they grow into adults, which I can then manually move to the storage chest feeding into the egg-flinger dispenser, which I then activate with a switch on the hopper clock. Once the chest and dispenser are empty, I switch it off and wait for the baby chicks to grow into adults.
Rollback Post to RevisionRollBack
"I think I'm starting to like this `programming' thing. It's about four times as fun as shaving." -- Notch, June 12, 2011
Formerly Known In-Game As Spectrumwars
Co-Host <*> Back2Babylon5 Podcast <*> Coming in Feb 2018!
Raise the water dispenser by 1 (maybe 2) block and let it flow down to where you were dispensing the previous water. Items only float to the top in source blocks, they don't float when water is flowing downwards. I don't think chickens will be able to swim to the top because of the flowing water, either, so that keeps the drownings closer to the slab where they should be pushed down to the hopper instead of making it high enough to get into the source.
All you need is to make a hopper connected to a chest, then surround the hoppers so that chickens wouldn't be able to escape, then threw eggs so that there would be chickens above the hopper so that it would be able to collect the eggs being laid by those chickens. Then connect the chest which the hopper pouring eggs in to a dispenser, and when there are enough egg, dispense the eggs using dispenser which firing items repeatedly. The eggs will hatch into chicks, wait for the chicks to grow then kill them.