- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2017/07/19 22:30:28 UTC-07:00
ByAnthony
Other
Paste
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
6800
dRegions_ConfigFileGenerator:
  type: task
  debug: false
  definitions: readID|writeID|readPath|writePath|update
  script:
    - ^define keylist '<yaml[%readID%].list_keys[%readPath%]||null>'
    - ^if '%keylist%' != 'null' {
      - if '%keylist%' == 'li@' {
        - yaml set '%writePath%:|:' 'id:%writeID%'
        }
        else {
        - inject locally p:foreachKeylist instantly
        }
      }
      else {
      - define entry '<yaml[%readID%].read[%readPath%]>'
      - if <yaml[%readID%].is_list[%readPath%]> {
        - foreach '%entry%' {
          - if <yaml[%writeID%].read[%writePath%].contains[%value%].not||true> || %update% {
            - yaml set '%writePath%:->:%value%' 'id:%writeID%'
            }
          }
        }
        else {
        - if '<yaml[%writeID%].contains[%writePath%].not>' || '%update%' {
          - yaml set '%writePath%:%entry%' 'id:%writeID%'
          }
        }
      }

  foreachKeylist:
    - foreach '%keylist%' {
      - run s@dRegions_ConfigFileGenerator 'def:%readID%|%writeID%|%readPath%.%value%|%writePath%.%value%|%update%' instantly
      }



dRegions_Configurations:
  type: yaml data

  config:
    version: 0.32
    clear_cache_on_restart: false
    language: us
    stats:
      About: This allows sending basic dRegions usage info to the Script Tracker system created by BlackCoyote. Doing this helps me focus my development efforts. Please enable webget in the Denizen config.yml file and here to participate.
      useStats: true
    regions:
      enable: true
      invincibility-removes-mobs: false
      invincibility-confuses-mobs: false
      wand: drg_wand
      ownerOnDefine: false
      claim:
        max-volume: 0
        only-inside-existing-regions: true
        max-region-count-per-player:
          default: 7
    spread:
      water: true
      water-list[]
      lava: true
      lava-list[]
      mycel: true
      grass: true
      mushroom: true
      vines: true



RawRaw



Pastes made: 73883