ThrottleMobSpawn
Mob grinders in Minecraft are player-created structures that cause a large amount of mobs to spawn in one area so that they can be killed for items and experience. These can be built using mob spawners, or just general spawning due to low light levels. This can cause lag, especially if left to build up for long periods, and is quite frankly a very easy way of getting large amounts of experience and items. If you don't want lag or don't want to make the game too easy, you can disable both kinds of mob grinders using this plugin.
It works by monitoring the number of spawns per chunk of different kinds, and capping them at a given rates, as set in its config YAML. The default cap is 16 spawns per hour. This should not affect the natural spawning rates of mobs, but it should prevent mobs from being artificially caused to spawn more often.
Full customisation is possible, including setting individual spawn rates for all known causes, changing the time interval and max spawns per cap and changing the global and individual spawn rates per world.
Features
- Caps the spawn rate of mobs to a maximum number in a given time frame per chunk
- Different worlds can have different rates
- Different types of spawning can have different rates e.g. Spawner, Breeding, Natural etc
- Rates are settable in the config file before running or in a command while running
- Reduces or eliminates lag caused by mob grinders
Future Development
- Rewrite to make it rule-based, where you can set up multiple rules for the same type of spawn at different intervals and amounts
View the source code or contribute to the project on Github.
Commands
Command | Description |
---|---|
/SetMobSpawnRate [max spawns] [interval] | Sets the server-wide default spawn rate to a maximum number of spawns in a time interval in whole minutes |
/SetMobSpawnRate [spawn reason] [max spawns] [interval] | Sets the server-wide default spawn rate for a specific spawn reason to a maximum number of spawns in a time interval in whole minutes |
/SetMobSpawnRate [world] [max spawns] [interval] | Sets the default spawn rate for a given world to a maximum number of spawns in a time interval in whole minutes |
/SetMobSpawnRate [world] [spawn reason] [max spawns] [interval] | Sets the spawn rate for a specific spawn reason within a given world to a maximum number of spawns in a time interval in whole minutes |
Permissions
- throttlemobspawn.setmobspawnrate (default op) - Allows use of the SetMobSpawnRate command
Configuration
See http://dev.bukkit.org/bukkit-plugins/throttlemobspawn/pages/configuration/
Troubleshooting
This plugin uses Java 7
If you get the followed error on starting up the server with this plugin installed "Unsupported major.minor version 51.0". This means you are using an out of date version of Java. If you don't know how to upgrade, please contact your server hosting provider and ask them for help in upgrading to Java 7, or contact Oracle customer support. Mac OS X users require JDK 7 instead of JRE 7.
Donations
If you'd like to contribute towards the continued development, support and maintenance of this project, please consider joining me on Patreon, and making a one-time or recurring pledge.
Help
If you need help you can leave a comment below and I will get back to you as soon as I can. You can also join my IRC chatroom using the following link. Please note, I am not always at my keyboard! http://webchat.esper.net/?channels=XHawk87&prompt=1
@XHawk87
Thank you :)
@erik1988
It should work in 1.9 assuming they didn't break the Bukkit API.
The source code is now up on Github: https://github.com/XHawk87/ThrottleMobSpawn
This is a must-have plugin for me. I hope it will still work well on 1.9. Also could you upload the source to github?
Thanks
Seems to be still working on 1.8 for me. I do have a lot of sheep tho...
@ThunderpunchYT
I don't see any reason why it shouldn't work in 1.8, however it cannot increase the number of mobs that spawn, only decrease. Its main purpose is to limit mob grinders and farms to prevent server lag and economy imbalances.
Hi, i was wondering if throttlemobspawn will work in 1.8 ? this seems like the best plugin to make more mobs spawn per chunk. Also does this plugin include making the mob limit increase? thanks
@BrutalNetwork
ThrottleMobSpawn does not take control of spawning rates, it throttles them. You cannot use it to change XP or drops of mobs, or increase spawn rates, or modify the number of mobs spawned at once. You just set the maximum number of mobs that can spawn per chunk, per type of spawn, over an interval, and it caps it at that.
Hello, im not sure if this is a similar plugin, but on Gontroller when i have a mob spawner, it roughly spawns 1 every 20-30 seconds, i want to do this on my server, but i want to give them more XP per mob, would i use this, or would i need this and another plugin?
Very decent plugin, great job, works perfectly with the latest bukkit builds!
@XHawk87
Seems to have stopped, i guess it was a bukkit issue.
@ManBeastPigDev
Thanks for letting me know. I will look into it, however, CraftBukkit 1.7.2 dev build is currently quite broken, there may not be anything I can do about it until at least the first beta release.
P.S.
I was unable to reproduce the error. Please send me a http://pastebin.com of the full error log, as well as the config.yml and the exact command you typed to cause the error, and any other details that may be relevant.
Its broke in 1.7.2. 16:49:08 CONSOLE: exception executing command 'setmobspawnrate' in plugin ThrottleMobSpawn v0.2 16:49:08 CONSOLE: java.lang.ArrayIndexOutOfBoundsException: -1
@expgames
Yes. If you set spawns to -1 it will be unlimited.
This would set the world named "world_name" to have unlimited spawns. Alternatively...
This would set all works to default to unlimited spawns, and the world named "world_name" to 16 spawns in the interval.
There's any way to complete disable the plugin on some worlds ?
@ManBeastPigDev
Are you using Spigot? I have heard they have a bug which loses the comments section of YAML files, particularly on first install.
You can find the original config file by unzipping the JAR.
The config example disappears as soon as you set anything. could you make a page with it on as i didnt see it in time?
@MinecraftAdmin
There are no ways for us to know until development starts on CraftBukkit 1.7, however it is unusual for the Bukkit team to make plugin-breaking changes to the API. If they do, they will announce it on the home page http://bukkit.org/.
Will any API changes in 1.7 require this plugin to be updated?
I do not check the curse pages often. Please only leave comments on the Project Site. Thank you!
@ManBeastPigDev
No updates should be necessary. This plugin is Bukkit API compliant and the API controlling mob spawning has not changed since 1.5.