Limit breeding and mob farms to reduce server lag
作者: TeaMaster / 下载量: 1624 / 0.00元
TeaLimit is a simple animal and mob spawn limiting plugin.
This plugin limits natural spawns, breeding spawns, chicken egg spawns, chicken egg spawns thrown from dispensers, nether portal spawns and spawner spawns.
Whenever an animal or mob is about to spawn, it checks the surrounding area for entities of the same type. If number of entities in that area reached the limit, no more entities of the same type can spawn. So for example if the limit is set to 10, player can only have 10 chicken in that range, further breeding or use of eggs in that area won't work anymore. It will work for other entity types, until they also reach that limit.
I've made this plugin to reduce cpu usage on my server due to oversized animal and mob farms and it helped a lot since then. I decided to share it here and maybe some may find it useful.
Config
range - size of surrounding area to check (default: 32)
breed-limit - limit for breeding and chicken egg spawns (default: 16)
natural-limit - limit for natural, portal and spawner spawns (default: 16)
spawnegg-limit - limit for spawn eggs (default: 16)
Installation
Just put the plugin in plugins folder and restart the server.