~ mcmonkey's simpler pastebin ~ Inspired by Hastebin ~ home page ~ Denizen help ~
click to use the normal pastebin instead ~ Click to make your own paste ~ click to duplicate and edit this paste


Title:
Type:
Date:
By:
Raw:
Other:
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2800

Untitled Paste
Denizen Script
2015/11/01 16:24:48 UTC-08:00
BlackCoyote
Click here to view this paste as a raw text file | Or download the script


  - define cuboid cu@<def[base_location].add[-%radius%,-%radius%,-%radius%]>|<def[base_location].add[%radius%,%radius%,%radius%]>
  - foreach <def[cuboid].list_partial_chunks> {
    - define chunk %value%
    - if !<yaml.list.contains[securizen_%chunk%]> {
      - if <server.has_file[/securizen/<def[chunk].world>/<def[chunk].x>/<def[chunk].z>/<def[chunk]>.yml]> {
        - yaml "load:/securizen/<def[chunk].world>/<def[chunk].x>/<def[chunk].z>/<def[chunk]>.yml" id:securizen_<def[chunk]>
        } else {
        - foreach next
        }
      }
    - foreach <yaml[securizen_%chunk%].list_keys[]> {
      - define x %value%
      - if <def[base_location].x.sub[%x%].abs> <= %radius% {
        - foreach <yaml[securizen_%chunk%].list_keys[%X%]> {
          - define y %value%
          - if <def[base_location].y.sub[%y%].abs> <= %radius% {
            - foreach <yaml[securizen_%chunk%].list_keys[%X%.%Y%]>
            - define z %value% {
              - if <def[base_location].y.sub[%z%].abs> <= %radius% {
                - define blocks <def[blocks].include[li@l@%X%.%Y%.%Z%.<def[base_location].world.name>]>
                }
              }
            }
          } 
        }
      }
    }