BreedingLimit
S4X8 BreedingLimit
What is this?
This is a plugin designed for the Bukkit-based server Terranova, and lets admins cap the spawning of animals to reduce server lag. Admins can select which animals will have limited its spawning based on the amount of animals in a certain radius and why it did it spawn (breeding, monster egg, ...)
Configuration
The plugin configuration is quite straightforward, but here's the config.yml with some tips:
# The folling two values specify the radius (in blocks around the entity
# that is going to be spawned) and the max amount of entities in the
# given radius. Entities not included in the "entities" list will be
# ignored when counting.
range: 16
cap: 20
# This specify entities classes rather than types. The good thing about
# using classes is that you can simply put here "Animals" and every
# animal will be added to the list of capped entities, so you don't
# have to manually add "Cow", "Chicken", "Pig", ...
#
# Only living entities can be added to this list, so it won't work
# with frames, lightning strikes...
#
# Please note that classes are CaSe-SeNsItIvE, so type "Pig" rather than
# "pig".
entities:
- Animals
# This is the list of reasons that will be checked for population.
# These are also CaSe-SeNsItIvE
reasons:
- EGG
- BREEDING
For a list of all living entities see the inheritance diagram of LivingEntity. For an up-to-date list of spawning reasons see the list in the Bukkit JavaDocs.
Usage stats
Changelog
-
17/VIII/2013: 1.0
- First public release
Source code
You can see and download the source code, fork the project and send issues in my GitHub.
About the author
My name is Marcos Vives Del Sol, aka "socram8888". I'm a 18-year-old Spanish guy who likes programming useless stuff that nobody uses. If you want to report a bug, ask for a new feature, or just say hello, you can contact me in my e-mail account socram8888@gmail.com.
good plugin, throws somes errors in the console at the start, but after that plugin works as expected.
Tested in Spigot 1.10.2
Thank you!
@locgamesbr
I have NOT tested it, but adding "Villager" to entities list should work.
is possible to limit villagers? if yes, how do?
It is a limit for all mobs
Let's say I set cap of 50 and then instead of Animals I list Pig, Sheep and Chickens. Now is the cap limit 50 for each of those? Or is it combined total?
Would I be able to have 10 Pig 20 Sheep 20 Chicken
Or...
50 Pig 50 Sheep 50 Chicken
When listing specific Animals (capitals where they should be etc) they still all seem to be grouped as 'animals' in regards to limits.
perfect plugin, thx for making it.
i love that i cant spawn more chickens whit eggs or breeding.
i love that spawn eggs still work (people pay good money for the spawn eggs) ;)
smal bug (not in the plugin) people can spawn animals ouside teh 16 block area and move them to the other area :/
can you make a max live time on animals and a healt bar maybe ?
I've been looking for an up to date plugin as such. This will greatly help keep the large compacted farms under control!