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

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

  1. Offline

    robin0van0der0v

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

    (Request from ChrisX930, Woutske and NickBrahz.)

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

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

    Properties:
    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:
    Code:
    egg:
        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

    Changelog:
    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

    jbMurdock

    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
    Code:
    egg-type=mob
    egg-mob=zombie
    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

    robin0van0der0v

    Try to update to the lastest recommended build. ;)


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

    Sparky20

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

    jbMurdock

    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.

    Code:
    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
    java.lang.NullPointerException
        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

    xGhOsTkiLLeRx

    Hey,

    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!)

    Greetings!
     
  7. Offline

    jbMurdock

    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

    Sparky20

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

    IceReaper

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

    Uzalu

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

    Cowmaster

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

    colin8696909

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

    eagle198

    Wanna see this updated
     
  14. Offline

    Fr0zenfr0g

  15. Offline

    EricDownz

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

Share This Page