Requires the library mod Collective.
This mod is part of The Vanilla Experience.
Despawning Eggs Hatch is a minimalistic configurable mod which allows chicken eggs on the ground to hatch just before they despawn. New spawns will be limited to 50 by default, in order to prevent infinite chicken spawns. Items (and eggs) despawn after 6000 ticks, 5 minutes. By default a chicken will only spawn when the egg despawns when on top of a hay block. This prevents groups of wild chicken groups in loaded chunks from getting too big.
Configurable: ( how do I configure? )
eggOnlyHatchesWhenOnTopOfHayBlock (default = true): When enabled, an egg will only hatch when it is laid on top a hay block. This prevents wild chicken colonies from expanding without your knowledge.
eggWillHatchChance (default = 1.0, min 0, max 1.0): The chance an egg will hatch just before despawning if the entity limiter is not active.
onlyHatchIfLessChickensAroundThan (default = 50, min 0, max 1000): Prevents too many entities from hatching. A despawning egg will only hatch if there are less chickens than defined here in a radius of 'radiusEntityLimiterCheck' blocks around.
radiusEntityLimiterCheck (default = 32, min 1, max 256): The radius around the despawned egg for 'onlyHatchIfLessChickensAroundThan'.
newHatchlingIsBaby (default = true): If enabled, the newly hatched chicken is a small chick.
Before (with 'eggOnlyHatchesWhenOnTopOfHayBlock' disabled):
A GIF showing the egg hatching (with the despawn timer set to 1 second for the example):