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... :-(
@boristheterrible
I don't think that canceling mob spawning is very expensive, it might even make the server run faster, since it doesn't actually have to spawn the mobs.
Spawning large waves on the other hand is rather expensive and can result in massive lags. How large "large" is depends on the server.
Couldn't this cause a lot of lag if its cancelling mob spawning a lot?
I am unable to find any config.yml files. I have a user.yml and group.yml. How do I configure this if I only use one world or host rather.
@Cryxex
How come you know you did it correctly? Could you please post your config.yml to pastebin.com? Which version do you use?
Changed spawnrates, nothing happened. I know I did it correctly as well, does it just not work right now? I don't use any other plugins that could be colliding with it, so.
@antr95
Thanks for telling me, I fixed it (Version 1.9). It'll take a few hours until it's approved by dev.bukkit.org.
Hey, I get a internal error message when I do /msreload, I have not did anything with the config.yml
2013-10-01 10:47:21 [INFO] AnTleet issued server command: /msreload 2013-10-01 10:47:21 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'msreload' in plugin MobspawnSettings v1.8 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:192) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchCommand(CraftServer.java:527) at net.minecraft.server.v1_6_R3.PlayerConnection.handleCommand(PlayerConnection.java:976) at net.minecraft.server.v1_6_R3.PlayerConnection.chat(PlayerConnection.java:887) at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:834) at net.minecraft.server.v1_6_R3.Packet3Chat.handle(SourceFile:49) at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230) at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:116) at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37) at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: java.lang.NullPointerException at org.telamitto.sycoso.mobspawnsettings.MsCommands.onCommand(MsCommands.java:31) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 15 more
@Lazertx
Thanks a lot. I'll fix it!
I am friends with LukieTheBeast and he reported the issue with the Horses to me and I figured out the problem. If you look here you can see the name for a horse is EntityHorse and all of the other mobs are named Zombie without the Entity
Here is a picture of a debug plugin I made for this while this is not your problem you can fix it by changing
to "EntityHorse"
@LukieTheBeast
Oh, you mean in the autogenerated config.yml. You're right, I forgot to add the new mobs there. Here's a list of all the available mobs: http://dev.bukkit.org/bukkit-plugins/mobspawnsettings/pages/list-of-mobs/
To answer your question: yes
@sycoso
Yes, I am using 1.7 i just reinstalled it to make sure that horses weren't on the list and they are not on there. Do i need to add horses manually?
@LukieTheBeast
They should already be added. Do you use the latest version?
Please add horses to the plugin
can you change what mobs will spawn in cerntain areas? maybe mark of an area with world edit and set it to spawn zombies only and the spawn rate ?
I dont know why but I cannot find a plugin for this >.<
@scottkim11
There is no spawntype called "SpawnType". You can find a list of spawntypes here: http://dev.bukkit.org/bukkit-plugins/mobspawnsettings/pages/list-of-spawntypes/
Hi. I have one question for removing mobs and animals. I do not want any mobs and animals appear in my world so I wrote config like this http://pastebin.com/d797c9yf but there is something was killed by my killall command. what's wrong?
@r0dders
Thanks, the page was in fact incorrect. I fixed it.
1. Worlds instead of worlds
2. SpawnType as a spawntype doesn't make sense (sorry for the confusing doc page, I'm not good at writing documentation). Here's a list of what you can put there: http://dev.bukkit.org/bukkit-plugins/mobspawnsettings/pages/list-of-spawntypes/
If you can't get it to work, could you please post your entire config.yml to http://pastebin.com/ and post the link? Because the bukkit.org comments remove spaces etc
Thanks for replying, in multiworld config it is written as world: but I think on the think on the config it was worlds: which made it a little confusing. I'm strugging to get the mod to work on multiworld, I want to beef up the mobs on the factions world, but putting more spawns per mob and making zombies have more health. Here is a sample of the config,
Default: NaturalSpawn: false Jockey: false ChunkGen: false Spawner: false Egg: false SpawnerEgg: false Lightning: false Breeding: false SlimeSplit: false
worlds: Factions: SpawnType: true Mob: Creeper: SpawnEveryX: 1 MinSpawnAdd: 2 MaxSpawnAdd: 4
I'm sure I have done something wrong, but cant figure it out, maybe some example configs would be handy at some point. Thanks for your help.
@r0dders
That's the only commandline option I added yet (forgot to add it to the doc, thanks for the heads-up). It's /msreload
Where did you read World: ? The group for all worlds is called Worlds:
@M1ntcrafter
It's probably not your fault. There were a few new spawntypes added, specifically VillageDefense and VillageInvasion. Look at this list for what might be useful for you: http://dev.bukkit.org/bukkit-plugins/mobspawnsettings/pages/list-of-spawntypes/
Them not spawning at all doesn't make sense. Sorry, sounds stupid, but maybe that's imagination. If they spawn without the plugin but not with it, please contact me.