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 I need help in my script

Discussion in 'Skript' started by DuBistAcc.1, May 27, 2018.

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

    DuBistAcc.1 Member

    Joined:
    May 27, 2018
    Messages:
    10
    Likes Received:
    0
    I have no idea why I get an error with this code:
    Code (Skript):
    1. on join:
    2.     set {lb.an.1} to true
    3.    
    4. on place of diamond block:
    5.     if {lb.an.1} is true:
    6. wait 3 second
    7. set event-block to green clay
    8. wait 1 second
    9. set event-block to yellow clay
    10. wait 1 second
    11. set event-block to red clay
    12. wait 1 second
    13. set {lb.an.1} to false
    14. set {lb.an.1} to true
    The error:
    Code (Skript):
    1. invalid line - all code has to be put into triggers

    Please help me
     
  2. Best Answer:
    Post #2 by Runakai, May 27, 2018
  3. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    Code (Skript):
    1.  
    2. on join:
    3.     set {lb.an.1} to true
    4.    
    5. on place of diamond block:
    6.     if {lb.an.1} is true:
    7.         wait 3 second
    8.         set event-block to green clay
    9.         wait 1 second
    10.         set event-block to yellow clay
    11.         wait 1 second
    12.         set event-block to red clay
    13.         wait 1 second
    14.         set {lb.an.1} to false
    15.         set {lb.an.1} to true
     
    • Agree Agree x 3
    • Like Like x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...