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

Solved help me with my puzzle

Discussion in 'Skript' started by Hessel, Aug 16, 2020.

Thread Status:
Not open for further replies.
  1. Hessel

    Hessel Member

    Joined:
    Aug 16, 2020
    Messages:
    1
    Likes Received:
    0
    Code (Text):
    1. command /addblocks:
    2.     trigger:
    3.         loop all blocks in radius 10 around player:
    4.             if loop-block is red wool:
    5.                 add location of loop-block to {red::*}
    6.                 broadcast "%{red::*}%"
    7.             else if loop-block is white wool:
    8.                 add location of loop-block to {white::*}
    9.                 broadcast "%{white::*}%"
    10.             else if loop-block is blue wool:
    11.                 add location of loop-block to {blue::*}
    12.                 broadcast "%{blue::*}%"
    I have this to define locations of blocks but now i want to check if the player
    placed them correctly like it is supposed to be. How can i do this?

    Code (Text):
    1. if "%event-region%" contains "dutch":
    2.         loop blocks in radius 10 around player:
    3.             if {red::*} contains loop-block:
    4.                 broadcast "works"
    ^ because i did this, but that didn't work :/

    this is the pattern the player has to make inside the Polished Andesite:

    View attachment 5227
     
Thread Status:
Not open for further replies.

Share This Page

Loading...