ChickenJockeyFix
NOTICE: As of CraftBukkit Build #3075, the underlying problem in both the vanilla Minecraft server and the Bukkit server has been rectified. Using ChickenJockeyFix should no longer be necessary or useful. However, if you're still using any of the earlier post-1.7.4 builds, then you'll still need the plugin.
Introduction
The implementation of the chicken jockey composite-mob in Minecraft 1.7.4 and 1.7.5 causes chickens to spawn in dark places with a baby zombie rider. The zombie will despawn but the chicken will not, and any eggs that the chicken lays can be picked up by other nearby zombies causing them to become persistent, and ignored by the hostile mob cap. Eventually, hundreds of egg-holding zombies can gather in an active area and cause unnecessary server load. This is MC-42174.
ChickenJockeyFix attempts to remedy this problem by detecting any chickens which spawn with riders, and it flags them for eventual despawn, and prevents them from laying any eggs.
Passive effects
- All chickens which spawn with zombie or zombie pigman riders will have their "removeWhenFarAway" flag set to true.
- Eggs that are laid by chickens flagged with the above criterion will also be removed.
Commands
/killeggheads
Removes all zombies who have an egg in their hands within the loaded chunks.
/killegglayers [max-height]
Removes all chickens in the loaded chunks. A maximum height can optionally be specified so that only chickens which adhere to the condition y < max-height will be removed.
-
View User Profile
-
Send Message
Posted Apr 9, 2025"They want me to fight the chicken?"
"CHICKEN JOCKEY!"
-
View User Profile
-
Send Message
Posted Jul 31, 2014no config file? dont think it work for cb1.7.2-r0.3
-
View User Profile
-
Send Message
Posted Apr 29, 2014@MarioG1
I think I follow you. With that setup, chickens are the only mob capable of spawning in the Nether. ChickenJockeyFix will make them despawn, but if you really don't want your players having access to chickens, I would add them as a Multiverse exception for now.
It's a Multiverse bug I think, chickens with a true IsChickenJockey tag really ought to be classified as hostile mobs and not passive mobs.
If I were more experienced with the Bukkit API, I would try to read the spawn event status of the zombie rider and copy it to the chicken mount, so you're allowing/disallowing both at the same time. But I don't know if that's a possible (or simply convenient) thing to do. :(
-
View User Profile
-
Send Message
Posted Apr 29, 2014@Dan_Shemp
Sadly if you cancel the spawn event of the baby zombie the chicken still spawns. Is it possible to add an workaround for this into your plugin?
Here is a small guide how to reproduce the problem:
-
View User Profile
-
Send Message
Posted Apr 28, 2014@MarioG1
My inclination is to say Yes since the check I use doesn't depend on the presence of a zombie at all, but obviously I can't be sure without replicating your setup and testing.
If my interpretation of the spawning algorithm is correct, blocking the baby zombie should also block the chicken mount, and so my plugin wouldn't be necessary at all. It'd be worth testing this as well.
-
View User Profile
-
Send Message
Posted Apr 28, 2014Will this plugin also work if another plugin (multiverse for example) cancels the spawn event of the baby zombie?
-
View User Profile
-
Send Message
Posted Apr 27, 2014Thanks you
-
View User Profile
-
Send Message
Posted Apr 27, 2014Thanks you so much :)
Good job, works great.
-
View User Profile
-
Send Message
Posted Apr 24, 2014I love this plugin! I went vanilla back when 1.7.4 first released and as a result, had thousands of egg holding zombies. :(
This plugin fixed all the lag issues! (I run /killeggheads hourly and it catches 1 or 2 EVERY time thanks to leftover chickens)
Thank you for writing this! :D
-
View User Profile
-
Send Message
Posted Apr 8, 2014Right on! Thank you so very much. I'll give it a go. :)
Edit: It works perfectly.