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

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.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    63985
  • Created
    Aug 17, 2013
  • Last Released File
    Aug 17, 2013
  • Total Downloads
    1,608
  • License

Categories

Members

Recent Files