loop-block is not a location

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

oHeckGage

Active Member
Mar 24, 2020
110
6
18
22
Code:
on place:
    loop all blocks:
        if loop-block is composter:
            loop all blocks in radius of 5 of loop-block:
                if loop-block is fully grown wheat plant:
                    wait 4 seconds
                    set loop-block to air
                    loop all blocks in radius of 5 of loop-block:
                        if loop-block is chest:
                            add 2 wheat into inventory
                if loop-block is fully grown carrot plant:
                    wait 4 seconds
                    set loop-block to air
                    loop all blocks in radius of 5 of loop-block:
                        if loop-block is chest:
                            add 2 wheat into inventory
                if loop-block is fully grown potato plant:
                    wait 4 seconds
                    set loop-block to air
                    loop all blocks in radius of 5 of loop-block:
                        if loop-block is chest:
                            add 2 wheat into inventory

So line 3 says that loop-block is not a location. What I am trying to do is looping all the blocks from the composter to wait 4 seconds set it to air then add 2 [plant] into the chest but it won't work. Any help?
 
Status
Not open for further replies.