Date: 2015/07/17 09:58:05 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
"TeaLocustSkitter":
type: task
debug: false
script:
- while <npc.is_spawned||false> {
- flag server <npc.id>LocustSkitter:<queue.id>
- if <npc.location.find.players.within[16].size.is[MORE].than[0]||false> {
- if <npc.is_spawned||false> {
- walk <npc> stop
}
- if <npc.is_spawned||false> {
- run "TeaRatConsumeCropsTask"
}
- if <npc.location.find.blocks[crops,7].within[4].size.is[MORE].than[0]||false> {
- flag <npc> NestLocation:<npc.location.find.blocks[crops,7].within[4].random>
- if <npc.is_spawned||false> {
- run TeaRatNestParticles
}
}
- wait 2s
- if <npc.location.find.players.within[8].size.is[MORE].than[0]||false> {
- if <npc.location.find.blocks[<npc.constant[EatList]>].within[1].size.is[MORE].than[0]||false> {
- if <npc.is_spawned||false> {
- walk <npc> stop
}
- wait 1t
- if <npc.is_spawned||false> {
- walk <npc> <npc.location.find.blocks[<npc.constant[EatList]>].within[1].random> radius:2 speed:2
}
}
else if <npc.location.find.blocks[<npc.constant[EatList]>].within[16].size.is[MORE].than[0]||false> {
- if <npc.is_spawned||false> {
- walk <npc> stop
}
- wait 1t
- if <npc.is_spawned||false> {
- walk <npc> <npc.location.find.blocks[<npc.constant[EatList]>].within[16].random> radius:2 speed:2
}
}
else {
- if <npc.is_spawned||false> {
- walk <npc> stop
}
- wait 1t
- if <npc.is_spawned||false> {
- walk <npc> <npc.location.find.blocks[air].within[10].random> radius:2 speed:2
}
}
}
else if <npc.location.find.players.within[16].size.is[MORE].than[0]||false> {
- if <npc.location.find.blocks[<npc.constant[EatList]>].within[2].size.is[MORE].than[0]||false> {
- if <npc.is_spawned||false> {
- walk <npc> stop
}
- wait 1t
- if <npc.is_spawned||false> {
- walk <npc> <npc.location.find.blocks[<npc.constant[EatList]>].within[2].random> radius:2 speed:2
}
}
else if <npc.location.find.blocks[<npc.constant[EatList]>].within[16].size.is[MORE].than[0]||false> {
- if <npc.is_spawned||false> {
- walk <npc> stop
}
- wait 1t
- if <npc.is_spawned||false> {
- walk <npc> <npc.location.find.blocks[<npc.constant[EatList]>].within[16].random> radius:2 speed:2
}
}
else {
- if <npc.is_spawned||false> {
- walk <npc> stop
}
- wait 1t
- if <npc.is_spawned||false> {
- walk <npc> <npc.location.find.blocks[air].within[10].random> radius:2 speed:2
}
- wait 10s
}
}
}
}