spawns
Spawns is a plugin for Bukkit and Minecraft that allows you to fully customize the spawning behaviour of mobs on your server.
Features
- tweak the default Minecraft spawns or replace them completely
- set mobs to spawn under conditions they never normally would
- block certain mobs from ever spawning
- cause mobs to spawn with potion effects, equipment, saddles, etc.
- cause mobs to spawn in different variants, like powered creeper, wither skeleton, etc.
- mobs appear in the world in the same way as they do normally, so are compatible with all other plugins
Dive right in here to see how to make config files or keep reading for an overview of Minecraft spawning.
Default spawning
Minecraft spawning works like this:
Every spawn cycle (1 tick or 1/20 second by default for hostile mobs) the game makes a list of all the chunks around each player, up to a radius of seven chunks. Each chunk will only be counted once, even if that chunk is around several players.
Once this list is complete a mob limit is calculated. The limit is higher the more chunks are in the list. If the limit is lower than the current amount of a mob type in the world then the cycle will be cancelled.
If the limit is not yet reached a random block from each chunk in the list will be calculated and this chunk will be used as the centre point for a pack of mobs to spawn around. In order to continue, this block must be water for water mobs (only squid so far) and air for any other type of mob.
If this block is suitable then a maximum of 12 random blocks are chosen from up to 20 blocks away, but always at the same height as the centre block.
Lastly, The individual blocks are checked that they can physically fit the mob, so they need to be air, have air above and an opaque block below. The type of mob is chosen based upon the matching conditions (biome, height, floor block type, etc.) and the final mob is chosen randomly from all mobs that are eligible to spawn there. All other mobs in the pack will be the same type.
Permissions
spawns.can-reload-config, which allows the user to reload the config. Default is Op.
spawns.can-count-mobs, which allows the user to display a summary of mob amounts in a world. Default is Op.
Commands
/reload-spawns, or /rs, which reloads the config without having to reload the server. Any mobs already in the world will be unaffected by any changes in the config.
/count-mobs, or /cm, which displays a list of mob numbers in the world. Add a world name argument to specify a world (optional if run as a player) and / or a mob type argument to choose one type of mob to count.
Update checking
If you like, you can set the plugin to check for any newer versions that get released. To do this add an element to the config.xml file, like this:
<check-for-newer-version/>
When this element is present the plugin will report if it finds a newer version. This only works for release builds so you won't be bothered by any beta or dev builds. To disable this checking simply remove the element.
Note that no update will be downloaded even with this set.
Examples
I would love to get any example config/packs/mobs files you have created to add to the docs, so if you have one you're proud of send it in and I'll add it.
spawns took a lot of work, so if your server is enriched by it please consider sending some love my way!
<a href="https://www.paypal.com/cgi-bin/webscr?return=http://dev.bukkit.org/server-mods/mobs/&cn=Add special instructions to the addon author(s)&[email protected]&bn=PP-DonationsBF:btndonateCCLG.gif%3ANonHosted&cancelreturn=http%3A%2F%2Fdev.bukkit.org%2Fserver-mods%2Fmobs%2F&lc=US&itemname=spawns+%28from+Bukkit.org%29&cmd=donations&rm=1&noshipping=1¤cycode=USD"><img class="aligncenter" alt="donate" src="https://www.paypalobjects.com/enUS/i/btn/btndonateLG.gif" /></a>
If you're penniless or like spawns but not that much I'm also partial to TF2 items. Send any you don't want my way! STEAM id: coldntired
If you don't know what TF2 is, then start playing! It's free and fun!
For other projects, links, help, etc. please visit the main website.
You can also follow sylian.eu on Twitter for updates.
Hi,
I'm making a roller coaster that goes underground and a room it passes by I want chickens to fall from the ceiling and into lava. I want to tweak this plugin so the chickens only spawn when you go by the room and then stop after you pass a certain block. So far I have only been able to spawn mobs around me, not around spawners. Could I get some help?
@coldandtired
I've tried a few more Bukkit builds since, but still no luck.
@Schlutteh I'll look into it. I'm about to lose Internet access for a few days though :(
@coldandtired
I updated (finally!) but they still don't spawn mounted on any <riding> mob. Could you check it out?
@Schlutteh The code hasn't changed at all so it's possible there's a bug or something has changed in Craftbukkit.
I've just rebuilt with 1.8.7 - give it a go and see if it still doesn't work.
http://dev.bukkit.org/bukkit-plugins/spawns/files/46-1-8-7-b1/
Anyone having trouble with <riding> ?
My mobs are spawning with the mob they're supposed to be riding, but just standing in the same block space and not mounted.
Just me?
@Schlutteh Mobs can already be made to spawn riding boats but I'm not sure how boats are set to despawn. I'll have a look.
@coldandtired
I have another random question, I know that boats aren't the same kind of entities as mobs, but would it be possible to define a boat in mobs.xml (to be able to spawn a mob riding a boat, and the boat can despawn) ?
Please don't go to any effort to implement this, it was just something I was wondering while cleaning up random boats left behind by my sea-faring endermen!
@ButterKing5918 I'm sure one of them would. There haven't been many changes in the last few versions.
Does this work for the Spigot/CB 1.7.10-1.8.X version (The protocal hack)? This might sound dumb but some plugins like 1.8 plugins work for previous versions too.
@zachrywilsn Sorry, I only checked the email notification I got and it didn't include the screenshot :) I'll get a new build done tonight and uploaded. I do appreciate you letting me know as I don't spend any time on any Minecraft forums and generally have no idea when updates get released. And, as always, any donations are very welcomed <3
Real work is keeping me away from the PC most of the time but the current state of the plugins is like this:
Mobsistence has been hugely updated to support other types of situations. It's now possible to store custom data per player, plugin, mob, chunk, and block and a lot has changed under the bonnet/hood. It's not released yet as it's incompatible with the older versions and I want to make sure it can do everything Spawns/Events needs it to do.
Spawns and Events are being refactored to share common code (including the new hooks for Mobsistence) and possibly a new config style (pretty much the same syntax but without the xml tags). At the very least they will both have their configs synchronized so the same actions will work across both.
All three plugins are also reducing their dependencies on Bukkit to make it easier to switch to whatever the successor is.
The short version is I'm spending all the time doing this and not implementing new features so if there is something new and interesting added to any of the post-Bukkit updates that I'm missing please let me know and I'll prioritize it.
$25.00 sent for support. Thanks for the last update. Hope to see a 1.8.5, if not no worries. The Donation is my personal thank you as I have done in the past!
Keep up the amazing work!
Just a heads up, Take your time.
@zachrywilsn
All I said was "please don't demand updates", and it you did seem like you were demanding. Don't start flaming in response, relax guy.
THANK YOU! @ColdandTired You never seam to disappoint! :)
@Schlutteh
I was not demanding, I was excited. An I have done what I can to support this developer already. So please don't just chime in your 2 cents, when you do not know what you are saying. Sorry if my post was unclear. There was a few times ColdandTired did not see a update came out. I was just here to keep everyone informed not demanding just need to know if all is still active etc.
Here is a version built with 1.8.4. I haven't had time to test it though!
@zachrywilsn
Please don't demand updates.
1.8.4 is out on Spigot now! :) :)
Please update! Thanks!
Hello, I don't want to do any major changes to the spawning system, just increase the radius in where all vanilla mobs can spawn and increase the radius from a player in which they can move, but this plugin doesn't do this. Can somebody give me some help with it? Is the provided config.xml file sufficient if I change the radius settings there?
@Schlutteh They should be working fine. I'll update the wiki now and you can see the available rabbit-types here - https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Rabbit.Type.html