NoSpawn
NoSpawn - A simple mob control plugin:
Version: v1.9.6
Yes, it works with 1.8!
Features:
- Prevent any mob you don't like form spawning
- Very easy to use
- Works with multiworlds
- Configure each world individual
- Edit config on the fly!
- Block mobs from specific blocks
- Spawn mobs with a command though they are blocked!
- Permissions support!(Vault, Bukkit Permissions and OP)
- Optional limit the number of Mobs
- Allow/Deny spawner Eggs
- Allow/Deny spawns from spawners
- Allow/Deny jockey spawns
Notice:Bukkit updates shouldn't break this plugin so if the version in the file discription is lower than the actual bukkit version it should work fine :)
Configuration:
After installing the plugin (just put the .jar file into your plugin directory) it will create a NoSpawn folder within your plugin directory.
In this folder there will be a configuration file where you can choose which mobs are allowed or not.
The global block blacklist blocks all mobs to spawn on the specified blocks on the specific world.
It can individually be enabled and disabled for each mob (default is enabled), to see how look at the commands.
If the global block blacklist is enabled it will add to the blacklist of the specific mob for example:
All mobs are forbidden to spawn on grass and cobblestone, but in addition only pigs shouldn't spawn on cleanstone too. So you add the cleanstone to the blacklist of the pig and they complement one another.
If you don't want a mob to spawn on specific blocks you can put these blocks on the blacklist for the specific mob.
Please separate the block id's with a ";" (without the quotes), this syntax is used for the global block blacklist too.
See example below:
properties: RefreshTimer: 20000 worlds: world: creature: Creeper: spawn: false BlockBlacklist: '' Limit: 1 UseGlobalBlockBlacklist: true Chicken: spawn: true BlockBlacklist: 2;3 Limit: 0 UseGlobalBlockBlacklist: true Sheep: spawn: true BlockBlacklist: '1' Limit: 3 UseGlobalBlockBlacklist: false . . . properties: TotalMobLimit: 10 GlobalBlockBlacklist: 1;4 AllowSpawnerSpawn: false AllowEggSpawn: false DenyJockeySpawn: false
After restarting/reloading your server the unwanted mobs will be disabled on the configured world.
Note: If you have more than one entry in the blacklist the quotes will disappear but the plugin will still load the blacklist!
If you don't want to blacklist some blocks you can ignore the Blacklist.
The limit option sets a maximum of mobs of that mobtype that can spawn.
In the example above the maximal number of sheep for example is 3 so there are only 3 sheep on the whole world.
If you set the limit to 0 (default) the limit is disabled.
The TotalMobLimit sets a total maximum of ALL mobs on the world, so if you set it for example to 10 there will only be 10 monsters on the entire world.
The RefreshTimer is an option that tells the plugin in how often it will check the number of mobs on the world. The default is 20000 ms (20 seconds).
The config node "world" is the name of the world you configure.
The plugin will detect new worlds automatically if they are loaded and adds them to the configuration file so you don't need to add them.
Commands:
If you want to configure the plugin from the game you can use :
/nospawn allowspawn <worldname> <mobname> : To allow a mob to spawn
/nospawn denyspawn <worldname> <mobname> : To block the mob
This will change the plugin on the fly and you don't need to reload anything!
If you want to despawn a certain type of mobs you can use:
/nospawn despawn <worldname> <mobname>
To change the limits you can use:
/nospawn setmoblimit <worldname> <mobname> <ammount> : To limit a certain mob
/nospawn settotalmoblimit <worldname> <ammount> : To limit all mobs
If you want to change the timer you can use:
/nospawn settimer <milliseconds>
To enable or disable the global block blacklist for a specific mob use:
/nospawn usegbbl <world> <mob> <true/false>
To edit the global block blacklist use:
/nospawn addgbbl <world> <blockID> to add a blockID to the list
/nospawn delgbbl <world> <blockID> to delete a blockID from the list
To edit the block blacklist use:
/nospawn addbl <world> <mob> <blockID> to add a blockID to the list
/nospawn delbl <world> <mob> <blockID> to delete a blockID from the list
To reload the config use:
/nospawn reloadconf
Permissions:
You can use this commands if you are an OP or if you have installed permissions and use these permissions:
- nospawn.allowspawn
- nospawn.denyspawn
- nospawn.despawn
- nospawn.setmoblimit
- nospawn.settotalmoblimit
- nospawn.settimer
- nospawn.useglobalblockblacklist
- nospawn.editglobalblockblacklist
- nospawn.editblockblacklist
- nospawn.reloadconfig
Metrics
NoSpawn uses the Metrics system to collect some data to determine the usage of the plugin.
This will help the plugin developers to see how many servers are using the plugin and what versions these servers are running,
If you don't want this, edit /plugins/NoSpawn/config.yml and set sendMetrics to false
If there are questions or errors please post them so I can fix it ;)
Donations:
If you like my plugin, feel free to donate some Bitcoin or via PayPal (Donate button at the top right hand corner)
Bitcoin address:
1Hg9shJTUjTZjwWGeQoupS4iszm6JUYMLi
Changelog:
Version 1.7.2
- Added commands to reload the config and to edit the blacklists ingame
Version 1.7.1
- NPE fix if global blacklist contains nothing....
Version 1.7
- Added a global block blacklist
according to "Spawn mobs with a command though they are blocked!": how do I spawn a horse if I disabled horses from spawning in my world? a spawnegg does not work (i am OP) and essentials /spawnmob does not yet support this type of mob.
@stfupls2
With the newest build of craftbukkit the blocking of horses now is working :)
@stfupls2
I think you missread it the error lies with bukkit not with me and when they will fix it..
I can't say
@xXLupoXx
Thanks for the quick reply and that you will inform me when its fixed. So when version 1.9.2 is fixed am I able to disable Horses? And how long should it take? ~ ish
Thanks!
@stfupls2
Not possible atm cause somethings missing in the dev version of CB but version 1.9.2 should work when this is fixed by bukkit... I will keep you informed :)
Please update to 1.6 to stop Horses spawning, I'll beg you!
@Lukethenuke
At the moment this more or less impossible due to the structure of the plugin... But I'm playing with the idea of recoding the whole thing and then I could do this I think. But I can't say if and when at the moment sry.
@xXLupoXx
I've seen it, thanks
@xXLupoXx
Hey there I was wondering if it was possible to add new blocks for mobs to spawn on. Right now I've utilized the block blacklist but now that I've banned the blocks that farm animals spawn on, I need a way to force them to spawn on a new block. In this case I need them to spawn on Soil blocks. Is there a way you could code something like that in?
@PassWordE
I will write a fix for this ;)
Edit: So fix is uploaded, waiting for approval.
@xXLupoXx
yes..
can't use MyPet with it?
@PassWordE
Are you by chance using MyPet?
15:52:51 [WARNING] [NoSpawn] Task #60 for NoSpawn v1.9.1 generated an exception java.lang.NullPointerException at me.xXLupoXx.NoSpawn.Util.MobCounter$1.run(MobCounter.java:51) at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java :58) at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHea rtbeat(CraftScheduler.java:344) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:5 09) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:2 27) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:4 72) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java :404) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:5 73)
@Pickerbenny
Made a version with a config node for this... waiting for approval :)
hey my spawn eggs arnt working... help please
@qwertyjl
Hmmm I don't think so because it generates a list of mobs to block from the bukkit api... You could test it if you make a little testserver with both plugins and then see if the jungle spider shows up in the NoSpawn config.
Does this work to remove Jungle Spiders from Biomes O' Plenty on MCPC+?
If I block the wooden planks, does it do it for all the different types?
this is great but is there anyway to stop zombie villagers from spawning
Thanks for the update, my server was scheduled to release today and mobs spawning was the only difficulty we were having. Now we're ready to go.