Date: 2016/05/11 13:00:35 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
DispenserScript:
type: world
debug: true
events:
on block dispenses item:
- if <inventory.contains[stone]> {
- announce "bla5"
}
- if <server.has_flag[Entity]> == true {
- random {
- DETERMINE i@lingering_potion[potion_effects=li@POISON,false,false]
- DETERMINE i@lingering_potion[potion_effects=li@INSTANT_DAMAGE,true,false]
- DETERMINE i@lingering_potion[potion_effects=li@INSTANT_DAMAGE,false,false]
- DETERMINE i@lingering_potion[potion_effects=li@POISON,true,false]
- DETERMINE i@lingering_potion[potion_effects=li@SLOWNESS,false,true]
- DETERMINE i@lingering_potion[potion_effects=li@POISON,false,true]
- DETERMINE i@lingering_potion[potion_effects=li@SLOWNESS,false,false]
- DETERMINE i@arrow
}
}
else if <server.has_flag[Entity]> == false {
- random {
- flag server Entity duration:20
- spawn zombie <context.location> save:entity8
- spawn pig_zombie <context.location> save:entity7
- spawn creeper <context.location> save:entity6
- spawn spider <context.location> save:entity5
}
- random {
- flag server Entity duration:20
- spawn zombie <context.location> save:entity1
- spawn pig_zombie <context.location> save:entity2
- spawn creeper <context.location> save:entity3
- spawn spider <context.location> save:entity4
}
}
- DETERMINE CANCELLED