Solved It doesnt update properly

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

Poinapples

Member
Feb 4, 2024
25
0
1
When I loaded the skript, the cooldown counts down in increments of 5 instead of 1.
code_language.skript:
on right click:
    if player is sneaking:
        if event-item is diamond sword:
            if name of event-item is "&1&lWarden Sword":
                if {blast_cooldown.%player's uuid%} is true:
                    cancel event
                else:
                    set {blast_cooldown.%player's uuid%} to true
                    set {blast_cooldown_display.%player's uuid%} to 120
                    play sound "minecraft:entity.warden.sonic_boom" with volume 1 to all players within 6 blocks around the player
                    loop blocks between block 1 infront of player and block 20 infront of player:
                        make 10 of sonic boom at loop-block
                        loop entities in radius 1.5 of loop-block:
                            damage loop-entity by 20 if loop-entity is not player
                    while {blast_cooldown_display.%player's uuid%} is not 0:
                        remove 1 from {blast_cooldown_display.%player's uuid%}
                        wait 1 second
                        if {blast_cooldown_display.%player's uuid%} is 0:
                            set {blast_cooldown.%player's uuid%} to false
                            set {blast_cooldown_display.%player's uuid%} to "&a✔"
                            
                            
                            
                            
                            
                            
                            
                            
every 1 second:
    loop all players:
        set {_uuid} to uuid of loop-player

        if {HeartSec::%{_uuid}%} is not set:
            set {HeartMin::%{_uuid}%} to 59
            set {HeartSec::%{_uuid}%} to 60

        if {HeartSec::%{_uuid}%} is not -1:
            remove 1 from {HeartSec::%{_uuid}%}

        if {HeartSec::%{_uuid}%} < 1:
            if {HeartMin::%{_uuid}%} > 0:
                set {HeartSec::%{_uuid}%} to 59
            remove 1 from {HeartMin::%{_uuid}%}

        if {HeartMin::%{_uuid}%} > 0:
            if {HeartSec::%{_uuid}%} > 0:
                set {HeartText::%{_uuid}%} to "%{HeartMin::%{_uuid}%}%:%{HeartSec::%{_uuid}%}%"
        if {HeartMin::%{_uuid}%} > 0:
            if {HeartSec::%{_uuid}%} < 1:
                set {HeartText::%{_uuid}%} to "%{HeartMin::%{_uuid}%}%"
        if {HeartMin::%{_uuid}%} < 1:
            if {HeartSec::%{_uuid}%} > 0:
                set {HeartText::%{_uuid}%} to "0:%{HeartSec::%{_uuid}%}%"
        if {HeartSec::%{_uuid}%} < 10:
            set {HeartText::%{_uuid}%} to "%{HeartMin::%{_uuid}%}%:0%{HeartSec::%{_uuid}%}%"
        if loop-player does not have diamond sword of sharpness 5 and fire aspect 2 and unbreaking 3 and mending named "&1&lWarden Sword" with custom model data 1:
            set {cooldowns.%{_uuid}%} to  "&1 : &c❌"
        else:
            set {cooldowns.%{_uuid}%} to  "&1 : %{blast_cooldown_display.%{_uuid}%}%"