Flectone Logo FlectonePulse

Boss Bar

Module responsible for messages in vanilla boss bars

bossbar raid bossbar wither bossbar enderdragon

🌍Localization

Path localizations → language.yml → message.bossbar
bossbar:
  announce:
    key: "message"
  types:
    entity.minecraft.ender_dragon: "<sprite:item/endermite_spawn_egg><gradient:#ff6bff:#dda0dd>Ender Dragon"
    entity.minecraft.wither: "<sprite:gui:mob_effect/wither><gradient:#7b68ee:#9370db>Wither"
    event.minecraft.raid: "<sprite:gui:mob_effect/raid_omen><gradient:#ff6b6b:#ff4444>Raid"
    event.minecraft.raid.defeat: "<sprite:gui:hud/heart/poisoned_full><gradient:#ff6b6b:#ff4444>Defeat"
    event.minecraft.raid.defeat.full: "<sprite:gui:hud/heart/poisoned_full><gradient:#ff6b6b:#ff4444>Raid - Defeat"
    event.minecraft.raid.raiders_remaining: " - Raiders Remaining: <raiders>"
    event.minecraft.raid.victory: "<sprite:gui:hud/heart/full><gradient:#32cd32:#228b22>Victory"
    event.minecraft.raid.victory.full: "<sprite:gui:hud/heart/full><gradient:#32cd32:#228b22>Raid - Victory"
bossbar:
  announce:
    key: "message"
  types:
    entity.minecraft.ender_dragon: "<sprite:item/endermite_spawn_egg><gradient:#ff6bff:#dda0dd>Эндер-дракон"
    entity.minecraft.wither: "<sprite:gui:mob_effect/wither><gradient:#7b68ee:#9370db>Визер"
    event.minecraft.raid: "<sprite:gui:mob_effect/raid_omen><gradient:#ff6b6b:#ff4444>Рейд"
    event.minecraft.raid.defeat: "<sprite:gui:hud/heart/poisoned_full><gradient:#ff6b6b:#ff4444>Поражение"
    event.minecraft.raid.defeat.full: "<sprite:gui:hud/heart/poisoned_full><gradient:#ff6b6b:#ff4444>Рейд — Поражение"
    event.minecraft.raid.raiders_remaining: " — Осталось рейдеров: <raiders>"
    event.minecraft.raid.victory: "<sprite:gui:hud/heart/full><gradient:#32cd32:#228b22>Победа"
    event.minecraft.raid.victory.full: "<sprite:gui:hud/heart/full><gradient:#32cd32:#228b22>Рейд — Победа"

announce

List of messages when entering a specific boss bar, where the key is the boss bar name (e.g., entity.minecraft.ender_dragon)

types

List of messages for vanilla boss bars. The key event.minecraft.raid.raiders_remaining is special; it is automatically added to raid messages if necessary.

⚙️Setting

Path message.yml → bossbar
bossbar:
  enable: true
  announce:
    key:
      destination:
        type: "TITLE"
        subtext: ""
        times:
          stay: 60
          fade_in: 20
          fade_out: 20
      sound:
        enable: false

enable

Enables or disables the functionality of the module

announce

Can be used to notify the player that they have entered the "dragon" zone (or any other). This does not affect the main boss bar but only complements the functionality. It will trigger every time the player enters the boss bar zone.

The key is the boss bar name (e.g., entity.minecraft.ender_dragon), and the value is where the notification will be sent.

EXAMPLE

I want a chat message saying "It's a dragon!" to appear when a player enters the dragon's boss bar zone.

announce:
entity.minecraft.ender_dragon:
destination:
type: "CHAT"
sound:
enable: false

The message must also be added to the localization:

announce:
entity.minecraft.ender_dragon: "It's a dragon!"

🔐Permissions

Path permission.yml → message.bossbar
bossbar:
  name: "flectonepulse.module.message.bossbar"
  type: "TRUE"
  types: {}

name

Permission name

type

Permission type

TypeExplanation
TRUEAvailable to any player
FALSEAvailable to no one, must be granted separately (e.g., using LuckPerms)
OPAvailable to server operators
NOT_OPAvailable to NON-operators of the server

Last updated on

Edit on GitHub

On this page

Authors of page