WildSex
WildSex 4
A Bukkit plugin that randomly puts wild animals in love mode, creating natural population increase.
Configuration
The config.yml file supports the following settings:
- mateMode (false by default) pairs animals with a close pair and then sets both on love mode, guaranteeing reproduction in the case where there is an eligible pair close by.
- maxMateDistance (4 by default) the maximum distance two animals can be apart in order for the plugin to pair them
- interval (10 by default) the number between two WildSex runs, in minutes.
- chance (0.1 by default) the possibility of a random animal being set on love mode. 0 disables the plugin and 1 sets every animal on love mode on every run.
- maxAnimalsPerBlock (2 by default) how many animals should there be per one block? this is the maximum value where the population will plateau, effectively stopping reproduction
- maxAnimalsCheckRadius (3 by default) for how many blocks around the individual animal should the above limitation hold? For example, if you specify 2 animals and a check radius of 3, the plugin will check to see that there aren't more than 18 ( = 2 * 3 * 3 ) animals in the 3x3 area around the animal.
- autoUpdate (true by default) updates the plugin automatically whenever a new version is released. All versions will maintain backwards compatibility, so keeping this on is a good idea.
- removeXP (true by default) whether or not the XP produced by the breeding of the animals should be removed automatically.
Supported Versions
All CraftBukkit & Spigot releases for: * 1.10.2 * 1.11 * 1.12
(Older versions have been dropped with WildSex 4. You can try earlier versions for support.)
Known Bugs
- The XP removal successfully sets the XP drop to zero, but Minecraft still spawns XP orbs (which, when picked, give 0 XP)
To do
- Improve density checking
- Contact Spigot people on XP removal issue
Special thanks to
- Gravity, for Updater,
- DrkMatr1984, for helping maintain this project as a contributor.
Source
Available for you to fork on Github!
License
Released under the MIT License.
Feel free to download, edit and redistribute, but do not forget to give proper credit.
@Ebins
Count me too! I'm receiving the same error as well.
Hi. Could you please update it for spigot 1.8.7? I'm getting this error now after updating. http://pastebin.com/1Jj9hLhC
Thanks! Love the plugin! :)
@nullschritt
Updated and ready to go!
Hahaa amazing plugin 10/10.
wow интересная идея
Wildsex for 1.7.9-1.8.3 is uploaded and awaiting approval!
I have a 1.8 version running on my spigot 1.8 server. It will most likely break with 1.8.3. Anyone needing the 1.8 version can PM me for the jar. If I get around to it I will update for 1.8.3 also and branch on GitHub. If anyone still needs a version for 1.7.10 let me know and I can try to branch a 1.7.10 version also. Perhaps I could soon implement reflection to make this project version independent(but still requires updates with bukkit api)
Edit: Forgot it already is version independent. Updated to 1.8.3, submitted Pull Request to Author. I don't have authority to upload updates here on bukkit.
Gave a late contributor status to @DrkMatr1984
I could be working on a few new features as early as the first week of April.
any update coming?
@nullschritt
[22:26:47] [Server thread/ERROR]: Error occurred while enabling WildSex v1.3 (Is it up to date?) java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_7_R3/entity/CraftEntity at com.cemgokmen.WildSex.WildSex.onEnable(WildSex.java:32) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [craftbukkit.jar:git-Spigot-1544] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:329) [craftbukkit.jar:git-Spigot-1544] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [craftbukkit.jar:git-Spigot-1544] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [craftbukkit.jar:git-Spigot-1544] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [craftbukkit.jar:git-Spigot-1544] at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360) [craftbukkit.jar:git-Spigot-1544] at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334) [craftbukkit.jar:git-Spigot-1544] at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290) [craftbukkit.jar:git-Spigot-1544] at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210) [craftbukkit.jar:git-Spigot-1544] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [craftbukkit.jar:git-Spigot-1544] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Spigot-1544] Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.v1_7_R3.entity.CraftEntity at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) [craftbukkit.jar:git-Spigot-1544] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) [craftbukkit.jar:git-Spigot-1544] at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_75] at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_75] ... 12 more
@sultanskyman
This plugin is still very useful to the mechanics of my server, but since updating to 1.7.10 it doesn't seem to work anymore, any chance of a 1.7.10 update?
@sultanskyman
Testing a copy for 1.8 I forked from your Github. I'll let you know if it works without flaws and then submit a pull request.
@nullschritt
Great to hear that it has been useful for you :)
I had promised updates a long time ago, and I failed to fulfill due to scheduling problems with school. I plan to fulfill those promises next week if anyone's still using this plugin :)
Just wanted to post that I love this plugin.
My server is super realistic and our time is synced with real time meaning there are several hours of night. And all animals have a lifetime after which they die.
Your plugin allows wild animals to survive through the night, by mating, and provides a source of food for players during this extended period of night.
Great plugin for realism!
@Redstoner_Pro Hm, that is a good approach, I will include it with a toggle, a radius variable and a maximum # of animals variable in the config file, as well as toggles for individual animal types and a trigger command in the next version, possibly to be released at the weekend.
Quite a few servers have town based systems. Some players build personal animal farms in the towns that only they are allowed to manage. The owner of the farm doesn't always have to be on though for their farm to be loaded as they live close to other players in the town. They are not on to manage the animals breeding and over a few days of being offline, can accrue a large amount of animals. Setting breeding rates to combat this only takes away from the main feature of allowing the wild animals to breed.
Would it be possible to check how many other animals are within a certain radius of the monster. If the amount of found animals is less than a configurable amount, allow the WildSex to begin. This would allow you to detect farms and make them exempt from the wild breeding. Not sure if this will be resource intensive however. If the frequency is set at a low enough rate it shouldn't take too much of an effect. Either way, This is a great plugin overall. Keep up the good work.
@Redstoner_Pro Nope, not at this point - the idea is that, after you try out the potential of the plugin, you lower the chances and increase the intervals so much that it becomes really rare that your animals breed - and then you cut them down if there's too many of them :P Animals outside the loaded chunks won't get affected anyways.
However, if you do have a good idea for over-breeding prevention, I'm open to suggestions :)
Is there anything in place that will stop over-breeding? I can see mob farms getting out of control if they are not tended too.
There, just uploaded the fixed update - should be available in a few minutes.
Edit, I found a bug in the code - I'm going to fix that and push the fixed version later today, sorry for the false alarm