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.
does this work in 1.15?
Wonderful plugin!
Would it be possible to update it to 1.12?
https://pastebin.com/WdfzGTrG
Thanks!
matemode seems to default to yes by the way
??
1 - maxAnimalsPerBlock
2 - maxAnimalsCheckRadius
im a bit perplexed by the second option here as it seems meaningless unless the first does not hold for all blocks ?? it seems like 1 is the same as 2 but with a radius of 1 ??? .
unless radius is meant to mean block size which would make more practical sense , but this does not appear to be the case as whats happening on my lan server which ground to a halt with a cow pandemic .
@sultanskyman
A Plugin like Animal Plague​ can be the answer. Reproduction in farms are a big problem!
@Oligoboli
You can try modifying the config to reduce the maximum allowed density of mobs per chunk by modifying the maxAnimalsPerBlock and maxAnimalsCheckRadius values, and also lower reproduction by reducing the chance value.
I will be adding a new feature soon to make sure animals can only breed when they are fed (have eaten grass from the floor) and this will keep them from overpopulating.
@sultanskyman
Many thanks! It works fine now, but there are to many mobs in chunk now. What's wrong?
@Oligoboli
I have just released the new version, WildSex 4 - you can find it on the GitHub page and it will be here soon too. This problem is fixed there and it has support for 1.10.2 and 1.11.
@Oligoboli
Maybe... If spigot updated. I'll take a look in the next few days. Thanks for the error report.
Is this project outdated? I get this warnings and nothing happens!
<code> [14:42:56] [Server thread/WARN]: [WildSex] Task #8 for WildSex v3.6 generated an exception java.lang.NullPointerException at net.minecraft.server.v1_10_R1.EntityAnimal.c(EntityAnimal.java:128) [craftbukkit.jar:git-Bukkit-1953f52] at com.cemgokmen.wildsex.wildanimal.v1_10_R1.WildAnimalHandler.startLoveMode(WildAnimalHandler.java:28) [?:?] at com.cemgokmen.wildsex.WildSexTask.run(WildSexTask.java:56) [?:?] at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:53) [craftbukkit.jar:git-Bukkit-1953f52] at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit.jar:git-Bukkit-1953f52] at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:697) [craftbukkit.jar:git-Bukkit-1953f52] at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:360) [craftbukkit.jar:git-Bukkit-1953f52] at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:646) [craftbukkit.jar:git-Bukkit-1953f52] at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:550) [craftbukkit.jar:git-Bukkit-1953f52] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101] </code>
@MayorOfBukkit
+Like
Great to see this plugin still being continued, been using it since release! Keep up the good work.
Finally! An animal that knows how to please me!
People who prompt issue with the name are part of the more immature population. Or they are just insecure about themselves cause they probably never get any. ;)
Awesome plugin, I've been wanting something like this to exist in the game for a while.
@CloudeLecaw
Thanks for the tip for him, but really, How much does the name matter? How many normal users do you give /pl to? Hopefully no one. But we have thought about changing the name later because MD5 actually didn't let us post on spigot the first time, because the name was "Inappropriate". But it really is up to Sultan, I just maintain updates when he's off doing his college/work things.
@deitnerb
Maybe I'll release a PG version with a different name. But up to Sultan really. I just maintain the updates.
The only thing that bothers me is the name :/ just not professional in my eyes.
'WildSex'
I love it
@DrkMatr1984
Update is in the works right now! I actually realized that the last two updates, while they fixed the plugin from breaking, didn't actually work. None of the animals successfully entered or exited love mode as I improperly updated the internal MC code references. The update I intend to release by the end of the day fixes this plugin for past versions, and will provide 1.8.7/1.8.8 compatibility!
Done! :
http://dev.bukkit.org/bukkit-plugins/wildsex/files/7-wildsex-v2-3/
@Ebins
I had a PC hard drive crash and have no PC to work with currently guys. But as soon as I get a PC I will update this plugin ;)