MobspawnSettings
MobspawnSettings
This mod allows you to control how many mobs will spawn. You can control the settings for both peaceful and aggressive mobs.
Functionality:
- You can choose which events should be controlled (chunkspawning, normal spawning etc).
- You can choose for every mobtype individually:
- . If every mob should spawn or only every second, third, forth etc. Whether a mob spawns or not is chosen by random.
- . How many mobs spawn when minecraft intends to only spawn one mob. You can set a minimum and maximum amount of mobs to spawn where the one mob should spawn, the amount of mobs spawning will be a random number between minimum and maximum.
Feel free to ask any question! Feedback is appreciated :-)
Intended use
It's supposed to make a minecraft server more fun.
Examples: If you're missing Zombies, you can easily increase their amount. If you're annoyed of all the creepers destroying your town, you can decrease their amount drastically, so you don't have creeperholes everywhere If you are really lacking pigs, you can increase their amount too.
Config
For the config, please read here
Commandline
Reload the config.yml file: /msreload
Helping / Getting involved
I appreciate all the help I can get. Both filing bug reports (please create tickets, don't use the comments) and submitting patches for bugs and new features is helpful and makes you an awesome person ;-)
If you have any questions about the source code, don't hesitate to ask.
I would be very grateful if you could license forks under a license similar to zlib license, but since it's licensed under the zlib license, you can basically use whatever license you want to. Telling me about forks would be really awesome, too :D
Changelog
1.10
Fix:
- Merge bugfixes from 1.8 and 1.9 (sorry, I failed at using git)
1.9
Fix:
- Fix NullPointerException when calling msreload
Known bugs:
- Bugfix from 1.8 not in it (sorry, I'm too stupid to use git...)
1.8
Fix:
- horses (minecraft calls them EntityHorse)
1.7
Add:
- new mobs and spawntypes
1.6
Add:
- command msreload (reload config file)
- MinLightLevel and MaxLightLevel
- McStats
1.5
Fixed:
- Spammy output bug
1.4
Added:
- Spawntype Custom (when plugins spawn mobs)
Fixed:
- Multiworld now really works (fixed reading config)
1.3
Added:
- New mobs
- Option to limit spawn area to blocks and biomes
1.2
Added:
- Set health
1.1
Added:
- Multiworld support
0.3
Added:
- Set SpawnEveryX to zero to disable spawning
Fixed:
- When MinSpawnAdd and MaxSpawnAdd are equal, the plugin doesn't crash anymore
0.2
Fixed:
- now works with java 1.6
0.1
Added:
- initial release
- config seems to work
- managing amount of mobs spawning seems to work
Btw
Feedback on how to improve the visual apperance of this page is very welcome! Sorry, I'm just not good at that sort of stuff... :-(
-
View User Profile
-
Send Message
Posted Feb 9, 2013I would like to have Cavespiders and Wither Skeletons spawn under a certain Y, i am not sure i fully understand how this works.
Is that possible, or should i try another config?
-
View User Profile
-
Send Message
Posted Feb 2, 2013@Takutai
Yay for stupid java string comparison
When exactly do they spawn? Since you're able so program, you could log event.getSpawnReason() in onCreatureSpawnEvent (you get the log with MsMain.getLog() ). Maybe it's a plugin spawning them?
-
View User Profile
-
Send Message
Posted Feb 2, 2013@sycoso
lol No problem, I already altered the code to fix it after realizing the problem, now all I need to figure out is why skeletons are still spawning, maybe misnamed or something?
-
View User Profile
-
Send Message
Posted Feb 2, 2013@Takutai
Thank you for reporting that bug, I just found the reason (sadly it seems like the enderdragon isn't spawned like the other mobs and I couldn't find a way of preventing him from spawning [yet]). It seems like the multiworld code never actually worked (stupid small bugs...) but nobody ever realized that. I'll upload a fixed version soon (it'll probably take curse a few hours to verify the file, so don't stay here pressing F5 ;) )
-
View User Profile
-
Send Message
Posted Feb 2, 2013http://pastebin.com/index/ymZA781d
all of the lines under default were missing 2 spaces according to a link I found, cannot seem to find it now, was called something along the lines of "mobspawnsettings r3" had a small example of the world code that had 2 more spaces then the I had downloaded for multi-world did.
-
View User Profile
-
Send Message
Posted Feb 2, 2013@Takutai
Where is the spacing broken in the default config? Would you mind posting your entire config on pastebin? :D
-
View User Profile
-
Send Message
Posted Feb 2, 2013@sycoso
I think I found part of the problem, some of the spacing was off in the default file. So at the moment everything appears to be working correctly except skeletons are still spawning, but hell its 100% better then it was.
-
View User Profile
-
Send Message
Posted Feb 2, 2013@Takutai
I just tried it myself and I have the same issue (without any other plugins). I'll look into it!
-
View User Profile
-
Send Message
Posted Feb 2, 2013Hm seemed to make no difference, is it possible that essentials spawn controller or Factions would interfere?
-
View User Profile
-
Send Message
Posted Feb 2, 2013@leet_gamer
Your config has no spawn type enabled to control by the plugin. You probably want to set NaturalSpawn (and maybe ChunkGen) to true. But don't forget that the plugin doesn't let mobs spawn more often, it just creates waves.
-
View User Profile
-
Send Message
Posted Feb 2, 2013that did it, thanks
-
View User Profile
-
Send Message
Posted Feb 2, 2013@Righteouskill100
At the Giant config there are two settings in the same row: put MinSpawnAdd in a new line and your problem should be fixed :)
-
View User Profile
-
Send Message
Posted Feb 2, 2013@Takutai
Thank you :)
The plugin doesn't kill existing mobs. But they shouldn't spawn in the first place! You seem to have an idea how they spawn? Maybe you could try enabling all spawn types? (Sorry, I'm a bit out of ideas...)
-
View User Profile
-
Send Message
Posted Feb 2, 2013here is the config file http://pastebin.com/zakY7NtW
-
View User Profile
-
Send Message
Posted Feb 2, 2013I'm trying to get this working to increase mob spawning on my server but I don't think I fully understand the config. This is my setup: http://pastebin.com/KW6aM4mW
When I tested it I flew to an open space and idled so mobs could spawn. I didn't see any, and when I did /butcher I killed.. a whopping 4 mobs. So how do I set this up to work?
-
View User Profile
-
Send Message
Posted Feb 2, 2013Hello, after trying half a dozen or so plugins this one seems to be the only one which functions in the manner I need with minimal raw code editing. That being said thank you for your work.
Now on to the problem which is more then likely me misunderstanding something, I set up my end to have no enderman or the enderdragon spawn which seemed to have worked, but when ever I have to restart the server the enderman return. Here is the code I used.
world_the_end:
NaturalSpawn: true
ChunkGen: true
Mob:
Enderman:
SpawnEveryX: 0
EnderDragon:
SpawnEveryX: 0
Is there something I missed to stop the initial spawn or does the plugin not kill existing mobs?
Here is a link to the full config if needed. http://pastebin.com/ymZA781d
-
View User Profile
-
Send Message
Posted Feb 2, 2013@Righteouskill100
Could you please post your entire config.yml on pastebin? (via copy&paste!!)
-
View User Profile
-
Send Message
Posted Feb 2, 2013I got an error when trying to load the plugin.
15:47:18 [INFO] [MobspawnSettings] MobspawnSettings enabled 15:47:18 [SEVERE] Cannot load plugins\MobspawnSettings\config.yml org.bukkit.configuration.InvalidConfigurationException: mapping values are not a llowed here in "<string>", line 25, column 38: ... SpawnEveryX: 0 MinSpawnAdd: 0 ^ I got this at several other points as well. not sure what to do to fix. I am attempting to prevent certain mobs from spawning
-
View User Profile
-
Send Message
Posted Feb 1, 2013@Brocodo
It should spawn 11 Zombies instead of one. Did you enable any Spawn type? Could you post your config?
-
View User Profile
-
Send Message
Posted Feb 1, 2013Hi,
I tried to make zombies spawn more often to test if the plugin works on my server.
What i did is this:
Zombie:
SpawnEveryX: 1
MinSpawnAdd: 10
MaxSpawnAdd: 10
And it doesnt really change anything, but i should see huge difference in zombie spawning right?