Arena Clear Skript

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

Jan 26, 2022
1
0
1
22
Suggested name: Arena Clear

Spigot/Skript Version: Skript: 2.6 MC 1.17

What I want: I want a Skript that will run automatically every 15mins that will clear all the block of a certain region automatically

Ideas for commands: /arenaclear

Ideas for permissions: skript.arenaclear
 
this is a bit general topic, so it can't be created in one script as I'm guessing you would prefer to edit the regions yourself, so I'll split this up into parts:

1 Create a 'structure' using SkBee, this would be the region that would get cleared.
code_language.skript:
save structure between {_location1} and {_location2} as "MyRegion"

2 Every 15 minutes, load the region at the bottom corner block of the structure. Press F3 and use the cursor in the center to locate the corner block of the structure. Otherwise, the structure may be loaded in the wrong direction.
code_language.skript:
every 15 minutes:
    load structure "MyRegion" at location(xx, yy, zz, world("YOUR_WORLD"))
Alternatively you can also simply rotate the structure to load it correctly, example:
code_language.skript:
load structure "MyRegion" at location(xx, yy, zz, world("YOUR_WORLD)) with rotation 180