i have this skript but when i keep right clicking it is putting the cooldown again

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

habbic

Member
Mar 18, 2024
29
0
1
24
Code:
on rightclick with ender pearl:
    wait 0.3 second
    set item cooldown of ender pearl for player to 7 seconds
 
Code:
on rightclick with ender pearl:
    player does not have player's tool on cooldown
    wait 0.3 second
    set item cooldown of ender pearl for player to 7 seconds
 
Code:
on rightclick with ender pearl:
    player does not have player's tool on cooldown
    wait 0.3 second
    set item cooldown of ender pearl for player to 7 seconds
Nope still dosent work when i spam right click the cooldown keeps placing back making it impossible to teleport
 
Is it possible the enderpearl was in your offhand while you were spamming? Try changing it to player does not have ender pearl on cooldown
 
Is it possible the enderpearl was in your offhand while you were spamming? Try changing it to player does not have ender pearl on cooldown
is not in the offhand i can show u what i mean in vc if u would like here is my discord ".printon"
 
Hey! Try this, this should work.

Code:
on right click with ender pearl:
  if player has player's tool on cooldown:
    send "&cItem on cooldown!" to player
  else:
    set the cooldown of player's tool for player to 7 seconds
 
Hey! Try this, this should work.

Code:
on right click with ender pearl:
  if player has player's tool on cooldown:
    send "&cItem on cooldown!" to player
  else:
    set the cooldown of player's tool for player to 7 seconds
works but can u fix this skript too pretty please :3


Code:
on region enter:
    if {cooldownshield::%player%} is not set:
        set {cooldownshield::%player%} to now
    if "%region%" contains "stroomportal":
        if player's tool is a shield:
            wait 1 tick
            set the cooldown of player's tool to 9999 hours
    else:
        if player's tool is a shield:
            wait 1 tick
            set {cooldownshield::%player%} to now
            set the cooldown of player's tool to 1 second
 
works but can u fix this skript too pretty please :3


Code:
on region enter:
    if {cooldownshield::%player%} is not set:
        set {cooldownshield::%player%} to now
    if "%region%" contains "stroomportal":
        if player's tool is a shield:
            wait 1 tick
            set the cooldown of player's tool to 9999 hours
    else:
        if player's tool is a shield:
            wait 1 tick
            set {cooldownshield::%player%} to now
            set the cooldown of player's tool to 1 second
I'll try later, I'm currently doing something.
 
works but can u fix this skript too pretty please :3


Code:
on region enter:
    if {cooldownshield::%player%} is not set:
        set {cooldownshield::%player%} to now
    if "%region%" contains "stroomportal":
        if player's tool is a shield:
            wait 1 tick
            set the cooldown of player's tool to 9999 hours
    else:
        if player's tool is a shield:
            wait 1 tick
            set {cooldownshield::%player%} to now
            set the cooldown of player's tool to 1 second
Code:
on region enter:
    if {cooldownshield::%player%} isn't set:
        set {cooldownshield::%player%} to now
    if "%region%" contains "stroomportal":
        if player's tool is a shield:
            set the cooldown of player's tool for player to 9999999 seconds
    else:
        if player's tool is a shield:
            set {cooldownshield::%player%} to now
            set the cooldown of player's tool for player to 1 second

Try this. Let me know if you have any problems :emoji_grinning:
 
Code:
on region enter:
    if {cooldownshield::%player%} isn't set:
        set {cooldownshield::%player%} to now
    if "%region%" contains "stroomportal":
        if player's tool is a shield:
            set the cooldown of player's tool for player to 9999999 seconds
    else:
        if player's tool is a shield:
            set {cooldownshield::%player%} to now
            set the cooldown of player's tool for player to 1 second

Try this. Let me know if you have any problems :emoji_grinning:
Nothing happends, so i wanted to make shields not work in a specific region.
 
code_language.skript:
on region enter:
    wait 1 tick # "Region Enter" events usually have to wait a tick before processing (optimizing)
    if "%region at player%" contains "stroomportal":
        set cooldown of shield for player to 10 days # No one would wait 10 days for a shield-
    else:
        if cooldown of shield for player is not 0 seconds:
            clear cooldown of shield for player

Untested.
 
Last edited:
code_language.skript:
on region enter:
    wait 1 tick # "Region Enter" events usually have to wait a tick before processing (optimizing)
    if "%region at player%" contains "stroomportal":
        set cooldown of shield for player to 10 days # No one would wait 10 days for a shield-
    else:
        if cooldown of shield for player is not 0 seconds:
            clear cooldown of shield for player

Untested.
still nothing
the skript has no errors but it does nothing