跳转至

minecraft:boss

文档版本:1.21.0.24

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

架构

minecraft:boss:
{
  integer "hud_range" : opt
  string "name" : opt
  boolean "should_darken_sky" : opt
}
hud_rangeinteger
The max distance from the boss at which the boss's health bar is present on the players screen.
namestring
The name that will be displayed above the boss's health bar.
should_darken_skyboolean
Whether the sky should darken in the presence of the boss.