SkRayfall Bossbar

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Mattllama987

Active Member
Aug 5, 2018
225
7
18
24
Hello, im new to making bossbars. Im trying to make a bossbar that will be on a 15 mins timer and then get deleted after the 15 mins is up. Im not sure how to set it to do that. I fiddled around with it alot and cant seems to get the time just right. If anyone is a expert with bossbars and knows how to get it to work, please let me know ASAP. Not sure why the indentation looks wrong.

Thanks!
~Matt

Code:
create bossbar titled "&bFishing Contest" and id "contest" for player with progress 100 with colors blue
                    wait 1 ticks
                    loop 10000 times:
                        set {_value} to value of bossbar "contest"
                        remove 0.03 from {_value}
                        set bossbar "contest" value to {_value}
                        wait 3 ticks
                    remove bossbar "contest"
 
a bossbar only has a progress value of 100, so I wouldnt loop any more than 100 times,
I would probably do something like this:
code_language.skript:
create bossbar titled "&bFishing Contest" and id "contest" for player with progress 100 with colors blue
loop 100 times:
    set bossbar "contest" value to (100 - loop-number)
    wait 9 seconds # 100 * 9sec = 15 minutes
remove bossbar "contest"
 
Status
Not open for further replies.