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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
You don't have a way to check if the cooldown isn't zero. Include that and it won't keep refreshing the cooldown.Code:on rightclick with ender pearl: wait 0.3 second set item cooldown of ender pearl for player to 7 seconds
well you are not true when i keep right clicking is putting the cooldown back.You don't have a way to check if the cooldown isn't zero. Include that and it won't keep refreshing the cooldown.
I don't see the an fix for it tho, i do not understand."You are not true"
He literally explained your exact problem.
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 teleportCode: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
is not in the offhand i can show u what i mean in vc if u would like here is my discord ".printon"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
same thing.I can't VC rn, did you try the fix I provided?
works but can u fix this skript too pretty please :3Hey! 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
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
okay lmk when u have time.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
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
Nothing happends, so i wanted to make shields not work in a specific region.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![]()
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
still nothingcode_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.