Very simple mob attack damage plugin

Discussion in 'Archived: Plugin Requests' started by DoctorBoyd, Sep 11, 2012.

  1. Offline

    DoctorBoyd

    Hello.
    I've been looking for a plugin to change the attack damage of mobs with a config similar to this:

    Zombie: 4.5
    Enderman: 9
    Skeleton: 4.5
    etc.
    (showing the mobs and their damage values in hearts)

    I tried out Mobs, MonsterApocalypse and HardcoreWorlds. They're great plugins but specialize in more than just mob attack damage.

    I'd gladly test the first lightweight/performance oriented mob-difficulty plugin.
    Would anyone be interested in making it?
     
  2. Offline

    Woobie

    I can try.. but i dont know how hard it's going to be.
     
  3. Offline

    Kiakaha

    I know you've already mentioned this but if you use mob apocolypse you can just turn off ALL unwanted features
    so you could set damages like you said and ignore everything else..
    It just seems futile to me to have a plugin developed that's already been done :(
    Mob apoc is not very taxing on the server unless you're using its mega agro or block break features
     
  4. Offline

    UnlikeAny

    I also can try.

    EDIT: It doesn't seem so hard.
     
  5. Offline

    Woobie

    But maybe he wants a smaller plugin?

    EDIT: I have no idea how to do this :confused: :D

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

    Hoolean

    Not to hard I don't think. Just have to check what mob it is, if it is a certain mob find it in the config, then use event.setDamage() to set it to the damage in the config. I think that may work :D
     
  7. Offline

    UnlikeAny

    Yea, just a bit tricky with mobs that launch projectiles.
     
  8. Offline

    Hoolean

    Code:java
    1. EntityType type = projectile.getShooter().getType();
     
  9. Offline

    UnlikeAny

    I think you meant the same. That's what I did while listening to EntityDamageByEntityEvent:

    Code:java
    1. if (event.getDamager().getType() == EntityType.ARROW) {
    2. Projectile p = (Projectile) event.getDamager();
    3.  
    4. if (p.getShooter().getType() == EntityType.SKELETON)
    5. event.setDamage(skeletonDamage);
    6. }


    Everything works, now just need to test it with ender dragon.

    http://dev.bukkit.org/server-mods/simple-mob-damage/

    If you need any additions just post a comment there.

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

    DoctorBoyd

    Wow, that was fast. Thank you and thanks everyone for the help.
    This has been a great first experience posting in the request section.

    I'm having one small issue. I'll post it on the bukkitdev page.
     

Share This Page