DisableMobs
DisableMobs
By: Jakeob22
Recommended Build:
Version: 1.6 for Bukkit build 1.6.1 - R0.1
Features:
- Allows a bukkit server owner to choose exactly which creatures can spawn and which are blocked from spawning.
Description:
This bukkit plugin will easily allow the server owner to choose which mobs will spawn and which won't. The first time you run it, a configuration file will be generated with the names of all of the minecraft creatures. You can set each creature to true if you want them to spawn, or false if you don't want them to. For example, if Blaze is set to true, blazes will be allowed to spawn. If Blaze is set to false, you won't find any Blazes in your game because they are blocked from spawning. This is the same for every creature on the "Supported Creatures" list. Every creature is automatically set to true when you start except for the creeper. If you add this plugin to your server, and don't touch the configuration at all, everything will still be able to spawn except for creepers. You can use this plugin on almost every server! It becomes especially useful if you want to make a zombie or creeper apocalypse and set everything to false except for the zombie or creeper. For some reason, if you only leave one creature true, it will spawn insane amounts of that creature! Have fun! ;) Visit us on the Bukkit Forums!
I've added MCStats support. This allows me to track the amount of people using my plugin and how my updates affect people. This will ensure that I get a minor amount of feedback to work with. However, if you are unconfortortable with sending data to me, go into the "PluginMetrics" file in your plugins folder and set "opt-out" to true. Thanks! :D
Supported Creatures:
- Bat
- Blaze
- Cave Spider
- Chicken
- Cow
- Creeper
- Ender Dragon
- Enderman
- Ghast
- Golem
- Horse
- Magma Cube
- Mushroom Cow
- Ocelot
- Pig
- Pigman
- Sheep
- SilverFish
- Skeleton
- Slime
- Snowman
- Spider
- Squid
- Villager
- Witch
- Wither
- Wolf
- Zombie
Commands:
- /killmobs [world] - Kills all mobs in a given world. Ops can use it, but I'll add a permissions node soon.
Changelog:
1.6
- Added support for horses
1.4
- Added support for the 1.4 creatures
1.3.1
- Added MCStats.org support
1.3
- Added /killmobs [world] command. Kills all mobs in the world chosen, only ops can use it.
- Changed some things in the config. Regenerate and configure!!!
- Updated to most recent RB
- Cleaned up code
1.2.2
- Added multiworld support
- Updated to most recent RB
- Cleaned up code
1.2.1
- Added golem to the supported creatures
1.2
- Updated to most recent RB
- Added Ghast to the supported creatures
- Added Ocelot to the supported creatures
1.1.1
- Added SilverFish to the supported creatures
1.1
- Initial Release
- Ability to choose exactly which creatures spawn and which don't
Please post all problems or suggestions below! Thanks! :)
Quick question before I use this. Will this make mobs not spawn from spawn eggs also? if not, could you please add this configuration or point me in the correct direction for a relevant plugin? I need a plugin to prevent the natural spawning of animals, and allow animals to spawn from spawn eggs and other plugins only.
Same problem here, got my server test-running for an hour now and still no mobs spawning even tho i just disabled slimes and ghasts :/ No error shown in the console either.
Hope you can fix this somehow, your plug-in always did a great job!
Doesn't work, rather than disabling 1 mob (slime's) it disables ALL the mobs. ran for about 10 the server for about 10 minutes before posting this.
@bjornleijdstrom
Make sure that you have it running for at least 5 mins after switching the settings. Please let me know if you still get the error after this. :(
It doesnt spawn any mobs at all, although i have almost all set to true on some world. NO error though, running latest 1.3.1 (recommended)
I updated my code. Please let me know if it's still glitching up for you guys, I got it to work this time. Also note that you will need to delete your config and let it generate another one. It won't work if you don't do this!
@jakeob22
Thanks for the reply. I'm looking forward to using this plugin for my survival games. It looks like a great plugin, nice & lightweight, no nonsense.
@suicyd
Yeah, it looks like R4 messed it up. I think I'll update when 1.3 comes around. Just in case it changes anything to avoid extra work. ;)
It looks like this may be broken for 1.2.5 R4. When I use the plugin, regardless of how I configure it, nothing spawns. I can't even get spawn eggs to spawn anything. For example, I have villager set to true, and a villager spawn egg doesn't spawn anything. Also, I had zombies set to true and every other hostile mob set to false, yet running around at night for two full nights I saw no zombies. Looks like Zaratusa had the same problem on R4.
Unfortunately, my server host no longer has an option to use 1.2.5 R1, and I can't find any other current plugins that do the job of this one.
Any plans of updating for 1.2.5 R4, or are you waiting for MC 1.3?
I've set the pigmen in the nether on true, but they does'nt spawn. What I'm doing wrong?
world_nether:
Blaze: true
Ghast: true
Magma Cube: true
Pigman: true
I'm using Bukkit 1.2.5 R4.
@RingOfStorms
Awesome suggestion! I'm adding to my planned updates right now. :D
Are there any ingame commands?
It would be greta if you could add some commands that way you can disable mobs during gameplay, like "/dm <mobName> <true|false>"
as well as a reload config command. /dm reload
@lemon42
I might be able to include that. It would just be a bit more difficult.
Is it possible to disable certain mob IDs from spawning? I mean that would be nice to have as a developer feature, or as when there are new mobs added and you didn't update the plugin yet! :)
Nice! Looking forward to it!
@Bluehog4u
BUILD_IRONGOLEM When an iron golem is spawned by being built
No fear! I found this in the java docs! :D It will be included. I'm planning an update Tuesday - but no promises.
@jakeob22 - Just FYI I mean you have to build them in the world by placing the blocks, not the crafting table.
But yeah, Iron Golems spawn either by the player building them, or naturally spawn and RESPAWN in villages with certain requirements met. (The later, natural spawning, is what I'm hoping to disable)
@Bluehog4u
I didn't know this was possible! :P I'll look into it and attempt to include it in the update.
@TheOneWhoOwns
Thanks! :D
Great plugin good for laggy servers or servers that dont need that mob and could use the extra memory.
@jakeob22 By build I means the vanilla way players makes Iron Golems, placing 3 iron blocks in a T shape and then make it a + by placing a pumpkin on top. (Similar to Snowman creation)
o@o
===
o=o
@ = pumpkin (placed last)
= = Iron Block
o = any blocks