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.

Countdown formatted for box?

Discussion in 'Skript' started by zKutari, Sep 3, 2022.

Thread Status:
Not open for further replies.
  1. zKutari

    zKutari Member

    Joined:
    Sep 3, 2022
    Messages:
    4
    Likes Received:
    1
    Hey guys,

    I have a skript that pretty much does nothing more and nothing less than clearing my pvp box and resetting it‘s ore mines via the MineResetLife plugin. I want it to reset the box every 2 hours AND create a countdown afterwards, so people can see the countdown on the scoreboard on the right of their screen and know when the server restarts. The skript also should loop the countdown once the server clear is finished, so it‘s a never ending process.

    The countdown should be formatted aswell ^^

    Now my infos:
    • Script Version (do not put latest): 2.6.3
    • Minecraft Version: 1.17.1
    • Full Code:
      Code (Text):
      1. every 2 hours in world "world":
      2.     teleport all players to spawn
      3.     send title "&e&l[Server Clear]" with subtitle "&4&lstarting NOW!" to all players for 10 seconds
      4.     execute console command "/mrl reset bigbox"
      5.     execute console command "/mrl reset wood"
      6.     execute console command "/mrl reset wood2"
      7.     execute console command "/mrl reset iron"
      8.     execute console command "/mrl reset iron2"
      9.     execute console command "/mrl reset amethyst2"
      10.     execute console command "/mrl reset amethyst3"
      11.     execute console command "/mrl reset amethyst4"
      12.     execute console command "/mrl reset amethyst5"
      13.     execute console command "/mrl reset amethyst6"
      14.     execute console command "/mrl reset amethyst7"
      15.     execute console command "/mrl reset amethyst8"
      16.     execute console command "/mrl reset amethyst9"
      17.     execute console command "/mrl reset diamonds"
      18.     execute console command "/mrl reset stone"
      19.     execute console command "/mrl reset stone2"
      20.     execute console command "/mrl reset coal"
      21.     execute console command "/mrl reset coal2"
      22.     execute console command "/mrl reset gold"
      23.     execute console command "/mrl reset lapis"
      24.     execute console command "/mrl reset emeralds"
      25.     execute console command "/mrl reset obsidian"
      26.     execute console command "/mrl reset redstone"
      27.     execute console command "/mrl reset netherite"
      28.  
      29.         stop
    • Addons using (including versions): None.
    • Have you tried searching the docs?: Yes, skripthub + this one.

    • Have you tried searching the Forums?:
      Yes, not all, but yes.
    • What other methods have you tried to fix it?

    • Googling it, searching on youtube, asking on minehut discord.


      Kind regards
      zKutari
     
  2. Jake*

    Supporter

    Joined:
    Jan 30, 2022
    Messages:
    109
    Likes Received:
    6
    in that periodical add
    Code (Text):
    1. set {lastreset} to now
    to get the remaining time use
    Code (Text):
    1. difference between {lastreset} and now
     
Thread Status:
Not open for further replies.

Share This Page

Loading...