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 Jun 4, 2014@SXRWahrheit I keep forgetting to login after a PC restart :(
-
View User Profile
-
Send Message
Posted Jun 3, 2014Any chance you could get on Steam soon? Or IRC? Or, is there a better way of reaching you? :P
-
View User Profile
-
Send Message
Posted Jun 3, 20141.7.9 b6 is under approval and contains a lot of good stuff.
The main changes are that it's now possible to block or convert vanilla mobs based on conditions.
Use a ban-mob element inside the world element to define conditions under which a vanilla mob will be unable to spawn. This replaces the old banned-mob-types element. Add as many ban-mob elements as you like.
Similarly, add a convert-mob element to replace the vanilla mob with one from the mobs file
The mob will be chosen randomly and ignore any conditions defined in the mobs file. Grouping works the same as with packs. I'll update the wiki with full documentation tomorrow.
Lastly, there is a serious bug with Bukkit databases so I've removed it and gone back to the old way. The file is only read/written then the plugin starts and stops. The moral of the story is that I love you XML and I'll never leave you again!
Read the changelog here for full details.
-
View User Profile
-
Send Message
Posted May 31, 2014ok Cold. It's clear now. Thanks for your help! And keep the good work!
-
View User Profile
-
Send Message
Posted May 31, 2014@resoluciones Spawns is really designed to get mobs into places they wouldn't normally spawn rather than changing vanilla mobs.
Mobs (another plugin) can do what you need plus I have another one coming out soon which will also be able to do it.
-
View User Profile
-
Send Message
Posted May 31, 2014Thank you Coldandtired for the reply.
I'm using the Beta (new) version, not the old one. Understood it is not easy to add mobs to the vanilla spawn cycle.
But, what about using the natural vanilla spawning mobs, to automatically convert them (as I saw in other plugins) in different mobs. In example; vanilla wants to spawn a skeleton, but as the plugin gives orders to convert a predefined percent of the skeletons naturally spawned in wither, the final spawned creature is a wither.
I've been searching for a plugin that makes that possible for weeks, and I've tested several plugins, without luck. Some of them doesn't work good with 1.7.9, others give me errors and others spawn uncontrollable quantity of mobs and I get lag (Monster Apocalypse).
Regards.
-
View User Profile
-
Send Message
Posted May 31, 2014@resoluciones You can't add mobs to the vanilla spawning cycle (at least without a lot of ugly hacking) so Spawns duplicates a lot of it and makes it customizable.
If you're using the old version you can look at the relationship between the config file's world element, the packs file, and the mobs file. At the very least you need to define your mob in the mobs file, and add it to the active-mobs element of a pack.
-
View User Profile
-
Send Message
Posted May 31, 2014Thank you cold for your quick clarification! I've been searching in the site you mentioned regarding the possibility of addindg nether mobs to the natural spawning. I modified the config.xml and put the following parameters:
<config> <world> <name>world</name> <allowed-default-spawns>blaze, cave_spider, bat, charged_creeper, ghast, iron_golem, magma_cube, mushroom_cow, pig_zombie, silverfish, skeleton_horse, snowman, undead_horse, villager, wither, wither_skeleton</allowed-default-spawns> </world> </config>
Although I didn't find any modification in the mobs spawning of the normal world.
Maybe it's not that simple, isn't it? :)
Edit: the format of the configuration was changed by this posting system when I posted this message.
-
View User Profile
-
Send Message
Posted May 31, 2014@resoluciones There are currently two versions available. The release builds are from the old, soon-to-be retired version and have their docs at spawns.sylian.eu.
The newer, sexier (to me, anyway!) versions are the beta ones and have the docs at wiki.sylian.eu/spawns
I would recommend the beta versions as they are nearly ready for release and have a lot of added functionality over the old ones.
Regarding your problem, it's the old version's docs you're reading but the beta you're using, which is why the files are generated the same.
-
View User Profile
-
Send Message
Posted May 31, 2014Hi! Congratulations for the good job to the author!
I'm sorry if I missed any information. But, after plugin installation I only get two files; spawns.db and config.xml. According with the plugin description above, I believe I should get also the files: mobs.xml and packs.xml in order to configure this plugin correctly. Could you pls let me know how to proceed in this regarding?
I'm just trying to have nether mobs and enderdragon in the normal world.
Thanks for your help in advance.
Best regards.
-
View User Profile
-
Send Message
Posted May 23, 2014@coldandtired
Thanx that would be great! My server heavily relies on NPCs for about everything and now all of them gets surrounded by mobs :P
-
View User Profile
-
Send Message
Posted May 23, 2014@Fauvic Not at the moment but if the Citizens API makes it easy I'll add it.
-
View User Profile
-
Send Message
Posted May 22, 2014@coldandtired
Is there a way to not spawn mobs around "player type" Citizen NPCs?
-
View User Profile
-
Send Message
Posted May 22, 2014@coldandtired
Ahh thanx! Now I'm getting somewhere :-)
-
View User Profile
-
Send Message
Posted May 22, 2014@Fauvic Not if you're using one of the Beta versions. See wiki.sylian.eu/spawns
-
View User Profile
-
Send Message
Posted May 22, 2014@coldandtired
I keep getting "[SEVERE] [spawns] No valid worlds found - stopping!" when I try to use this. Is my world name handled correct in the config.xml? This is my overworld.
-
View User Profile
-
Send Message
Posted May 20, 2014@Fauvic
You can add a Helmet to them. That stops them from burning in the day without the use of any plugins - just a vanilla Minecraft thing..
Shaythegoon
-
View User Profile
-
Send Message
Posted May 20, 2014@coldandtired
I've canceled the EntityCombust event with a simple plugin, just needed them spawning in the day as well. Thanx!
-
View User Profile
-
Send Message
Posted May 20, 2014@shaythegoon Check your PMs please :)
-
View User Profile
-
Send Message
Posted May 20, 2014@Fauvic You can spawn zombies during the day but there is currently nothing there to stop them burning instantly. I will be adding this soon but for now you can use Mobs, for example, to stop the burning.
The dev build is not for 1.7.9 but I'll compile it for that later today and upload it.