EggCatcher
EggCatcher
This plugin allows the players to get the new Spawn Eggs from Minecraft 1.1 by throwing regular eggs at mobs. It is intended to be simple to set up and use. The plugin is open source and can be forked on github. If you make any changes, pull requests are appreciated.
Current features
- Configurable mob health limit.
- Respects animal protection plugins such as GriefPrevention
- Compatible with all trading plugins.
- Very simple, throw an egg at a mob and it will be turned into a spawn egg.
- Permissions support.
- Configurable catch chance.
- Configurable cost (vault support, or items).
- Explosion effects.
Installation and requirements
Vault is not required unless you intend to use it
Download the jar file and the configuration file will be generated on the first startup.
Configuration and permissions
Video
Video credits: VariationVault
@cvxx7q
Good luck with that. This author takes freakin forever to fix anything
i think the latest 1.2.4 has caused some breakages
12:57:04 [INFO] This server is running CraftBukkit version git-Bukkit-1.2.4-R1.0-b2126jnks (MC: 1.2.4) (Implementing API version 1.2.4-R1.0)
12:57:05 [SEVERE] Error occurred while enabling EggCatcher v1.16 (Is it up to date?)
java.lang.NullPointerException
at me.shansen.EggCatcher.EggCatcher.onEnable(EggCatcher.java:59)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:374)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:361)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
1. This does work with EnderDragons, hopefully.
2. Could you make it so colored sheep get their color back then they are respawned using their spawn egg?
3. Is there an option to have the mob disappear at a certain chance even if you fail on catching it? And maybe that you get damage if you fail, like if the mob defends itself from being catched.
@zerstreut
Looks more like FalseBook is not handling the event correctly.
Error log:
(read from down to up)
.. 25 more at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) at java.lang.reflect.Method.invoke(Method.java:601) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at com.bukkit.gemo.FalseBook.Extra.FalseBookExtraBlockListener.onEntityExplode(FalseBookExtraBlockListener.java:153) Caused by: java.lang.NullPointerException at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:545) at net.minecraft.server.World.tickEntities(World.java:1149) at net.minecraft.server.World.playerJoinedWorld(World.java:1242) at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:106) at net.minecraft.server.World.entityJoinedWorld(World.java:1260) at net.minecraft.server.EntityProjectile.G_(EntityProjectile.java:156) at net.minecraft.server.EntityEgg.a(EntityEgg.java:28) at org.bukkit.craftbukkit.event.CraftEventFactory.handleProjectileEvent(CraftEventFactory.java:375) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:441) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) at java.lang.reflect.Method.invoke(Method.java:601) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at sun.reflect.GeneratedMethodAccessor142.invoke(Unknown Source) at me.shansen.EggCatcher.listeners.EggCatcherEntityListener.onEntityHitByEgg(EggCatcherEntityListener.java:212) at org.bukkit.craftbukkit.CraftWorld.createExplosion(CraftWorld.java:443) at org.bukkit.craftbukkit.CraftWorld.createExplosion(CraftWorld.java:447) at org.bukkit.craftbukkit.CraftWorld.createExplosion(CraftWorld.java:439) at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:225) at net.minecraft.server.World.createExplosion(World.java:1531) at net.minecraft.server.Explosion.a(Explosion.java:189) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:441) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) org.bukkit.event.EventException
22:38:59 [SCHWERWIEGEND] Could not pass event EntityExplodeEvent to FalseBookExtra
@shansen1
I wasn't blaming you for anything, I was just saying I only checked recently updated plugins so I didn't find it.
@Malikk65
I'm not sure how few updates could be the reason for you not being able to find it. It's almost as if you blame me for you making something that was already done :).
Also few updates just means that there's no bugs, and no feature requests.
@monsterkiller54
I didn't copy the idea, I checked first before I started developing and he hadn't updated anything in almost 2 and a half weeks so I didn't find it. And how is this one better?
-Author of MobCatcher
o ya, and you got your plugin out first so he copyed your idea
i like ur plugin "eggcacher" better than the other plugin "mobcacher"
@Damimad
v1.16dev has just been uploaded and contains ocelot support.
@Damimad
I am running v1.15 without any problems on my server. Ocelot support will come soon. Please let me know if there's any problems running CB 1.2 with EggCatcher 1.15.
Please update for 1.2! @shansen1
@ezzzdiy
This is now configurable in v1.14 which has just been uploaded.
@ezzzdiy
Right I get you now. I'll get it done.
@shansen1
We're using spawnchance as to keep game balance in check, chicken should spawn only if you really miss the mob and hit some block (ie no "miss" because of chance setting).
This can be somewhat worked around with NoLagg or NoSpawn by disabling spawns of overworld creatures in nether altogether, however that does not prevent server overloads because of chicken spam in overworld.
@dickwick
It's already working per default that if you catch a mob there won't be a chicken spawned.
I love this plugin, but I have one request. Is it possible to disable in config Chicken spawning, when trying to catch a mob? Since this plugin we have insane amount of chickens all around the server from people trying to catch mobs.
I would just like to say that you did a very nice job on this plugin! its awesome!
Wow, this is awesome!!! :D