Armor potion effect

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

Status
Not open for further replies.

MateoxPL

Active Member
Jan 27, 2018
116
0
16
Hello
Can I do it in a different way?
code_language.skript:
Every 5 second:
     Loop all players:
          If loop-player is wearing boots of protection 10:
               Remove speed from loop-player
               Apply speed 1 to loop-player for 5 seconds
 
code_language.skript:
on join:
    while player is online:
        if player is wearing boots of protection 10:
            remove speed from player
            apply speed 1 to player for 5 seconds
        wait 5 seconds
while loops are supposedly better than periodicals but i doubt youll notice any difference
 
the best way to do this is using an armor equip event with skript-mirror
 
Status
Not open for further replies.