Ender Dragon BossBar

Discussion in 'Spigot Plugin Development' started by SiezureSalad, Jul 3, 2018.

  1. When an ender dragon is spawned it creates a purple health bar at the top. I want to remove this default health bar and create my own coloured BossBar that is relative to the dragon's health.

    My main problem is removing the default health bar as I can't find a method to get the BossBar of the ender dragon to remove players from it (prevent them seeing it).
  2. I don't think this is possible anymore. Last I checked the client controls this now.
    • Agree Agree x 1
  3. Optic_Fusion1

    Resource Staff

  4. FrostedSnowman

    Resource Staff

    Yup, like Billy said, not possible.

    BossBars are handled client side. You will need a mod to change this.
  5. Optic_Fusion1

    Resource Staff

  6. Any way I could listen for BossBar packets or something?
  7. The client draws a bossbar when an enderdragon or wither is near you. There are no packets for the server to cancel.