Date: 2017/04/22 12:14:19 UTC-07:00
Type: Denizen Script
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
}
}