SKRegions is a simple region-data manager that allows multiple YML files for more clarity and optimization.
Required addons: SKUtilities, SKQuery, SKStuff
First, you'll have to set the path of the folder where files are supported. Open the script with your favorite text editor and change the path value in options (the default value is plugins/Skript/scripts/SKRegion/). Do not forget the slash at the end ! You can also change here the required permission (perm value) to execute commands.
- Getting started
![]()
In this folder, you can edit, add or remove any file at any time but just be sure it's always YML files. The contents of a correct file should follow this pattern:
- Your Folder
Here's an exemple for two regions in 'world' and one in 'end'Code (Skript):
<world>: <region>: '1': x y z '2': x1 y1 z1 <region>: '1': x y z '2': x1 y1 z1 <world>: <region>: '1': x y z '2': x1 y1 z1
Code (Skript):
world: dac: '1': -32 89 -110 '2': -25 93 -105 end: cp0: '1': -32 25 -19 '2': -28 28 -18 reception: '1': -45 12 -8 '2': -40 14 4
- Commands
The main command. The file is automatically added if it doesn't exist. When the file's name is not given, it'll be by default regions.yml.Code (Skript):
/skregion <create|clear|display|list> [region] [file]
Create a region with you current World Edit selection in the file.Code (Skript):
/skr create <region> [file]
Delete an existent region in the file. If <region> is '*', it will delete the file.Code (Skript):
/skr clear <region> [file]
Set your current World Edit's selection to an existent region in the file.Code (Skript):
/skr display <region> [file]
List all the recognized regions. Useful to detect any errors after a file's modification.Code (Skript):
/skr list [file]
Convert World Guard's regions of the file to SKRegions in a new file.Code (Skript):
/regionsWGtoSK <file> <regions' world>
- Functions
Return true if the location is in the region.Code (Skript):
LocisWithin(loc: location,region: text,f: text="regions.yml") :: boolean:
Return the region of the file in which the location is (else it returns the text 'none').Code (Skript):
LocInRegion(loc: location,f: text="regions.yml") :: text:
So make files with only the useful regions to avoid lag !
Same as before, but allows several regions.Code (Skript):
LocInRegions(loc: location,f: texts) :: text:
Add the region in the file. Returns false if an error was encountered.Code (Skript):
skregionadd(region: text, loc1: location, loc2: location, file: text="regions.yml") :: boolean:
Delete the region of the file. Returns false if an error was encountered.Code (Skript):
skregionclear(region: text, file: text="regions.yml") :: boolean:
-
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!
Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script SKRegions - A simple regions manager 1.2
Manage and use multiple YML files of regions for your scripts !
Recent Updates
- Bug fixes Mar 26, 2017
- Added LocInRegions Mar 26, 2017
- Minor changes Mar 25, 2017