[FUN] EggPlugin v1.5 - Egg-related functions! [798]

Discussion in 'Inactive/Unsupported Plugins' started by robin0van0der0v, Mar 6, 2011.

  1. Offline


    EggPlugin - Egg-related functions!
    Version: v1.5

    (Request from ChrisX930, Woutske and NickBrahz.)

    • Change mob to hatch from egg.
    • Fire eggs.
    • Freeze eggs.
    Download EggPlugin!
    Source is inside the jar file.

    Give the player you want this permissions for eggs:
    Known bugs:
    None. :D

    This plugin creates a properties file on Plugins/EggPlugin/config.yml. ;)
    Egg-type can be: mob, fire, freeze or explode
    What mob-type can be is in the mob list.

    Standard properties:
        mob: chicken,null,null,null,null,null,null,null
        type: mob
    Mob list:
    [​IMG] Chicken
    [​IMG] Cow
    [​IMG] Creeper
    [​IMG] Ghast
    [​IMG] Giant
    [​IMG] Monster
    [​IMG] Pig
    [​IMG] Pigzombie
    [​IMG] Sheep
    [​IMG] Skeleton
    [​IMG] Slime
    [​IMG] Spider
    [​IMG] Squid
    [​IMG] Wolf
    [​IMG] Zombie

    Version 1.0
    • Release.
    Version 1.1
    • Fixed properties in Linux.
    • No Permissions? Then everyone can hatch eggs.
    Version 1.2
    • Changed namespace.
    Version 1.3
    • Merged FireEggs and FreezeEggs to this plugin.
    Version 1.4
    • Works in Beta 1.4.
    • Added new mobs.
    Version 1.5
    • Properties file is now saved in YAML format.
    • You can setup now multiple types and mobs separated by a comma.
    Mitsugaru likes this.
  2. Offline


    Hmm, I nearly tried to spawn every possible mob on the list but the eggs won't spawn anything. Fire- and Freeze-Eggs work fine, permission is set up correctly and the properties file is set to
    Am I missing something? Running craftbukkit 766. Is that a too recent version as you stated might be a problem?

    I really would love to see this cute plugin up and running on my server ;)
  3. Offline


    Try to update to the lastest recommended build. ;)

    And you can setup now multiple types and mobs separated by a comma. :D
  4. Offline


    An option to set the chance for the mob spawn would be nice. :)
  5. Offline


    Okay, thanks for the new version. I also updated craftbukkit to the latest RB (798) but now I get a NullPointerException every time I try to throw an egg! After that the server must be restartet. Otherwise every player who tries to select an egg in their hands gets kicked from the server with an exception.

    2011-05-21 10:58:48 [SEVERE] java.lang.NullPointerException
    2011-05-21 10:58:48 [SEVERE]     at org.bukkit.event.player.PlayerEggThrowEvent.getHatchType(PlayerEggThrowEvent.java:61)
    2011-05-21 10:58:48 [SEVERE]     at net.minecraft.server.EntityEgg.p_(EntityEgg.java:202)
    2011-05-21 10:58:48 [SEVERE]     at net.minecraft.server.World.entityJoinedWorld(World.java:1009)
    2011-05-21 10:58:48 [SEVERE]     at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:53)
    2011-05-21 10:58:48 [SEVERE]     at net.minecraft.server.World.playerJoinedWorld(World.java:991)
    2011-05-21 10:58:48 [SEVERE]     at net.minecraft.server.World.cleanUp(World.java:968)
    2011-05-21 10:58:48 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:374)
    2011-05-21 10:58:48 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
    2011-05-21 10:58:48 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-21 10:58:48 [SEVERE] Unexpected exception
        at org.bukkit.event.player.PlayerEggThrowEvent.getHatchType(PlayerEggThrowEvent.java:61)
        at net.minecraft.server.EntityEgg.p_(EntityEgg.java:202)
        at net.minecraft.server.World.entityJoinedWorld(World.java:1009)
        at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:53)
        at net.minecraft.server.World.playerJoinedWorld(World.java:991)
        at net.minecraft.server.World.cleanUp(World.java:968)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:374)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    On server start everything loads without any errors.

    Could you please have a look into it?
    Btw, after updating your plugin I only use the new yaml-config and I deleted the old .properties file. And there is no difference when I only set one possible mob to spawn and leave the other entries null.

    Edit: Okay, figured it out the moment I wrote my reply :)
    The entry "null" MUST be completely deleted from the config file. Otherwise you will get an exception.

    Mob-Eggs are working now, but they are pretty laggy. It takes round about 3 - 4 seconds until the egg gets thrown...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 11, 2016
  6. Offline



    thanks for the update, but please, please add an ability to set mutlipe egg types

    So you throw an egg. First you spawn a creeper and after that you throw one egg again and make snow in the area!

    Suggestion 2:

    Set the chance to spawn a mob! (Like only 1% are wolfs and 50% are creepers, if you throw an egg!)

  7. Offline


    Okay, lag was caused by the updated citizens plugin. EggPlugin is doing fine.

    And I totally agree with xGhOsTkiLLeRx!!! Both thumbs up for his two feature requests.
  8. Offline


    Is there an option for changing the chance to spawn a mob?
  9. Offline


    give me a feature that every mob i hit with eggs turns into a chicken and i will use this :D
  10. Offline


    Really could use individual permissions for each of these functions, since i am going to use this for PvP combat.
  11. Offline


    Can you give it multi-world support so you can define different egg-functionality for different worlds?
  12. Offline


    cool can you make one that spawns a bunch of smoke next. like a smoke grenade
    ostepop2211 likes this.
  13. Offline


    Wanna see this updated
  14. Offline


  15. Offline


    Download doesn't work for me. Fix it! :D

Share This Page