BossBar - Create Section (Expression) — SkBee
Addon: SkBee · Category: Expression · Since: 3.21.0
Syntax
create [a] new boss[ ]barDescription
Create a new BossBar with some optional values. If a BossBar with the same ID already exists, it will be updated with the new values. **Entries**: - `id` = ID for the bossbar (required String/NamespacedKey). - `title` = Title of the bossbar [optional string]. - `color` = Color of the bossbar [optional SkriptColor, defaults to purple]. - `style` = Style of the bossbar [optional BarStyle, defaults to solid]. - `fog` = Whether to enable fog effect [optional Boolean, defaults to false]. - `darken_sky` = Whether to darken the sky [optional Boolean, defaults to false]. - `play_boss_music` = Whether to play boss music [optional Boolean, defaults to false]. - `progress` = Progress of the bossbar [optional Number between 0 and 100]. - `visible` = Whether the bossbar is visible [optional Boolean, defaults to true].
Examples
set {_bar} to create new bossbar:
id: "some_id_other"
title: "My Bossbar"
color: green
style: segmented_20
fog: true
darken_sky: true
play_boss_music: false
progress: 75
add all players to {_bar}