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

Glass bug

Discussion in 'Skript' started by Jonathan Cohen, Aug 8, 2019.

Thread Status:
Not open for further replies.
  1. Jonathan Cohen

    Joined:
    Jul 31, 2019
    Messages:
    17
    Likes Received:
    0
    Hello, I am making a skywars skript and I am trying to make the cage but when I set the block type to glass it picks a random stained glass color.

    command /glass:
    trigger:
    set block northeast of the player to glass
    set block east of the player to glass
    set block southeast of the player to glass
    set block south of the player to glass
    set block southwest of the player to glass
    set block west of the player to glass
    set block northwest of the player to glass
    set block 2 blocks up north of the player to glass
    set block 2 blocks up northeast of the player to glass
    set block 2 blocks up east of the player to glass
    set block 2 blocks up southeast of the player to glass
    set block 2 blocks up south of the player to glass
    set block 2 blocks up southwest of the player to glass
    set block 2 blocks up west of the player to glass
    set block 2 blocks up northwest of the player to glass
    set block 2 blocks above the player to glass

    Please help me.
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    specify the glass type you want, like `clear glass`
     
  3. Jonathan Cohen

    Joined:
    Jul 31, 2019
    Messages:
    17
    Likes Received:
    0
    That doesnt work
     
  4. Jonathan Cohen

    Joined:
    Jul 31, 2019
    Messages:
    17
    Likes Received:
    0
    if {cage.%player%} is "rainbow":
    set block north of the player to glass
    set block east of the player to glass
    set block south of the player to glass
    set block west of the player to glass
    set block below player to glass
    set block north below player to glass
    set block east below player to glass
    set block south below player to glass
    set block west below player to glass
    set block 1 blocks up north of the player to glass
    set block 1 blocks up east of the player to glass
    set block 1 blocks up south of the player to glass
    set block 1 blocks up west of the player to glass
    set block 2 blocks up north of the player to glass
    set block 2 blocks up east of the player to glass
    set block 2 blocks up south of the player to glass
    set block 2 blocks up west of the player to glass
    set block 3 blocks up north of the player to glass
    set block 3 blocks up east of the player to glass
    set block 3 blocks up south of the player to glass
    set block 3 blocks up west of the player to glass
    set block 3 blocks above the player to glass
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Which version of Spigot are you using?
    Which version of Skript are you using?
     
  6. Jonathan Cohen

    Joined:
    Jul 31, 2019
    Messages:
    17
    Likes Received:
    0
    Both latest version
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    "latest" isn't a version. Not to sound rude but often people say "latest" then it turns out they aren't running the latest.
     
Thread Status:
Not open for further replies.
Loading...