Countdown formatted for box?

  • 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.

zKutari

Member
Sep 3, 2022
4
1
3
23
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:
    every 2 hours in world "world":
        teleport all players to spawn
        send title "&e&l[Server Clear]" with subtitle "&4&lstarting NOW!" to all players for 10 seconds
        execute console command "/mrl reset bigbox"
        execute console command "/mrl reset wood"
        execute console command "/mrl reset wood2"
        execute console command "/mrl reset iron"
        execute console command "/mrl reset iron2"
        execute console command "/mrl reset amethyst2"
        execute console command "/mrl reset amethyst3"
        execute console command "/mrl reset amethyst4"
        execute console command "/mrl reset amethyst5"
        execute console command "/mrl reset amethyst6"
        execute console command "/mrl reset amethyst7"
        execute console command "/mrl reset amethyst8"
        execute console command "/mrl reset amethyst9"
        execute console command "/mrl reset diamonds"
        execute console command "/mrl reset stone"
        execute console command "/mrl reset stone2"
        execute console command "/mrl reset coal"
        execute console command "/mrl reset coal2"
        execute console command "/mrl reset gold"
        execute console command "/mrl reset lapis"
        execute console command "/mrl reset emeralds"
        execute console command "/mrl reset obsidian"
        execute console command "/mrl reset redstone"
        execute console command "/mrl reset netherite"
    
            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
 
in that periodical add
Code:
set {lastreset} to now
to get the remaining time use
Code:
difference between {lastreset} and now
 
Status
Not open for further replies.