minecraft:boss

The current state of the boss for updating the boss HUD.

Properties

PropertyTypeDefaultWhat it does
nameText""The name that will be displayed above the boss's health bar.
should_darken_skyBooleanfalseWhether the sky should darken in the presence of the boss.
hud_rangeInteger55The max distance from the boss at which the boss's health bar is present on the players screen.

Example from the game files

This is how vanilla Ender Dragon uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:boss": {
    "hud_range": 125,
    "should_darken_sky": false
  }
}

Used by 2

Vanilla entities with minecraft:boss in their definition:

Related components