Filled Short EXP plugin

Discussion in 'Archived: Plugin Requests' started by InflamedSebi, Jul 5, 2012.

  1. Offline

    InflamedSebi

    Im looking for a Plugin, that will force mobs to drop alway exp when they die and not only if a player killed them.

    (as expension of "other drops" which configures the amount of exp drops and "MagicSpells" so u can kill mobs with a lightning Spell, but than they will not drop exp because it was "not" killed by a player -.-")
     
  2. Offline

    thijsmie

    I made it for you :) It works for zombies, skeletons, spiders and creepers. The plugin is enabled by default, but you can turn it on and off with FED_enable and FED_disable.

    Download: http://updo.nl/file/f426b828.jar

    Tell me if you like it and if you want adjustments :)
     
  3. Offline

    InflamedSebi

    Awesome :) seems to work fine :) maybe u can add all types of mobs ?
    (made a list ^^ hope i got all).
    And is there a way to figure out if a mob is spawned normal or by an Mobspawner?
    Because so u can disable too easy EXP farms.

    And a config file would be nice :D
    fe. config.yml:

    #----------config start-------------
    ForceExpDropNormal: true
    ForceExpDropSpawner: true
    #----------config end-------------

    If u are bored maybe u can add these 2 options for every mob,
    so its completley configuable which mobs drop always exp and which don't.
    But if not, a global option is all I need ^^


    All different Mobs:
    CaveSpider
    Chicken
    Cow
    Creeper
    EnderDragon
    Enderman
    Ghast
    Blaze
    Giant
    IronGolem
    MagmaCube
    MushroomCow
    Ocelot
    Pig
    Sheep
    Silverfish
    Skeleton
    Slime
    Snowman
    Spider
    Squid
    Villager
    Wolf
    Zombie
    ZombiePigman
     
  4. Offline

    thijsmie

  5. Offline

    InflamedSebi

    ok tested it (with Zombies), in different ways, but didnt work so far:

    Code:
    ForceExpDropNormal: true
    ForceExpDropSpawner: true
    Zombie: true
     
    Effect:                           drop EXP on death
                                always     by player    never
    creatures from mobspawner     [x]          [ ]       [ ]
    ordinary spawned creatures    [x]          [ ]       [ ]
    
    no bugs on this config.
    --------------------------------
    Code:
    ForceExpDropNormal: true
    ForceExpDropSpawner: false
    Zombie: true
     
    Effect:                           drop EXP on death
                                always     by player    never
    creatures from mobspawner     [x]          [ ]       [ ]
    ordinary spawned creatures    [x]          [ ]       [ ]
    
    --------------------------------
    Code:
    ForceExpDropNormal: false
    ForceExpDropSpawner: true
    Zombie: true
     
    Effect:                           drop EXP on death
                                always     by player    never
    creatures from mobspawner     [ ]          [x]       [ ]
    ordinary spawned creatures    [ ]          [x]       [ ]
    
    -------------------------------

    Code:
    ForceExpDropNormal: true
    ForceExpDropSpawner: true
    Zombie: false
     
    Effect:                           drop EXP on death
                                always     by player    never
    creatures from mobspawner     [ ]          [x]       [ ]
    ordinary spawned creatures    [ ]          [x]       [ ]
    Message "error in config, errorid2" every time a zombie dies.
    
    -------------------------------------------------------------

    seems like some things are messed up xD
    i dont know if its better to split some parts up with permissions:

    FED.[creature].[spawned|normal]
    so if a player got the "FED.zombie.normal" Permission all normal zombies he kills will drop exp, but if he kills a spawned zombie or other mobs, they dont drop exp.

    and the config file would contain the global values:

    Code:
    CAVE_SPIDER:
        NORMAL: true
        SPAWNED: true
    CHICKEN:
        NORMAL: true
        SPAWNED: true
    COW:
        NORMAL: true
        SPAWNED: true
    CREEPER:
        NORMAL: true
        SPAWNED: true
    ENDER_DRAGON:
        NORMAL: true
        SPAWNED: true
    ENDERMAN:
        NORMAL: true
        SPAWNED: true
    GHAST:
        NORMAL: true
        SPAWNED: true
    BLAZE:
        NORMAL: true
        SPAWNED: true
    GIANT:
        NORMAL: true
        SPAWNED: true
    IRON_GOLEM:
        NORMAL: true
        SPAWNED: true
    MAGMA_CUBE:
        NORMAL: true
        SPAWNED: true
    MUSHROOM_COW:
        NORMAL: true
        SPAWNED: true
    OCELOT:
        NORMAL: true
        SPAWNED: true
    PIG:
        NORMAL: true
        SPAWNED: true
    SHEEP:
        NORMAL: true
        SPAWNED: true
    SILVERFISH:
        NORMAL: true
        SPAWNED: true
    SKELETON:
        NORMAL: true
        SPAWNED: true
    SLIME:
        NORMAL: true
        SPAWNED: true
    SNOWMAN:
        NORMAL: true
        SPAWNED: true
    SPIDER:
        NORMAL: true
        SPAWNED: true
    SQUID:
        NORMAL: true
        SPAWNED: true
    VILLAGER:
        NORMAL: true
        SPAWNED: true
    WOLF:
        NORMAL: true
        SPAWNED: true
    ZOMBIE:
        NORMAL: true
        SPAWNED: true
    PIG_ZOMBIE:
        NORMAL: true
        SPAWNED: true
    
    and if there is a value "false" for a mob/spawntype it will check for the permissions before calling the drop event for exp.

    What do u think about it? Possible?
     

Share This Page