Paste #42361: Untitled Paste

Date: 2017/06/03 14:32:55 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14


DungeonsCore1:
  type: world
  debug: true
  events:
    on chunk loads for the first time:
    - define cuboid <context.chunk.cuboid>
    - if <def[cuboid].blocks[command].filter[command_block_name.contains[dungeon]].size> > 0 {
      - if <yaml[dungeon-chunks].read[dungeonchunks].contains[<context.chunk>]||false> == false {
        - yaml 'load:/dungeons/dungeonchunks.yml' 'id:dungeon-chunks'
        - yaml set 'dungeoncuboids:|:<context.chunk.cuboid.replace_text[|].with[*]>' id:dungeon-chunks
        - yaml set 'dungeonchunks:|:<context.chunk>' id:dungeon-chunks
        - yaml 'savefile:/dungeons/dungeonchunks.yml' id:dungeon-chunks
        }
      }