I've encountered this problem on a multiplayer server, where a player has built such a farm in my town. It quickly started to cause serious problems.
I've searched for potential duplicates but could not find anything.
This very simple mechanism can cause exponenial loss in server performance. Anyone can easily create it, and it just requires staying AFK for some time.
Knowing that:
a) chickens cannot despawn.
b) chickens lay eggs.
c) eggs can be used to spawn more chickens.
A very simple mechanism can be built that can completely destroy server performance over time.
This farm can also be used as a lag bomb, when the player loads the chunk with this farm they'll start to render thousands of chickens at once, potentially crashing their game.
Make a box to fit all of the chickens that are going to spawn here. One block can fit 24 entities without them dying from entity cramming. A 10x10 box can easily fit 2400 chickens.
Fill the floor with hoppers all pointing to the center of the room.
Place a dispencer in the middle and create a simple redstone circuit that is going to activate the dispencer.
Lure a chicken into the box.
It should look like this:
[media]
Now stay AFK and wait for a chicken to start laying eggs.
At first, the contraption does not seem problematic. However, as soon as the second chicken appears from the thrown eggs, they both are going to start laying eggs. Then 4. Then 8. Then 16. Then 32. Chickens are going to grow in numbers exponentially, faster and faster each time, very quickly contributing to the server lag.
Solution: as soon as the passive mobcap reaches its max, make it impossible for the eggs to spawn more chickens.
Attachments
Comments 10
This is not something fixable without removing the chickens laying eggs, or chickens spawning from eggs feature... player made entity spawning (eg spawn eggs) isn't limited either, so doing that for eggs (which only player (made contraptions) can throw) doesn't seem like a solution mojang would do. (maxEntityCramming should already take care of the problem, so if you turn that off, the lag is all on you.)
Could you clarify this report? This ticket seems to be reporting a performance issue with chicken farms, but after reading the solution you seem to be reporting that chickens can still be spawned from eggs when the passive mobcap has been reached (which is a different, possibly WAI, issue).
The issue is very obvious. Because eggs can spawn chickens ignoring the mobcap, and that eggs can be easily produced from other chickens, and that eggs can be thrown automatically, and that the more chickens spawn the faster the performance stars to drop, it all leads to performance loss. It should not be this easy to lag the server.
Thank you for your report!
However, this issue is Invalid.
You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit Minecraft Suggestions on Reddit or visit the Feedback website.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
"Let Mojang decide" doesn't work when there are many invalid reports being created each day. If you want to request a review, I think the proper place is Discord.
i can confirm chickens spawns from eggs when 500 chickens and lag (i do not remember what mob cap is but smaller 500)