Dom's MobProb
This is used to control mob spawning density/probability at different distances. This sort of thing probably exists already but I wrote it just in case I want to add any bizarre extra features.
Useful if you want to turn the monster spawn settings in bukkit.yml way up and have a world that gets more dangerous as you move away from the spawn. It can also be used for animals, to make it more of a challenge to find wolves etc.
All of the variables can be changed. It uses some dodgy logic to decide how mobs can spawn at certain distances, but you'd never really notice this with the random spawn positions anyway. It does allow you to entirely prevent certain types of mobs, or prevent them from spawning closer than a certain distance.
Because this is just a 'proof of concept' designed for the possible future of one server, it doesn't have many other features at all. The only command is '/MobProb reload', to reload the config after changing it. Permission is MobProb.reload.
This is a diagram of the kind of thing you can do. The green zones have no monsters and it gets harder as you move away into the red ones. The bubbles are useful for defining small hard or easy areas in certain places.
I'd like to use this for having one large central city in an RP server, with safe bubbles around various small villages in the increasingly difficult wilderness as you move farther from the hub.
Ask me for source code.
@o0Julia0o
@Skween1
The config file lets you choose how to set the zones up in any way you like, including doing things like having it more dangerous in the centre and having fewer monsters far away. The problem is that it's not very intuitive to change settings in the way you want; not very user friendly. I did add a lot of comments describing how to do it in the file though.
It doesn't seem to hurt performance very much for me. it just listens for every mob spawn event and cancels it if it's a certain distance from the nearest centre and there are too many nearby mobs already.
One problem is that it also cancels spawning events from eggs, but it's probably an easy fix. I'll look into it.
Thanks for downloading.
does it bring the serverperformace bring down a lot - cause of zones?
thx
julia :)
This is what i was looking long time ago for my rp server!
Does this let you decide how large safe zones are, or does it automatically decide how big they can be?
@HammerfeIl
Shouldn't be hard. I've not done that before but I suppose the logical way is to periodically check each player's position and see if it's changed.
OK, sounds good but Having messages would still be nice. :D
@HammerfeIl
Sorry but it's not possible to use more regions at the moment. I could add more, or add the possibility to define your own regions if I get the time. It uses regions instead of a smooth gradient because it should use less CPU time, and the region boundaries are subtle when the monsters spawn in randomised positions anyway.
Because the plugin was only created for one server, there aren't many other options. If it gets a few more downloads then I'll probably make it a bit more versatile and user friendly.
Hey man, I love this plugin it works nice. I was wondering if you can add a message that displays when you enter into a harder or easier region? Also can you add more then 4 ranges or is that not customizable?