NaturalHorses
Naturally spawning horses - The way you want it!
With the introduction of horses in Minecraft 1.6, horses may now spawn naturally in plains biomes. Although for most people, it is often extremely rare (at least in old chunks). This plugin tries to emulate the natural spawning of horses and allows you to configure when and how it happens.
How does it work?
When the server loads a chunk into memory, the plugin performs various checks to determine if horses should be spawned (simulating a natural spawn). You are able to choose where they spawn, how often and how many in each group/herd.
Features:
- Ignores ALL newly generated chunks (assumes 1.6 chunk generation will handle it).
- The whole chunk must be Plains biome (actually only all four corners are checked, for performance).
- Surrounding chunks must contain no living entities (configurable chunk radius).
- Horses/donkeys will only spawn on grass blocks
- Time delay between spawning anything in seconds (configurable)
- Random chance of spawning anything (configurable)
- Random chance of spawning donkey instead of horse (configurable)
- Choose how many horses can spawn per group/herd
- WorldGuard compatible (does not spawn in regions with "mob-spawning: deny")
- Lots of debug information! (can be disabled)
How to use it:
- Download the NaturalHorses.jar
- Put the file in your "plugins" folder on your server.
- Restart your server
- Make any changes to the "plugin/NaturalHorses/config.yml" config file
- Restart your server again
- Find horses! :)
Please see the configuration page for more info.
Dev Builds:
Development builds can be acquired at the provided continuous integration server.
These builds have not been approved by the BukkitDev staff. Use them at your own risk.
See this in action?
You can try out this plugin on our family friendly survival server:
Hey there, I have a problem with this plugin. I can't edit the config file, cause i don't have permissions to do that, and i even can't edit the permissions.
Anyone knows why?
Edit: solved, was a server-side ftp problem
@Pokachu105
I can't see any problem from the logs, but did you have someone moving around the world? As it explains in "How does it work" section above, the plugin only operates from chunk loading so it requires people to be moving into new chunks. Chunk caching may be preventing the chunks from unloading so you should always test in different chunks, or use a chunk unloading plugin.
Could you try again but keep teleporting (or flying) to different areas around the world?
I have an annoying issue with the plugin, what happens is that after I restart the server and a player joins, it starts spawning horses, and then once the player says something in the chat or uses a command it stops spawning until I restart the server again, if it isn't about the player then it's probably this error from WE ("[WARNING] [WorldEdit] No compatible nms block class found."), the plugin might still be spawning horses but the debug messages stop appearing.
Here is the server log: http://pastebin.com/2WW6sSxE And here is the plugin config: http://pastebin.com/T6cTzfMs
Hope you can help me out. :)
EDIT: It's not either of those issiues, I don't think. It seems like the plugin just stops working 20 seconds after the first player after a restart joins.
@PomPWNius
You are using an old version of CraftBukkit. It's only compatible with CraftBukkit build #2811 or higher.
@Hangar
Definitely possible. In the next version I will add a spawn chance % for skeletons and undead horses. Do you want them completely separated from the herd, or just as part of it?
Maybe there could be a small chance for undead horses to spawn in a nether world (separately configurable) :D
I get this http://pastebin.com/DRG8z5pz
@jd245
I might look at doing this in a future version, but I don't run factions myself so I would have to implement Factions in my test server and do lots of testing. This will take some time as I'm working on other things currently.
Could you make a ticket for it and I'll try to add it later? Thanks.
@add5tar
It seems to be working now with the latest versions of everything. Thanks :)
Could you add support for Factions so that horses don't spawn in claimed land (or, better yet, add the option for it?
@Hangar
I haven't used TerrainControl but I don't see why it wouldn't work with it. The best thing is to turn on debugging in the config.yml and see what it says. It will tell you exactly why it's not spawning.
Feel free to paste some console logs with debug info and also your config.yml
You make me feel like a natural... horsey.
Yeah, I did that.
I'm not sure this is working at all with TerrainControl plains biomes. I did think it was working on my other bukkit server that doesn't run TC though.
@emilio791
Please see the information above. The "spawn-delay" setting is in seconds. Please note that if you set it to 24hours (86400) this will mean that it's impossible for more than 1 group of horses to spawn in any world per 24 hours.
I have also added this page to view the default configuration (which has comments) and will be adding more details later.
I want horses to not re-spawn after taming/killint/etc until couple DAYs... I want to make horses some hard-to-get, but not like in vanilla (x.x)... so.. "time delay" is in ticks? seconds? minutes?
@Bimnomercy
It's not exactly a time delay, but more of a global cool down. It's the minimum possible time before any horses are able to spawn, anywhere in the server. This doesn't mean horses will spawn at that time, it just means they can't spawn before the time.
It's designed to prevent people flying/running around loading chunks and just to spawn many everywhere.
Is the time delay is for each player or commom for the map ?
NaturalHorses-1.0.7 has been released and awaiting Bukkit approval:
@Bimnomercy
I haven't tested the /reload command (I refuse to use it because it is incredibly dangerous and often breaks many things). But I believe it should reload the config. I would suggest using something like PlugMan to reload individual plugins instead of always reloading every plugin. PlugMan is not a perfect solution and some situations will always require a server restart, but it's still extremely useful.
@vecet
I don't know what you mean? My plugin will not interfere with other mobs at all and has absolutely no code that could possibly affect other entities.
Add5tar i figure out how to do that, its easy, just use 'name' i was trying `name`.
But one more thing, once i raised the horses ratio spawn all the mobs in my server have their ratios raised too.
In fact I changed the config file as this : chunk-check-radius: 1
With chunk-check-radius: 3, with your code, to have a horse spawn, it needs a 7 x 7 free entities chunks. On my map, it's impossible, there is always cow, cheap, and chikens. And I don't see underground creatures.
Does the '/reload' command of Craftbukkit permit to reload the NaturalHorses's config file without restart the server ?
Anyway, it works perfectly. Thank you very much for your work.