SKRegions is a simple region-data manager that allows multiple YML files for more clarity and optimization.
Required addons: SKUtilities, SKQuery, SKStuff
- Getting started
- Your Folder
code_language.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_language.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
code_language.skript:
/skregion <create|clear|display|list> [region] [file]
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_language.skript:
/skr create <region> [file]
code_language.skript:
/skr clear <region> [file]
code_language.skript:
/skr display <region> [file]
code_language.skript:
/skr list [file]
code_language.skript:
/regionsWGtoSK <file> <regions' world>
- Functions
code_language.skript:
LocisWithin(loc: location,region: text,f: text="regions.yml") :: boolean:
code_language.skript:
LocInRegion(loc: location,f: text="regions.yml") :: text:
So make files with only the useful regions to avoid lag !
code_language.skript:
LocInRegions(loc: location,f: texts) :: text:
code_language.skript:
skregionadd(region: text, loc1: location, loc2: location, file: text="regions.yml") :: boolean:
code_language.skript:
skregionclear(region: text, file: text="regions.yml") :: boolean: