Ender Dragon Death Effect

Discussion in 'Plugin Development' started by gcflames5, Apr 3, 2013.

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

    gcflames5

    Does anyone know of a way to play the effect that plays when the ender dragon dies? Not the disintegration of the dragon, but the light effect that is shown. Thanks in advance!
     
  2. Offline

    ZeusAllMighty11

    This has been asked before, and it's not possible without spawning a dead dragon
     
  3. Offline

    TheButlah

    Then how would you spawn a dead dragon?
     
  4. Offline

    ZeusAllMighty11

    TheButlah

    Spawn a dragon and set it's health to 1 then 0
     
  5. Offline

    gcflames5

    ZeusAllMighty11 I've tried that. The portal spawns but the animation does not ensue :(
     
  6. Offline

    ZeusAllMighty11

    You have to .damage() it... not setHealth(0)
     
  7. Offline

    TheButlah

    Then how do you prevent the portal from appearing?
     
  8. Offline

    DSH105

    To simulate the death effect:
    Code:java
    1. Enderdragon e = world.spawn(loc, EnderDragon.class);
    2. e.playEffect(EntityEffect.DEATH);

    Then wait a little bit and remove the entity :)

    Note that this looks exactly like you just killed it, not only the light effect.
     
    gcflames5 and TheGreenGamerHD like this.
  9. Offline

    nitrousspark

    what about the sound? is there a way to disable that?
     
  10. Offline

    DSH105

    nitrousspark
    You can probably disable the sound by cancelling certain packets. Maybe have a look at ProtocolLib
     
  11. Offline

    nitrousspark

    im not saying i want to, its just that if someone else comes along and wants to the information should be here
     
Thread Status:
Not open for further replies.

Share This Page