Solved I need help in my script

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

DuBistAcc.1

Member
May 27, 2018
10
0
0
32
I have no idea why I get an error with this code:
code_language.skript:
on join:
    set {lb.an.1} to true
    
on place of diamond block:
    if {lb.an.1} is true:
wait 3 second
set event-block to green clay
wait 1 second
set event-block to yellow clay
wait 1 second
set event-block to red clay
wait 1 second
set {lb.an.1} to false
set {lb.an.1} to true

The error:
code_language.skript:
invalid line - all code has to be put into triggers


Please help me
 
I have no idea why I get an error with this code:
code_language.skript:
on join:
    set {lb.an.1} to true
   
on place of diamond block:
    if {lb.an.1} is true:
wait 3 second
set event-block to green clay
wait 1 second
set event-block to yellow clay
wait 1 second
set event-block to red clay
wait 1 second
set {lb.an.1} to false
set {lb.an.1} to true

The error:
code_language.skript:
invalid line - all code has to be put into triggers


Please help me
code_language.skript:
on join:
    set {lb.an.1} to true
   
on place of diamond block:
    if {lb.an.1} is true:
        wait 3 second
        set event-block to green clay
        wait 1 second
        set event-block to yellow clay
        wait 1 second
        set event-block to red clay
        wait 1 second
        set {lb.an.1} to false
        set {lb.an.1} to true
 
  • Like
Reactions: Stegoleopluradon2
Status
Not open for further replies.