mr_peef
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Blogs
Events
Store
Downloads
Posts posted by mr_peef
-
-
Thanks for the reply but the errors are still there.
Edit: there is a new error: Line 6: a block can't be set to 'a random element out of {list::*} because the latter is neither an item type nor a block data. Line: set block at {_loc} to a random elmement out of {list::*}
This is my current code:
set {_loc} to location(-174, 4, -93, world "world")
set {list::*} to red wool, blue wool, lime wool, purple wool, light blue wool, cyan wool, orange wool, yellow wool, green wool
every 0.7 seconds:
set block at {_loc} to a random elmement out of {list::*}
-
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 woolerror 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!
-
1
-

skript gives errors.
in Help
Posted
Thanks, it doesn't give errors anymore. But it doesn't do anything, nothing happens.