Overriding a Zombie

Discussion in 'Plugin Development' started by TheTrixsta, Oct 21, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    TheTrixsta

    If I wanted to change the speed on an entity or attack damage of an Entity such as a Zombie how would I do that?
     
  2. Offline

    NinjaW0lf

    Not sure about the speed part, but damage a zombie does is like this:
    EntityDamageByEntityEvent
    Check if the event.getDamager() is a zombie
    If it is, then do event.setDamage(some number);
     
  3. Offline

    TheTrixsta

    I still need to know how to edit their speed :/
     
  4. Offline

    Codex Arcanum

    Try slapping a potion effect on them? I haven't tried it, but that would probably work.
     
  5. Offline

    fritzwalter

    TheTrixsta likes this.
  6. Offline

    TheTrixsta

    This is simple, I want to override the bukkit class
     
  7. the post above yours solves it. that's how i did it.
     
  8. Offline

    sayaad

    Go OOP and create a class that extends the zombie entity.

    then modify the values of the super class. To spawn it, spawn the newly created class instead of a regular zombie.
     
  9. Offline

    TheTrixsta

    yea but i want to speed up the zombie too :)
     
  10. yea, and that's the way to go ;) a custom zombie class that you override. the answers are here on the forums ;)
     
    TheTrixsta likes this.
Thread Status:
Not open for further replies.

Share This Page