1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Block Speed Effect

Discussion in 'Skript' started by ItsMCB, Jul 16, 2020.

Thread Status:
Not open for further replies.
  1. ItsMCB

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    Hi there! I want players to have a swiftness three effect when they are in the world guard region of spawn and touching black concrete. It loads with no errors but doesn't work. Any ideas on how I can fix it? Thanks!

    Code (Text):
    1. every 2 ticks:
    2.     loop all players:
    3.         if "%region at all players%" contains "spawn":
    4.             if block at loop-player's location is black concrete:
    5.                 apply swiftness to loop-player for 2 seconds


     
  2. Best Answer:
    Post #8 by Deku, Jul 16, 2020
  3. Deku

    Deku Member

    Joined:
    Jul 12, 2020
    Messages:
    36
    Likes Received:
    0
    Code (Text):
    1. on any movement:
    2.     if "%region at player%" contains "spawn":
    3.         if block under player is black concrete:  
    4.             apply swiftness of tier 2 without any particles to player
    5.             wait 2 seconds
    6.             remove swiftness from player
     
  4. ItsMCB

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    I get this error:
    It can't understand "loop all players"
     
  5. Deku

    Deku Member

    Joined:
    Jul 12, 2020
    Messages:
    36
    Likes Received:
    0
    Do you happen to have any addons for skript?
     
  6. ItsMCB

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    I only have Skript on the server.
     
  7. Deku

    Deku Member

    Joined:
    Jul 12, 2020
    Messages:
    36
    Likes Received:
    0
    Add skquery and see if it works, then put the code I sent you In place of the other
     
    #6 Deku, Jul 16, 2020
    Last edited: Jul 16, 2020
  8. ItsMCB

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    It now works! Thanks! However, it glitches out a bit. () Is there a fix for it?
     
  9. Deku

    Deku Member

    Joined:
    Jul 12, 2020
    Messages:
    36
    Likes Received:
    0
    Uhm yes
    --- Double Post Merged, Jul 16, 2020, Original Post Date: Jul 16, 2020 ---
    Code (Text):
    1. on any movement:
    2.     if "%region at player%" contains "spawn":
    3.         if block under player is black concrete:
    4.             apply swiftness of tier 2 without any particles to player
    5.             wait 2 seconds
    6.     else:
    7.         remove swiftness from player
    --- Double Post Merged, Jul 16, 2020 ---
    If it doesn't work, don't hesitate to write!
     
  10. ItsMCB

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    Thank you!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...