I suggest a type of spray, injection, chemical or food that prevent further breeding of animal, laying of eggs or preventing eggs from hatching.
Made from one cooked poison, milk and one bucket of water.
Keep in mind, this does not kill the animal, hence the milk, which is sometimes used as an antidote.
This allows a new feature of decorating your world or server with animals and eggs without having to worry about them other than the need to feed them evey now and then.
It either lasts indefinitely, in which you need to track which has taken the concoction (a small symbol appears above an egg/animal or next to the name of the tamed animal) or it lasts for 1000 in game days or there’s a blue duration meter.