Hello, i'm trying to make a skript for rainbow crates! i wanted to use different colors of wool to use as rainbows blocks but it gives errors.
Here is my code:
set {_list::*} to red wool, blue wool, lime wool, purple wool, light blue wool, cyan wool, orange wool, yellow wool and green wool
every 0.7 seconds:
set block at location(x-174,y4,z-93,world "world") to random element out of {_list::*}
the errors i get when i reload my skript:
error 1:
Line 1: Invalid line, all code has to be put in triggers! line: set {_list::*} to red wool, blue wool, lime wool, purple wool, light blue wool, cyan wool, orange wool, yellow wool and green wool
error 2:
Line 4: Functions cannot be used here (or there is a problem with your arguments)! Line: set block at location(x-174,y4,z-93,world "world") to random element out of {_list::*}
Does anyone know how to fix this? I tried everything so please send me a working code! Thanks in advance!
Question
mr_peef
Hello, i'm trying to make a skript for rainbow crates! i wanted to use different colors of wool to use as rainbows blocks but it gives errors.
Here is my code:
set {_list::*} to red wool, blue wool, lime wool, purple wool, light blue wool, cyan wool, orange wool, yellow wool and green wool
every 0.7 seconds:
set block at location(x-174,y4,z-93,world "world") to random element out of {_list::*}
the errors i get when i reload my skript:
error 1:
Line 1: Invalid line, all code has to be put in triggers! line: set {_list::*} to red wool, blue wool, lime wool, purple wool, light blue wool, cyan wool, orange wool, yellow wool and green wool
error 2:
Line 4: Functions cannot be used here (or there is a problem with your arguments)! Line: set block at location(x-174,y4,z-93,world "world") to random element out of {_list::*}
Does anyone know how to fix this? I tried everything so please send me a working code! Thanks in advance!
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now