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.
Doesn't work anymore on Spigot 1.8.3 but worked in 1.8
@madtomic
I dunno about 1.7 - I ran it on 1.8 Spigot just fine.
This works on 1.7.9+?
Aloha,
Just dropping you a note to tell you how much I appreciate your plugin.
I put Breeding Limiter on my survival server a week ago. It's part of an "end times" story arc I'm doing, which involves famines and plagues sweeping the land. I set Breeding Limiter to not permit any more breeding, and display the message "A curse is upon the land; animals will not breed."
Plugins on Bukkit/Spigot are the only reason I'm still running a Minecraft server. They've kept the game fresh and exciting for me, and your plugin is another example of a great plugin. So - thank you! I appreciate the work you've done here :)
can translate plugin ingenious because it spoke to other, just hope that they continue to work. It runs with me just bukkit 1.7.9 but I keep coming back small error when I once again send a find him
Nice plugin, seems to work well. Blocks those annoying chicken farms that everyone was making with about 300 chickens in each!
Thanks.
@minoneer
I am sure the community would apreciate anything you manage to craft, it seems that the original devs are long gone.
Can anyone confirm that this works with current 1.7.2 dev builds? I would test myself but I would like to not stop my busy server for a plugin that probably won't work anymore.
Hello, this plugin is very good, but I have tested it, but found no tips, you can make some improvements in this regard
@minoneer
What about Ephemeralis' ChunkBreedLimit. How's that license?
In case any of the original authors read this:
Apperently you have stopped developing this plugin. It has some bugs and needs to be updated to include new mobs/breeding mechanics in more recent minecraft versions.
I have the neccessary java, bukkit and minecraft knowledge to continue development, but because of the "all rights reserved" - lizense, I need your permission to continue development.
Please do everyone here a favor and respond to this.
Regards, minoneer
Ugh! Why does every breed limiting plugin go inactive. This is so freaking annoying.
@Garrash
Seems to work.. I am curious on one thing though. This plugin affects breeding, but does it also affect natural spawns?
For example: If I don't want wolves to be bred (can get out of hand quickly with just 2), will natural wolves still spawn in the wild in their normal packs? I don't want to make them unobtainable, just don't want people multiplying them by the dozens.
Hope you two didn't give up on this plugin! Still works, but keep it working! :)
EDIT: If possible, I really wish I could take away the villager breeding (the whole stupid door trick), but still have zombie villagers curable. Right now, with villagers limit set to 0, when a zombie villager gets cured he disappears. I don't consider that breeding, especially since it is done naturally and is rare.
Does this work on 1.5.2 (Minus the pig part?)
I hate to be that pestering player, but does the breeding limiter work with spawn eggs?
Well... Both of the developers have been gone for a month... I think this plugin is dead as well... >.>...
Feature request: configurable way to despawn mobs over limit.
BUG: I can breed pigs over tle limit. For pigs this plugin works only for spawning eggs.
@spazmonkey777
We had the same problem as well. And went ahead and fixed it.
The problem is, that the Listener for the PlayerInteractEvent doesn't ignore already cancelled events. It sets previously cancelled events (by LWC, WorldGuard, etc) back to allowed, if the mob limmit is not reached. A simple change in the annotation from @EventHandler to @EventHandler(ignoreCancelled = ture) fixes the issue.
I'm hoping @emikodo or @Varunax will fix this, since it is a huge security problem. If you don't have the time for it, you can just use the version I modified. Just leave me a note :)
Regards, minoneer
@spazmonkey777
confirmed, same situation here, thnx for the info.
Thought I would post this, as it is super important.
I discovered on my server when using LWC and BreedingLimiter together it allows players to bypass LWC locks by holding a spawn egg. I don't know why this is, but it only happens when I have this plugin enabled. If I disable it, nobody can get into LWC locked chests. But once the plugin is enabled, players can hold a spawn egg, right click a locked chest, and it opens.
Very weird, but I will have to remove this plugin now :( Just thought I would report it.