Bossbar

A boss bar is a bar that can track a boss mob's health or the total health of raid mobs.

Manual creation
A boss bar could be shown using the command.

Boss mobs
A boss bar appears in the top center of the screen when near to a boss mob.

For the ender dragon's boss bar to appear, the player must be within a Euclidean distance of 192 blocks from the coordinates (0.0, 192, 0.0) in the End dimension.

Raids
When a player is within a certain radius of the center of a raid, a raid boss bar appears, showing the total health of all raid mobs present during the current wave.

Color
The boss bar has colors depending on which boss mob or event is active.

The ender dragon has a color of pink. The wither has a dark purple or pink boss bar. The raid boss bar has a color of red.

ID system
A boss bar has an ID, which can be used to do certain actions with one boss bar. An ID is not shown on the creation of the boss bar, so you can't see it.

Removing
A boss bar can be disabled by using.

History
Boss栏