help lmao

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

Aug 18, 2023
18
1
3
so im trying to give an effect every second when holding a specific item
Code:
on load:
    every 1 second:
        loop all players:
            if player's offhand tool is blaze rod named "&6Fire Rod &f/ &cLevel 1":
                if loop-player doesn't have fire resistance:
                    apply fire resistance 1 to loop-player for 1 seconds

Edit: its the second line that doesnt work (every 1 second)
 
I don't recommend using periodic events to do that; instead you can try this:

Code:
on join:
    while player is online:
        if player's offhand tool is blaze rod named "&6Fire Rod &f/ &cLevel 1":
            apply fire resistance 1 to player for 0.5 second replacing existing effect
        wait 0.5 second

 
I don't recommend using periodic events to do that; instead you can try this:

Code:
on join:
    while player is online:
        if player's offhand tool is blaze rod named "&6Fire Rod &f/ &cLevel 1":
            apply fire resistance 1 to player for 0.5 second replacing existing effect
        wait 0.5 second

i dont get the effect