New Boss Bar (Expression) — Skript

Addon: Skript · Category: Expression

Syntax

[new] boss[ ]bar [(with [the] title|titled) %component%] [[and] with progress %number%] [[and] with colo[u]r %bossbarcolor%] [[and] with overlay %bossbaroverlay%]

Description

Creates a new boss bar. Progress is a number between 0 and 1 and is clamped to that range, defaulting to 1. The color defaults to white and the overlay to progress. A boss bar is not shown to anybody until it is shown to them.

Examples

set {_bar} to new boss bar titled "<red>Dragon"
add {_bar} to boss bars of all players

set {_bar} to new boss bar titled "Event starting" with progress 0 and with color green bar

View source