Skip to content

Bossbar Syntaxes #8491

@AnOwlBe

Description

@AnOwlBe

Suggestion

https://jd.papermc.io/paper/1.21.11/org/bukkit/boss/BossBar.html
https://jd.papermc.io/paper/1.21.11/org/bukkit/boss/KeyedBossBar.html

This would be a perfect thing for sections something along:

create [a] [new] (bossbar|bar) with id "mm":
     set color of bossbar to RED
     set progress of bossbar to 100
     set title of bossbar to "<red>mm red"
     set style of bossbar to NOTCHED
     set bar flags of bossbar to create_fog,darken_sky and play_boss_music
     add all players to bossbar
     remove all players from bossbar

or instead just do what skbee does ([new] boss[ ]bar [(named|with id) %string%] with title %string% [with (color|colour) %color%] [with style %bossbarstyle%] [with progress %number%]) but considering the elements of a bossbar that wouldn't really be that clean syntax wise

oh and probably a way to retrieve the values of a bossbar (color, progress etc) through the bossbar's id

Why?

This is a feature used by many and it was added in minecraft 1.9 (15 years ago!) and it still hasn't been implemented into Skript

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature request, an issue about something that could be improved, or a PR improving something.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions