Overview
minecraft:boss is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Turns the mob into a boss with a health bar at the top of the screen, like the Wither or Ender Dragon. Players close enough will see the bar.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
name | string | "" | Text shown above the boss health bar. |
should_darken_sky | boolean | false | Set to true to make the sky go darker while the boss is around. |
hud_range | integer | 55 | How far away, in blocks, a player can be and still see the health bar. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:boss": {
"name": "",
"should_darken_sky": false,
"hud_range": 55
}
}