BreedingLimiter
HOW TO USE THE PLUGIN
- Step 1: Download the plugin.
- Step 2: Drag the plugin (i.e BreedingLimiter.jar) from your download location and drop it into your Minecraft plugins folder.
- Step 3: Run your Minecraft server so the config.yml gets generated in the plugins/BreedingLimiter folder. You can take down your server once this has been generated.
- Step 4: Edit your config.yml
- Step 5: Bring your server back up again.
- Step 6: Play Minecraft.
Overview
This is a small plugin that allows the server admin to limit the number of animals that can be bred within an area that the server admin can specify. Individual limits can be set for any animal. If the limit has been reached for a particular animal, attempting to breed it will display a customizable breeding-failed message to the player.
This plugin does not affect normal spawn rates or spawns from chunk generation. Also, please note that this only affects breedable animals.
Features
- Limits the number of animals that can be bred within a configurable area.
- Displays a customizable breeding-failed message if the player fails to breed due to limit restrictions.
- Allows players to check the number of a type of animal and its breed limit by typing "/breedlimit [animal]"
Requirements
A server running JDK 1.7 is required to use this plugin.
Commands
/breedlimit [animal] This will display the number of [animal] currently in your area, as well as the breeding limit.
commands: breedlimit: description: A command to check the number of animals currently in the chunk and the breeding limit of that animal. Also works with villagers. usage: /breedlimit [animal] (example /breedlimit cow) permission: breedlimit.breedlimit permission-message: You don't have permission to use this command.
Permissions
permissions: breedlimit.*: description: Gives access to all the breedlimit commands. children: breedlimit.breedlimit: true breedlimit.breedlimit: description: Allows you to check the number of animals in the current chunk. default: true
Configuration
Edit the configuration by navigating to the BreedingLimiter folder (found in your plugins folder) and editing the config.yml file.
breed-limit: A list of animals and their breeding limits. Animals and limits are separated by an equal sign.
villager-limit: The limit on the number of villagers within an area.
breeding-failed-msg: The message that the player sees when they are unable to breed an animal.
area-size: The size of the area centered around the player that will have the breed limit enforced.
Configuration example
breed-limit:
- cow = 10
- pig = 20
- chicken = 30
- sheep = 20
- wolf = 5
- mushroomcow = 10
- ozelot = 5
villager-limit: 10
breeding-failed-msg: You cannot breed this animal.
area-size: 16, 16, 256
This configuration limits 10 cows, 20 pigs, 30 chickens, 20 sheep, 5 wolves, 10 mushroom cows, 5 ocelots, and 10 villagers per 16 x 16 x 256 area of land centered around the player. If you don't want the animal to have a limit, just remove it from the list.
Important Note: In order for ocelots to work, you need to spell them as "ozelot" in the config file. I'm still looking into why this is, but I think it's a problem with the API.
Current Version
3/10/13 Version 1.3
- Fixed bug with spawning baby animals from spawn eggs.
- Enforced breeding limit on chickens spawned from chicken eggs.
- Added limit for villagers.
- Added "/breedlimit villager" command that returns the count and limit of nearby villagers.
Disclaimer
The idea for this plugin came from Ephemeralis' ChunkBreedLimit, which does not currently work correctly and is out-of-date. However, I have completely rewritten and improved the plugin, and the code is 100% my own.
@Endless123
Maybe in the future. At the moment we're extremely busy till we can mend out the few bugs in our plugins.
Hey,
sorry to bother again. Do you think you have time to add the "general breeding limit" thing? :(
"I want the breed limit to be 35 in a certain area - no matter what animal. That you can have for example 35 sheeps and then limit.. or 20 sheeps and 15 pigs.. or 10 sheeps 10 pigs 10 cows 5 chicken... you know what i mean?"
Or maybe you can link the source code, and i will try to add it myself, if you dont mind
Greetings :)
@Joymo
I don't know why you are getting errors on your server. Our 1.5.1 server has been running this plugin without any problems except the carrot bypassing the pig breeding limit. I need more information on your BreedingLimiter config file, what plugins you're running, and what you (or anyone on your server) is doing when it starts throwing errors.
Any news on the error spam? Would like to use this really.
Just have a look at the Worldguard API its not the diffcult to use it.
It would be greate to use your plugin with regions instead of chunks, cause the most people are useing Worldguard.
@Joymo
I'll look into it.
@Axebyte
I'm planning on updating all my plugins once the next recommended build becomes available. I'll try to have a fix for it in the next release.
@Tr4pY
Perhaps. I'm not saying yes or no on this one because it depends on how much time I have.
Is there a way that you add the feature to use worldguardregions instead of chunks?
Works with 1.5.1 except carrots will bypass the feeding on pigs. So you can still get over that number by using carrots, a fix for this would be great!
Ehm I was doing nothing, monitoring IRC and server console. But I am running it on an active server, so people were likely breeding and such...
@Joymo
Could you be more specific as to what you were doing when the plugin threw these errors?
Plugin spams errors :(
http://pastie.org/pastes/7094009/text?key=o0huetwmpuvps8queciq
Thanks alot :)
@Endless123
Sure. I'll add it in the next update. Thanks for the suggestion and glad you like the plugin!
Would it be possible to add a config option - uhm how to explain.
I want the breed limit to be 35 in a certain area - no matter what animal. That you can have for example 35 sheeps and then limit.. or 20 sheeps and 15 pigs.. or 10 sheeps 10 pigs 10 cows 5 chickesn... you know what i mean?
That would be awesome
Cant believe this plugin only has 100 downloads :)
Exactly what i needed - works perfectly so far. We run it on a huge survival server with 135 people online at peak times :)
Thank you!
@emikodo
Alright, and I have no idea what caused it... But I will keep an eye out for it.
@x_clucky
It would be nice if you told me what you were doing when this occurred. There's no way to tell from the stack trace. Also, version 1.2 is outdated, so this may already be fixed in 1.3.
GUESS WHAT! I found an error in version 1.2 :'(
@zedadiaswick
Added limit for villagers in Version 1.3. Just waiting for the file to be approved.
@x_clucky
Mobs created from monster eggs were limited from the beginning, but spawning baby animals from eggs was unregulated. This is fixed in Version 1.3. We also added a customizable limit for villagers, as well as a limit on chickens spawned from chicken eggs. File is uploaded but waiting approval.
@emikodo
is there any way you can limit mobs being created from monster eggs as well, and also villager breeding? I allow players to craft and exchange monster eggs and use them to breed animals. Not sure if you already do this or not, I ironically don't play Minecraft much xD I mostly enjoy administrating.