How would I make this not show errors?

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

Vini

Member
Apr 8, 2023
42
2
8
25
I want it to only delete the blocks in a region containing "mine" in it's name
Code:
        loop blocks in radius 1.75 of event-block at region containing name "mine":
            give giveBlock(player, block) to player
            delete loop-block

Can someone help?
It doesn't seem that hard, but I can't seem to find a solution.
 
Hi Vini.
You did this wrong.

Code:
every 1 second:
    loop blocks in radius 1.75 of event-block at region containing name "mine":
        give giveBlock(player, block) to player
        delete loop-block
Code:
 
Hi Vini.
You did this wrong.

Code:
every 1 second:
    loop blocks in radius 1.75 of event-block at region containing name "mine":
        give giveBlock(player, block) to player
        delete loop-block
Code:
this is only a portion of the code, the issue is with this part of the code: loop blocks in radius 1.75 of event-block at region containing name "mine":
 
this is only a portion of the code, the issue is with this part of the code: loop blocks in radius 1.75 of event-block at region containing name "mine":
For anyone that's running into the same issue, I managed to solve it, It works perfectly how I want:

Code:
        loop blocks in radius 1.75 around event-block:
            set {_region} to "%region at loop-block%"
            if {_region} contains "mine":
                give giveBlock(player, loop-block) to player
                delete loop-block