1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bossbar countdown

Discussion in 'Skript' started by SoMuchWessel, Apr 13, 2020.

Tags:
Thread Status:
Not open for further replies.
  1. SoMuchWessel

    SoMuchWessel Active Member

    Joined:
    Apr 3, 2017
    Messages:
    147
    Likes Received:
    2
    Hey there,

    I started working with bossbars, and I thought it would be cool to make a bossbar countdown.

    After some testing, I ended up with this peace of code:
    Code (Text):
    1.  
    2. command /countdown [<number>] [<text>]:
    3.     trigger:
    4.         create bossbar titled "%colored arg-2%" and id "%arg-2%" for player with progress 100 with colors blue
    5.         loop 100 times:
    6.             set bossbar "%arg-2%" value to (100 - loop-number)
    7.             wait 1 second
    8.         remove bossbar "%arg-2%"
    9.  
    The problem is, that I cant get it to work the way I want it to.

    I want that if I run the command /countdown, and set arg-1 to like 5 seconds, the bossbar will show up and start getting down for the 5 seconds until its finished and disappears.
    Can people help me with this?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...