Skip to content

BossBar

Create boss bars visible to multiple players. Boss bars persist until destroyed or until /ignis reload.

Metatable name: "bossbar"

ParamTypeDefaultDescription
titlestringBoss bar display title
colorstring"white""pink", "blue", "red", "green", "yellow", "purple", "white"
stylestring"progress""progress", "notched_6", "notched_10", "notched_12", "notched_20"
local bar = mc.createBossBar("&cDragon Fight", "red", "notched_6")

type: number

Boss bar progress (0.0 – 1.0). Read/write.

bar.progress = 0.75

type: boolean

Whether the bar is visible to its viewers. Read/write.

bar.visible = false

Adds a player to see this boss bar.

bar:addPlayer(player)

Removes a player from this boss bar.

bar:removePlayer(player)

Destroys the boss bar permanently.

bar:destroy()

Boss bars are destroyed on /ignis reload. Add players after creation or in the init event.