minecraft:boss
The current state of the boss for updating the boss HUD.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
name | Text | "" | The name that will be displayed above the boss's health bar. |
should_darken_sky | Boolean | false | Whether the sky should darken in the presence of the boss. |
hud_range | Integer | 55 | The 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: