Paste #41493: Untitled Paste

Date: 2017/04/22 12:14:19 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
15
16
17


SpawnMobs:
    type: world
    debug: false
    events:
      on chunk loads for the first time:
      - wait 1s
      - chunkload <context.chunk> duration:5
      - define cuboid <context.chunk.cuboid>
      - foreach <def[cuboid].blocks[dispenser]> {
        - if <def[value].inventory.title> == "<&b>Spawner" {
          - copyblock <def[value].add[0,-1,0]> to:<def[value].subtract[0,<def[value].y>,0]> remove_original
          - modifyblock <def[value].add[0,-1,0]> redstone_block naturally
          - wait 5t
          - copyblock <def[value].subtract[0,<def[value].y>,0]> to:<def[value].add[0,-1,0]> remove_original
          - modifyblock <def[value]> air
          }
        }