Jump to content

mr_peef

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by mr_peef

  1. 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::*}
     

  2. 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!

    • Like 1
×
×
  • Create New...