Spawned ender dragon doesn't have a health bar

Discussion in 'Plugin Development' started by RipRoss, Dec 15, 2017.

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

    RipRoss

    How come when I spawn in an ender dragon using:

    Code:
     world.spawnEntity(player.getLocation(), EntityType.ENDER_DRAGON); 
    It spawns the dragon in but there is no health bar and the dragon is just static and doesn't move.
     
  2. Offline

    leduyquang753

    By default, it you just summon it by that line of code or by the command /summon ender_dragon, the health bar won't show and it wouldn't move. You must do more than that for it to work. You can check this out: Ender Dragon.
     
  3. Offline

    RipRoss

    Just read through that and it doesn't really give me any information on how to go about getting the bar to appear.
     
  4. Offline

    Shmunx

    It wont work because what you are doing is just summoning an Ender dragon. Ender dragons have to be in a phase to work a.k.a. they have to be the Ender dragon that is summoned when you go to the end. The only way you can fix this is to change his phase or manually add a health bar.
     
Thread Status:
Not open for further replies.

Share This Page