Solved Killing Entity Without Death Animation?

Discussion in 'Plugin Development' started by krazytraynz, Jun 8, 2014.

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

    krazytraynz

    Like the title says, is there a way to kill entities without the death animation? I'm trying to replace a vanilla entity with a custom one, so I just set their health to 0 which in turn plays the death animation. I'm guessing that's handled through packets, but is there a way to stop it (preferably without any sort of library/API)?
     
  2. Offline

    AoH_Ruthless

  3. Offline

    teej107

    krazytraynz You could try a EntityDeathEvent and just remove it in the event.
     
    Zupsub likes this.
  4. Offline

    krazytraynz

    AoH_Ruthless likes this.
  5. Offline

    AoH_Ruthless

    krazytraynz
    Oh guess I could have told you that, I read that you wanted to remove players instead of entities and then I thought you wanted to remove the animation when they die (the falling over) so I started thinking way too hard about it. But yeah, that is one way of doing it :p
     
    krazytraynz likes this.
  6. Offline

    krazytraynz

    AoH_Ruthless
    Yeah I worded the question a little weird, sorry about that :p
     
Thread Status:
Not open for further replies.

Share This Page