Date: 2014/07/18 13:47:45 UTC-07:00
Type: Denizen Script
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
TheBloodMoon:
type: world
debug: true
events:
on time changes in world:
- if <context.time.is >= [20]> || <context.time.is <= [5]> {
- run TheBloodMoonTask
}
on 6:00 in world:
- execute as_server "butcher"
TheBloodMoonTask:
type: task
debug: true
script:
- define bloodmoon <util.random.int[1].to[1]>
- if %bloodmoon% == 1 {
- announce "Hurry and digin in hell has broke loose"
- foreach <p@player.is_online> {
- define r <util.random.int[1].to[4]>
- if %r% == 1 {
- define mob pig_Zombie
}
else if %r% == 2 {
- define mob Blaze
}
else if %r% == 3 {
- define mob Magma_Cube
}
else if %r% == 4 {
- define mob GHAST
}
- repeat 30 {
- define mobspot <l@<util.random.int[0].to[10000000]>,100,<util.random.int[0].to[10000000]>,world.get_chunk.surface_blocks.random>
- spawn %mob% %mobspot%
- wait 10s
}
- if <util.random.int[1].to[1000]> == 123 {
- define mobspot <l@<util.random.int[0].to[10000000]>,100,<util.random.int[0].to[10000000]>,world.get_chunk.surface_blocks.random>
- spawn WITHER %mobspot%
}
}
else {
- announce "You are safe for now"
}