1. Wiki
  2. /Entities
  3. /minecraft:boss

minecraft:boss

Don't want to write this by hand? GodCraft sets minecraft:boss for you with a switch.Get GodCraft

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

FieldTypeDefaultDescription
namestring""Text shown above the boss health bar.
should_darken_skybooleanfalseSet to true to make the sky go darker while the boss is around.
hud_rangeinteger55How 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
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more