time of day skript help

  • 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 community!

    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!

boqkzi

Member
Feb 10, 2024
2
0
1
I wanna make a skript so the actionbar of the player will show morning, afternoon, night, etc at the time of day. anyone know a skript for that?
 
Try:

code_language.skript:
on join:
    while player is online:
        wait 1 second
        if time in player's world is between 6:00 and 12:00:
            send action bar "&eMorning" to player
        else if time in player's world is between 12:00 and 18:00:
            send action bar "&eDay" to player
        else if time in player's world is between 18:00 and 6:00:
            send action bar "&9Night" to player