Date: 2017/06/03 14:32:55 UTC-07:00
Type: Denizen Script
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
}
}