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:
1.0.3 does not work well with 1.6.2 and WorldGuard :/
Crashlog: http://pastie.org/8124187
@LeDanJames2
Which version are you running? With debug enabled, it should definitely log stuff in your console as you move into plains biomes. Even if the mod spawning is blocked or it decides not to spawn, it will still log many things. Also note this only spawns entities when chunks are loaded. Standing in one location will never spawn horses near by. Double check the full server startup log to check for errors.
@KnightsValor9
Can you pastebin the full console messages and the config.yml? Can you also paste the full /ver info?
@Zyinx
Version 1.0.2 is fully compatible with 1.6.1, but there is a bug in that version where the horses despawn. I suggest you wait for v1.0.3 (uploaded and waiting for Bukkit approval).
Will this plugin be available for 1.6.2? Unless I have mistaken It currently does not support 1.6.2.
@add5tar
Not using any multi-world plugin. Updated to 1.0.2 and I keep getting the SAME error. The error log seems to indicate WorldGuard, and I even updated that to the latest dev build, resetting all the configs... same thing. NaturalHorses only works if I completely remove WorldGuard.
Hey the plugin loads up fine on my server, it is green in /plugins, but it to this point hasn't done anything. There isn't any horses spawning, I tried enabled debugging and I don't get anything in the console from the plugin. I thought at first allow mob spawning from plugins was disabled in WorldGuard so I enabled that and still no changes. Please any help would be greatly appreciated, this is the perfect plugin i need for my server and for my players. Thank you in advance!
NaturalHorses-1.0.3 has been released and awaiting Bukkit approval:
@Smidds
Yes, I can confirm we are also receiving reports of this happening on my server. I'm working on a fix and will upload a new version shortly. Sorry about that.
I still seem to have the new horses despawning.. I'm using the 1.0.2 update on bukkit build #2808 (Dev 1.6.2). Whenever a player leaves the chunk, the horses disappear pretty much forever (i haven't seen the come back), tamed or not.
Thank you so much dude! You are the best!
IMPORTANT NOTE FOR VERSION 1.0.2!
All horses naturally spawned from previous versions will be removed from the world and will show a warning in console.
Horses that were bred or spawned from spawn eggs WILL NOT be removed.
This was unavoidable because the previous versions did not spawn the entities in the correct way, so Bukkit will not understand them and they will be removed! Sorry!! :(
NaturalHorses-1.0.2 has been uploaded and is waiting for approval!
@MetalGearDaner
Are you wanting to just change the "[NaturalHorses]" prefix? Or do you want to change the full broadcast message for when horses spawn?
Also, as it's only designed for debugging, do you really need to change it? :)
I would like to change the [Naturalhorses] message into a custom message, this is a option from the debug mode in the config. Can you please allow changing the spawning message for the next version please?
Hey
This worked like a charm, horses spawned at our desired rate. But after restart we are getting this:
2013-07-07 04:23:24 [WARNING] Skipping Entity with id Horse 2013-07-07 04:23:24 [WARNING] Skipping Entity with id Horse 2013-07-07 04:23:27 [WARNING] Skipping Entity with id Horse
And all horses spawned by the plugin are despawned. After some searching I found similar plugins having the same problem. This seem to be the heart of it:
I'm thinking that its onEnable() is getting called AFTER the world loads, but it is getting loaded BEFORE the world loads. Try putting your code in onLoad() and handle the world before the server gets a chance to touch it.
Great plugin otherwise / Kirresson
Hi, I've had the problem, that after a server restart, all the horses disappeared, that were spawned by NaturalHorses, even the ones that were named and had a saddle on them.
The ones spawned from eggs are unaffected.
Has anyone else experienced the same problem?
@KnightsValor9
Maybe it's loading too early in the server startup. Do you use a multi world plugin? If so, which one? I'm going to release a new version soon that has more error handling in it.
@Steveice10
Ah! Thanks for letting me know. I'm working on making the health levels more realistic in the next version.
@x_clucky
OK, no problem. Feel free to send me some pastebin links of your console output and I'll see what I can work out.
@add5tar
All of my maps are pre-generated, the one that I am using now is generated on version 1.2.5. I will enable debug mode and see what's going on...
Horses seem to be spawning with 2+ bars worth of health, way above the normal amount.
@add5tar
I tried leaving it at its default "world" and matching it exactly to the world name in my server properties config, the error is the same. The plugin works as intended when I remove WorldGuard; is there a specific build that you designed NaturalHorses to work with?
@KnightsValor9
I think the "horse-world" set in your config is not correct. Please check this setting and try again.
In the next release I will add some checks to give a nicer warning when this happens.