Solved Block Speed 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 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!

Status
Not open for further replies.

ItsMCB

Member
May 20, 2018
46
1
8
23
www.vexel.media
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:
every 2 ticks:
    loop all players:
        if "%region at all players%" contains "spawn":
            if block at loop-player's location is black concrete:
                apply swiftness to loop-player for 2 seconds
 
Code:
on any movement:
    if "%region at player%" contains "spawn":
        if block under player is black concrete:   
            apply swiftness of tier 2 without any particles to player
            wait 2 seconds
            remove swiftness from player
 
Code:
on any movement:
    if "%region at player%" contains "spawn":
        if block under player is black concrete:  
            apply swiftness of tier 2 without any particles to player
            wait 2 seconds
            remove swiftness from player
I get this error:
It can't understand "loop all players"
 
Add skquery and see if it works, then put the code I sent you In place of the other
 
Last edited:
Uhm yes
[doublepost=1594890266,1594890194][/doublepost]
Code:
on any movement:
    if "%region at player%" contains "spawn":
        if block under player is black concrete: 
            apply swiftness of tier 2 without any particles to player
            wait 2 seconds
    else:
        remove swiftness from player
[doublepost=1594903210][/doublepost]If it doesn't work, don't hesitate to write!
 
Uhm yes
[doublepost=1594890266,1594890194][/doublepost]
Code:
on any movement:
    if "%region at player%" contains "spawn":
        if block under player is black concrete:
            apply swiftness of tier 2 without any particles to player
            wait 2 seconds
    else:
        remove swiftness from player
[doublepost=1594903210][/doublepost]If it doesn't work, don't hesitate to write!
Thank you!
 
Status
Not open for further replies.