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)&business=apodlesna@gmail.com&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.
-
View User Profile
-
Send Message
Posted Jan 12, 2015Im voting for I'm dumb, but I can not get rabbits to spawn.. Any ideas? 1.8 and 1.8 RB of spawns. Spigot not Bukkit.
-
View User Profile
-
Send Message
Posted Jan 10, 2015@Rhiser3ld This is by design. Minecraft has a set of implicit conditions that get checked throughout the spawning process. Spawns allows you to alter those at every step but its default state is to have no conditions at all.
Consequently your mobs are spawning in midair because they aren't told not to.
What you need to do is define some custom mobs in a file called mobs.xml and then reference them from your pack. I added the option to use vanilla mobs mainly for vehicles or riders and intended all single mobs to be defined.
In you mobs.xml file you need something like
and then use <spidey/> inside your pack instead of <spider/>
-
View User Profile
-
Send Message
Posted Jan 10, 2015@coldandtired
I have made the change, but it seems to only prevent spawning when there is not solid ground under the player. Mobs still spawn in the air. This is the case no matter where I place the select-if block.
Here I have placed it in multiple places in an attempt to solve the problem: http://pastebin.com/0Mpkd9H0
-
View User Profile
-
Send Message
Posted Jan 9, 2015@Rhiser3ld All conditions have to be placed inside a conditional block to be recognized. In this case you would need the select-if block.
-
View User Profile
-
Send Message
Posted Jan 9, 2015Hello,
I'm having a great deal of trouble following the config guide on your wiki. No matter what I do, I cannot get it to check that the ground is solid beneath a mob before spawning it - most of the mobs spawn in the air and fall to the ground. It is literally raining spiders!
Here is my config file if anyone has some insight: http://pastebin.com/1g0pYGaA
-
View User Profile
-
Send Message
Posted Jan 8, 2015@heranocia That's what I get for doing things late at night ;)
Using that config the game will spawn all mobs like normal, plus the mobs you have defined in the config. If you want to stop Minecraft spawning its own mobs you can set a flag inside the world element, or define conditions under which vanilla mobs won't spawn. You can also force the plugin to convert vanilla mobs into config mobs when they spawn. This is the page you need.
-
View User Profile
-
Send Message
Posted Jan 8, 2015ColdAndTired, I have tried your example and it is ok (I just have modified 2 tiny things) :
If i right understand, despite the declaration of the piggy mob, the vanilla pig continues to spawn as defined by default parameters from vanilla game, is it ?
Again Thx !
-
View User Profile
-
Send Message
Posted Jan 8, 2015Hi ColdAndTired ! I just see your message ! Thx for your conf example ! im going before to eat something :) then just after, i'll try it.
-
View User Profile
-
Send Message
Posted Jan 7, 2015@heranocia I knocked up a quick example here. You'll need to read each page to see what values can be changed (timer/hub/pack, etc.)
-
View User Profile
-
Send Message
Posted Jan 6, 2015Thx for your reactive answer ! i'm waiting your next update !
-
View User Profile
-
Send Message
Posted Jan 6, 2015@heranocia I used to have two versions of the plugin but when the Bukkitapocalypse happened I changed the beta one to release and assumed we wouldn't really be hearing much more about updates.
Now that the Spigot team are releasing compatible versions again I've started checking where I was and what I was doing before it all happened. Currently I'm refactoring the mob tracking into a separate plugin to allow communication between plugins to happen more easily. Once that's done (a couple of days) I'll be updating Spawns to take advantage of it and updating all the docs (and this page). Tomorrow I'll try to knock up some examples for you though.
-
View User Profile
-
Send Message
Posted Jan 6, 2015hi all, im a new minecraft player and i want to try some plugins before getting my own server ! the spawn plugin is very interesting ! i have tried the craftbukkit server with the 1.8.0 b2 version of this plugin and after multiple tries, i have noticed this version use a beta syntax ! since there is the wiki link (http://wiki.sylian.eu/spawns/mobs) , i have some difficulties to configure a simpleexample with one specific spawn ... does someone can link an archive about a simple example of files ? the goal is to test a right and functionnal example on my local server... thx by advance. PS : im oki for any recommandation, of course ! :)
-
View User Profile
-
Send Message
Posted Dec 30, 2014Hey hey, so glad to see this is still kickin'! I'm about to give Spigot 1.8 a try, and if mcmmo works ok, Spawns in next in line. Because my old 1.7.2 config/s (I didn't update to 1.7.10 until JUST before 1.8 came out) are outdated, could any of you fine peeps pm me some examples? It will just save me a lot of time starting over with only the wiki for help. The wiki does look quite informative, just a bit overwhelming for a born-again noob.
-
View User Profile
-
Send Message
Posted Dec 7, 2014@ChillerKraft 1.7.9 b6 or b7 should be good.
-
View User Profile
-
Send Message
Posted Dec 7, 2014which version do i use for bukkit 1.7.9 beta 2
-
View User Profile
-
Send Message
Posted Dec 4, 2014@Schlutteh Since the whole Bukkitopocalpyse I haven't really followed the alternatives much, so I'm not sure what the Spigot team's plans are and whether they plan to add more stuff or just keep it running as is.
Over the Xmas break I'll be catching up and seeing what new stuff I can add from 1.8.
-
View User Profile
-
Send Message
Posted Dec 3, 2014I'm gonna wait a bit until Spigot is a bit more settled, but I'm really looking forward to it! I wonder if there will be more mob attribute hooks, like horse speed etc.
-
View User Profile
-
Send Message
Posted Dec 1, 2014@coldandtired
I would like to give a paragraph on how you have help to make a impact on our server and more, with this plugin here. It has been one of the most confusing to learn but has more under the hood than what you think when reading the documentation correctly. An for ColdandTired to update this for all of us so fast is insane. You are a one of a kind Dev my man!
So I thank you personally from our server and staff (@joshuasi101 ,etc,etc)! Great work! An we did send some support for some coffee or redbull for you! :)
Huge Thanks!
-
View User Profile
-
Send Message
Posted Nov 30, 2014@Joshuasi101 That's the same issue as below.
I've just rebuilt it with 1.8 (there is not option to describe it as 1.8 but it is). Give it a go (when it's approved) and see if it works now.
-
View User Profile
-
Send Message
Posted Nov 30, 2014Hello, my name is josh i help to mod on a server and i need help. Love the flexibility of this plugin and the potential it has. Recently, Spigot has come out with a working 1.8 build, but most plugins arent fully prepared for that. When we made the switch to 1.8 to test it, i got the following error in console: http://pastebin.com/TmakzCPy
The server i work on is owned by ZachryWilsn, who i believe has helped to support the development of this plugin :)