Clear Area Command

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

    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!

iLikeBread100

Member
Jan 31, 2025
3
0
1
Im trying to make a command that clears an area in my box server, and it resets the mines it deletes
I'm very new to skript so please don't make fun of me, i have no idea what im doing. Any help is appreciated :emoji_slight_smile:
Heres the script:

command: /declutter
permission: op
trigger:
execute console command "fill -287 204 -224 -164 107 -386 minecraft:air"
execute console command "mrl reset iron"
execute console command "mrl reset wood"
execute console command "mrl reset diamond"
execute console command "mrl reset stone"
execute console command "mrl reset emerald"
 
1738396175454.png

it's very useful. Please use it another time :emoji_slight_smile:

I'm checking your code.
 
Python:
command: /declutter
    permission: op
    trigger:
        loop all blocks within location(-287, 204, -224, world "WORLDNAME") and location(-164, 107, -386, world "WORLDNAME"):
            set block at loop-block to air

        execute console command "mrl reset iron"
        execute console command "mrl reset wood"
        execute console command "mrl reset diamond"
        execute console command "mrl reset stone"
        execute console command "mrl reset emerald"

Note: Locations might have deflection. Check locations by F3 and replace them.

Change "WORLDNAME" with your world name in server folder.