Set enderdragon to invisible

Discussion in 'Plugin Development' started by BorisTheTerrible, Jul 28, 2013.

Thread Status:
Not open for further replies.
  1. I was wondering if you can set the enderdragon to be invisible using packets. I'm trying to do this so I can use the enderdragon health bar for displaying things without just spawning the dragon under the in some far up or down place. But using the methods here and switching it to use the enderdragon it is no longer invisible.
  2. Offline


  3. I know that but it seems that the enderdragon just can't be read as invisible as the client or something because the same packet for invisibility is being sent as was for the wither.
  4. Offline


    Give it a potioneffect.
    1. enderDragon.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILTY, time, amount));
  5. Offline


    The just spawn it at -500 y.
  6. Offline


    Why you dont send the packet to the player that shows the enderdragon healt bar? Why should you need the enderdragon too?
Thread Status:
Not open for further replies.

Share This Page