Solved help me with my puzzle

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Hessel

Member
Aug 16, 2020
1
0
1
22
Code:
command /addblocks:
    trigger:
        loop all blocks in radius 10 around player:
            if loop-block is red wool:
                add location of loop-block to {red::*}
                broadcast "%{red::*}%"
            else if loop-block is white wool:
                add location of loop-block to {white::*}
                broadcast "%{white::*}%"
            else if loop-block is blue wool:
                add location of loop-block to {blue::*}
                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:
if "%event-region%" contains "dutch":
        loop blocks in radius 10 around player:
            if {red::*} contains loop-block:
                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
 
Status
Not open for further replies.