-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextract.lua
More file actions
262 lines (262 loc) · 53.8 KB
/
extract.lua
File metadata and controls
262 lines (262 loc) · 53.8 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 199 and (c.rot == 0 and c.id ~= 202) and c.id ~= 203 and c.id ~= 204 end,DoCheater, "upleft", 199) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 199 and c.rot == 2 or c.id == 202 and c.rot == 0) and c.id ~= 203 and c.id ~= 204 end,DoCheater, "upright", 199) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 199 and c.rot == 3 and c.id ~= 202 or c.id == 203 or c.id == 204) end,DoCheater, "rightdown", 199) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 199 and c.rot == 1 or c.id == 202 and c.rot == 3) and c.id ~= 203 and c.id ~= 204 end,DoCheater, "rightup", 199) end,
function() return RunOn(function(c) return ChunkId(c.id) == 566 end, DoAboveRefresh, "rightup", 566, 1) end,
function() return RunOn(function(c) return ChunkId(c.id) == 285 end, DoThawer, "rightup", 285) end,
function() return RunOn(function(c) return c.vars.input end, CheckInput, "rightup", "input") end,
function() return RunOn(function(c) return ChunkId(c.id) == 25 end, DoFreezer, "rightup", 25) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 43 end, DoEffectGiver, "rightup", 43) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 266 end, DoEffectRemover, "rightup", 266) end,
function() return RunOn(function(c) return c.vars.gooey end, UpdateGoo, "rightup", "compel") end,
function() return RunOn(function(c) return not c.updated and c.id == 436 and c.rot%2 == 0 or c.id == 437 end, function(x,y,c) DoDumpster(x,y,0) end, "upright", 436) end,
function() return RunOn(function(c) return not c.updated and c.id == 436 and c.rot%2 == 1 or c.id == 437 end, function(x,y,c) DoDumpster(x,y,1) end, "rightup", 436) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 833 and not IsMultiCell(c.id) and c.rot == 0 or HasOnesidedDirection(c,0,834,835,836,837))end,function(x,y,c) DoSuperTimewarper(x,y,c,0) end, "upleft", 833) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 833 and not IsMultiCell(c.id) and c.rot == 2 or HasOnesidedDirection(c,2,834,835,836,837))end,function(x,y,c) DoSuperTimewarper(x,y,c,2) end, "upright", 833) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 833 and not IsMultiCell(c.id) and c.rot == 3 or HasOnesidedDirection(c,3,834,835,836,837))end,function(x,y,c) DoSuperTimewarper(x,y,c,3) end, "rightdown", 833) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 833 and not IsMultiCell(c.id) and c.rot == 1 or HasOnesidedDirection(c,1,834,835,836,837))end,function(x,y,c) DoSuperTimewarper(x,y,c,1) end, "rightup", 833) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 146 and not IsMultiCell(c.id) and c.rot == 0 or HasOnesidedDirection(c,0,148,615,616,617))end,function(x,y,c) DoTimewarper(x,y,c,0) end, "upleft", 146) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 146 and not IsMultiCell(c.id) and c.rot == 2 or HasOnesidedDirection(c,2,148,615,616,617))end,function(x,y,c) DoTimewarper(x,y,c,2) end, "upright", 146) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 146 and not IsMultiCell(c.id) and c.rot == 3 or HasOnesidedDirection(c,3,148,615,616,617))end,function(x,y,c) DoTimewarper(x,y,c,3) end, "rightdown", 146) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 146 and not IsMultiCell(c.id) and c.rot == 1 or HasOnesidedDirection(c,1,148,615,616,617))end,function(x,y,c) DoTimewarper(x,y,c,1) end, "rightup", 146) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 1123 end, DoTimewarpZone, "upleft", 1123, 1) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1077 and c.rot == 0) end, function(x,y,c) DoWorm(x,y,c,0) end, "upleft", 1077) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1077 and c.rot == 2) end, function(x,y,c) DoWorm(x,y,c,2) end, "upright", 1077) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1077 and c.rot == 3) end, function(x,y,c) DoWorm(x,y,c,3) end, "rightdown", 1077) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1077 and c.rot == 1) end , function(x,y,c) DoWorm(x,y,c,1) end, "rightup", 1077) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 237 and not IsMultiCell(c.id) and c.rot == 0 or HasDirection(c,0,238,536,537,538,539,540,541,542,543) or HasDirection(c,0,268,544,545,546,547,548,549,550,551)) end,function(x,y,c) DoTransformer(x,y,c,0) end, "upleft", 237) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 237 and not IsMultiCell(c.id) and c.rot == 2 or HasDirection(c,2,238,536,537,538,539,540,541,542,543) or HasDirection(c,2,268,544,545,546,547,548,549,550,551)) end,function(x,y,c) DoTransformer(x,y,c,2) end, "upright", 237) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 237 and not IsMultiCell(c.id) and c.rot == 3 or HasDirection(c,3,238,536,537,538,539,540,541,542,543) or HasDirection(c,3,268,544,545,546,547,548,549,550,551)) end,function(x,y,c) DoTransformer(x,y,c,3) end, "rightdown", 237) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 237 and not IsMultiCell(c.id) and c.rot == 1 or HasDirection(c,1,238,536,537,538,539,540,541,542,543) or HasDirection(c,1,268,544,545,546,547,548,549,550,551)) end,function(x,y,c) DoTransformer(x,y,c,1) end, "rightup", 237) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 425 and not IsMultiCell(c.id) and c.rot == 0 or HasOnesidedDirection(c,0,{738,742},{739,743},{740,744},{425,426})) end,function(x,y,c) DoMidas(x,y,c,0) end, "upleft", 425) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 425 and not IsMultiCell(c.id) and c.rot == 2 or HasOnesidedDirection(c,2,{738,742},{739,743},{740,744},{425,426})) end,function(x,y,c) DoMidas(x,y,c,2) end, "upright", 425) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 425 and not IsMultiCell(c.id) and c.rot == 3 or HasOnesidedDirection(c,3,{738,742},{739,743},{740,744},{425,426})) end,function(x,y,c) DoMidas(x,y,c,3) end, "rightdown", 425) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 425 and not IsMultiCell(c.id) and c.rot == 1 or HasOnesidedDirection(c,1,{738,742},{739,743},{740,744},{425,426})) end,function(x,y,c) DoMidas(x,y,c,1) end, "rightup", 425) end,
function() return RunOn(function(c) return not c.updated and ((c.id == 313 or c.id == 480) and (c.rot == 0 or c.rot == 2) or c.id == 314 or c.id == 481) end,function(x,y,c) DoSuperMirror(x,y,c,0) end, "upright", 313) end,
function() return RunOn(function(c) return not c.updated and ((c.id == 313 or c.id == 480) and (c.rot == 1 or c.rot == 3) or c.id == 314 or c.id == 481) end,function(x,y,c) DoSuperMirror(x,y,c,1) end, "upright", 313) end,
function() return RunOn(function(c) return not c.updated and ((c.id == 15 or c.id == 445 or c.id == 478 or c.id == 479 or c.id == 489 or c.id == 490 or c.id == 491 or c.id == 661 or c.id == 662 or c.id == 663) and c.rot%2 == 0 or c.id == 56 or c.id == 80 or c.id == 446 or c.id == 492 or c.id == 660 or c.id == 664) end,function(x,y,c) DoMirror(x,y,c,0) end, "upright", 15) end,
function() return RunOn(function(c) return not c.updated and ((c.id == 315 or c.id == 489 or c.id == 492 or c.id == 657 or c.id == 658 or c.id == 661 or c.id == 664) and c.rot%2 == 0 or (c.id == 490 or c.id == 662) and c.rot%2 == 1 or c.id == 316 or c.id == 80 or c.id == 491 or c.id == 660 or c.id == 659 or c.id == 663) end,function(x,y,c) DoMirror(x,y,c,1.5) end, "rightup", 15) end,
function() return RunOn(function(c) return not c.updated and ((c.id == 315 or c.id == 489 or c.id == 492 or c.id == 657 or c.id == 658 or c.id == 661 or c.id == 664) and c.rot%2 == 1 or (c.id == 490 or c.id == 662) and c.rot%2 == 0 or c.id == 316 or c.id == 80 or c.id == 491 or c.id == 660 or c.id == 659 or c.id == 663) end,function(x,y,c) DoMirror(x,y,c,0.5) end, "rightdown", 15) end,
function() return RunOn(function(c) return not c.updated and ((c.id == 15 or c.id == 445 or c.id == 478 or c.id == 479 or c.id == 489 or c.id == 490 or c.id == 491 or c.id == 661 or c.id == 662 or c.id == 663) and c.rot%2 == 1 or c.id == 56 or c.id == 80 or c.id == 446 or c.id == 492 or c.id == 660 or c.id == 664) end,function(x,y,c) DoMirror(x,y,c,1) end, "rightup", 15) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 629 and c.rot == 3 or (c.id == 630 or c.id == 657) and c.rot == 1) end,function(x,y,c) DoCurvedMirror(x,y,c,3.5) end, "rightup", 629) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 629 and c.rot == 1 or (c.id == 630 or c.id == 657) and c.rot == 3) end,function(x,y,c) DoCurvedMirror(x,y,c,1.5) end, "leftdown", 629) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 629 and c.rot == 0 or (c.id == 630 or c.id == 657) and c.rot == 2) end,function(x,y,c) DoCurvedMirror(x,y,c,0.5) end, "rightdown", 629) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 629 and c.rot == 2 or (c.id == 630 or c.id == 657) and c.rot == 0) end,function(x,y,c) DoCurvedMirror(x,y,c,2.5) end, "leftup", 629) end,
function() return RunOn(function(c) return not c.updated and (c.id == 403 or c.id == 404 and c.rot%2 == 0 or c.id == 405 and c.rot == 0 or c.id == 406 and (c.rot == 0 or c.rot == 1) or c.id == 407 and c.rot ~= 2 or c.id == 504) end,function(x,y,c) DoCrystal(x,y,c,0) end, "upright", 403) end,
function() return RunOn(function(c) return not c.updated and (c.id == 403 or c.id == 404 and c.rot%2 == 0 or c.id == 405 and c.rot == 2 or c.id == 406 and (c.rot == 2 or c.rot == 3) or c.id == 407 and c.rot ~= 0 or c.id == 504) end,function(x,y,c) DoCrystal(x,y,c,2) end, "upleft", 403) end,
function() return RunOn(function(c) return not c.updated and (c.id == 499 and c.rot%2 == 1 or c.id == 501 and c.rot == 3 or c.id == 502 and (c.rot == 0 or c.rot == 3) or c.id == 503 and c.rot ~= 1 or c.id == 498 or c.id == 504) end,function(x,y,c) DoCrystal(x,y,c,3.5) end, "rightup", 403) end,
function() return RunOn(function(c) return not c.updated and (c.id == 499 and c.rot%2 == 1 or c.id == 501 and c.rot == 1 or c.id == 502 and (c.rot == 2 or c.rot == 1) or c.id == 503 and c.rot ~= 3 or c.id == 498 or c.id == 504) end,function(x,y,c) DoCrystal(x,y,c,1.5) end, "leftdown", 403) end,
function() return RunOn(function(c) return not c.updated and (c.id == 499 and c.rot%2 == 0 or c.id == 501 and c.rot == 0 or c.id == 502 and (c.rot == 1 or c.rot == 0) or c.id == 503 and c.rot ~= 2 or c.id == 498 or c.id == 504) end,function(x,y,c) DoCrystal(x,y,c,0.5) end, "rightdown", 403) end,
function() return RunOn(function(c) return not c.updated and (c.id == 499 and c.rot%2 == 0 or c.id == 501 and c.rot == 2 or c.id == 502 and (c.rot == 3 or c.rot == 2) or c.id == 503 and c.rot ~= 0 or c.id == 498 or c.id == 504) end,function(x,y,c) DoCrystal(x,y,c,2.5) end, "leftup", 403) end,
function() return RunOn(function(c) return not c.updated and (c.id == 403 or c.id == 404 and c.rot%2 == 1 or c.id == 405 and c.rot == 3 or c.id == 406 and (c.rot == 3 or c.rot == 0) or c.id == 407 and c.rot ~= 1 or c.id == 504) end,function(x,y,c) DoCrystal(x,y,c,3) end, "rightup", 403) end,
function() return RunOn(function(c) return not c.updated and (c.id == 403 or c.id == 404 and c.rot%2 == 1 or c.id == 405 and c.rot == 1 or c.id == 406 and (c.rot == 1 or c.rot == 2) or c.id == 407 and c.rot ~= 3 or c.id == 504) end,function(x,y,c) DoCrystal(x,y,c,1) end, "rightdown", 403) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 493 and not IsMultiCell(c.id) and c.rot == 3 or HasOnesidedDirection(c,3,{496,922,927,945,950,955,1098},{494,920,925,943,948,953,1096},{497,923,928,946,951,956,1099},{493,919,924,942,947,952,1095})) end,function(x,y,c) DoAmethyst(x,y,c,3.5) end, "rightup", 493) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 493 and not IsMultiCell(c.id) and c.rot == 1 or HasOnesidedDirection(c,1,{496,922,927,945,950,955,1098},{494,920,925,943,948,953,1096},{497,923,928,946,951,956,1099},{493,919,924,942,947,952,1095})) end,function(x,y,c) DoAmethyst(x,y,c,1.5) end, "leftdown", 493) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 493 and not IsMultiCell(c.id) and c.rot == 0 or HasOnesidedDirection(c,0,{496,922,927,945,950,955,1098},{494,920,925,943,948,953,1096},{497,923,928,946,951,956,1099},{493,919,924,942,947,952,1095})) end,function(x,y,c) DoAmethyst(x,y,c,0.5) end, "rightdown", 493) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 493 and not IsMultiCell(c.id) and c.rot == 2 or HasOnesidedDirection(c,2,{496,922,927,945,950,955,1098},{494,920,925,943,948,953,1096},{497,923,928,946,951,956,1099},{493,919,924,942,947,952,1095})) end,function(x,y,c) DoAmethyst(x,y,c,2.5) end, "leftup", 493) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 625 and not IsMultiCell(c.id) and c.rot == 0 or HasOnesidedDirection(c,0,627,632,634,636) or c.id == 642 and c.rot == 0)end,function(x,y,c) DoCycler(x,y,c,0) end, "upright", 625) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 625 and not IsMultiCell(c.id) and c.rot == 2 or HasOnesidedDirection(c,2,627,632,634,636) or c.id == 642 and c.rot == 2)end,function(x,y,c) DoCycler(x,y,c,2) end, "downleft", 625) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 625 and not IsMultiCell(c.id) and c.rot == 3 or HasOnesidedDirection(c,3,627,632,634,636) or c.id == 642 and c.rot == 3)end,function(x,y,c) DoCycler(x,y,c,3) end, "leftup", 625) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 625 and not IsMultiCell(c.id) and c.rot == 1 or HasOnesidedDirection(c,1,627,632,634,636) or c.id == 642 and c.rot == 1)end,function(x,y,c) DoCycler(x,y,c,1) end, "rightdown", 625) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 626 and not IsMultiCell(c.id) and c.rot == 0 or HasOnesidedDirection(c,0,628,633,635,637) or c.id == 642 and c.rot == 2)end,function(x,y,c) DoCycler(x,y,c,0) end, "downright", 626) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 626 and not IsMultiCell(c.id) and c.rot == 2 or HasOnesidedDirection(c,2,628,633,635,637) or c.id == 642 and c.rot == 0)end,function(x,y,c) DoCycler(x,y,c,2) end, "upleft", 626) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 626 and not IsMultiCell(c.id) and c.rot == 3 or HasOnesidedDirection(c,3,628,633,635,637) or c.id == 642 and c.rot == 1)end,function(x,y,c) DoCycler(x,y,c,3) end, "rightup", 626) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 626 and not IsMultiCell(c.id) and c.rot == 1 or HasOnesidedDirection(c,1,628,633,635,637) or c.id == 642 and c.rot == 3)end,function(x,y,c) DoCycler(x,y,c,1) end, "leftdown", 626) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 517 and not IsMultiCell(c.id) and c.rot == 0 or HasOnesidedDirection(c,0,518,519,520,521))end,function(x,y,c) DoSuperIntaker(x,y,c,0) end, "upright", 517) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 517 and not IsMultiCell(c.id) and c.rot == 2 or HasOnesidedDirection(c,2,518,519,520,521))end,function(x,y,c) DoSuperIntaker(x,y,c,2) end, "upleft", 517) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 517 and not IsMultiCell(c.id) and c.rot == 3 or HasOnesidedDirection(c,3,518,519,520,521))end,function(x,y,c) DoSuperIntaker(x,y,c,3) end, "rightup", 517) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 517 and not IsMultiCell(c.id) and c.rot == 1 or HasOnesidedDirection(c,1,518,519,520,521))end,function(x,y,c) DoSuperIntaker(x,y,c,1) end, "rightdown", 517) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 44 and not IsMultiCell(c.id) and c.rot == 0 or HasOnesidedDirection(c,0,155,250,317,251))end,function(x,y,c) DoIntaker(x,y,c,0) end, "upright", 44) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 44 and not IsMultiCell(c.id) and c.rot == 2 or HasOnesidedDirection(c,2,155,250,317,251))end,function(x,y,c) DoIntaker(x,y,c,2) end, "upleft", 44) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 44 and not IsMultiCell(c.id) and c.rot == 3 or HasOnesidedDirection(c,3,155,250,317,251))end,function(x,y,c) DoIntaker(x,y,c,3) end, "rightup", 44) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 44 and not IsMultiCell(c.id) and c.rot == 1 or HasOnesidedDirection(c,1,155,250,317,251))end,function(x,y,c) DoIntaker(x,y,c,1) end, "rightdown", 44) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 106 and c.id ~= 107 and c.id ~= 1153 and c.rot == 0 or (c.id == 107 or c.id == 1153) and not c.hupdated and (c.rot == 0 or c.rot == 1))end,function(x,y,c) DoShifter(x,y,c,0) end, "upleft", 106) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 106 and c.id ~= 107 and c.id ~= 1153 and c.rot == 2 or (c.id == 107 or c.id == 1153) and not c.hupdated and (c.rot == 2 or c.rot == 3))end,function(x,y,c) DoShifter(x,y,c,2) end, "upright", 106) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 106 and c.rot == 3 or (c.id == 107 or c.id == 1153) and c.rot == 0)end,function(x,y,c) DoShifter(x,y,c,3) end, "rightdown", 106) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 106 and c.rot == 1 or (c.id == 107 or c.id == 1153) and c.rot == 2)end,function(x,y,c) DoShifter(x,y,c,1) end, "rightup", 106) end,
function() return RunOn(function(c) return not c.updated and c.id == 166 and c.rot == 0 end, DoMemory, "upleft", 166) end,
function() return RunOn(function(c) return not c.updated and c.id == 166 and c.rot == 2 end, DoMemory, "upright", 166) end,
function() return RunOn(function(c) return not c.updated and c.id == 166 and c.rot == 3 end, DoMemory, "rightdown", 166) end,
function() return RunOn(function(c) return not c.updated and c.id == 166 and c.rot == 1 end, DoMemory, "rightup", 166) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 448 and c.rot == 0 end, DoHyperGenerator, "upleft", 448) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 448 and c.rot == 2 end, DoHyperGenerator, "upright", 448) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 448 and c.rot == 3 end, DoHyperGenerator, "rightdown", 448) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 448 and c.rot == 1 end, DoHyperGenerator, "rightup", 448) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 55 and not IsMultiCell(c.id) and c.rot == 0 or HasDirection(c,0,457,606,607,608,609,610,611,612,613)) end,function(x,y,c) DoSuperGenerator(x,y,c,0) end, "upleft", 55) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 55 and not IsMultiCell(c.id) and c.rot == 2 or HasDirection(c,2,457,606,607,608,609,610,611,612,613)) end,function(x,y,c) DoSuperGenerator(x,y,c,2) end, "upright", 55) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 55 and not IsMultiCell(c.id) and c.rot == 3 or HasDirection(c,3,457,606,607,608,609,610,611,612,613)) end,function(x,y,c) DoSuperGenerator(x,y,c,3) end, "rightdown", 55) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 55 and not IsMultiCell(c.id) and c.rot == 1 or HasDirection(c,1,457,606,607,608,609,610,611,612,613)) end,function(x,y,c) DoSuperGenerator(x,y,c,1) end, "rightup", 55) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 3 and not IsMultiCell(c.id) and c.rot == 0 or HasDirection(c,0,23,168,167,169,170,172,171,173,174,363,364)) end,function(x,y,c) DoGenerator(x,y,c,0) end, "upleft", 3) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 3 and not IsMultiCell(c.id) and c.rot == 2 or HasDirection(c,2,23,168,167,169,170,172,171,173,174,363,364)) end,function(x,y,c) DoGenerator(x,y,c,2) end, "upright", 3) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 3 and not IsMultiCell(c.id) and c.rot == 3 or HasDirection(c,3,23,168,167,169,170,172,171,173,174,363,364)) end,function(x,y,c) DoGenerator(x,y,c,3) end, "rightdown", 3) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 3 and not IsMultiCell(c.id) and c.rot == 1 or HasDirection(c,1,23,168,167,169,170,172,171,173,174,363,364)) end,function(x,y,c) DoGenerator(x,y,c,1) end, "rightup", 3) end,
function() return RunOn(function(c) return not c.updated and c.id == 341 and c.rot == 0 end, DoMemoryRep, "upleft", 341) end,
function() return RunOn(function(c) return not c.updated and c.id == 341 and c.rot == 2 end, DoMemoryRep, "upright", 341) end,
function() return RunOn(function(c) return not c.updated and c.id == 341 and c.rot == 3 end, DoMemoryRep, "rightdown", 341) end,
function() return RunOn(function(c) return not c.updated and c.id == 341 and c.rot == 1 end, DoMemoryRep, "rightup", 341) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 177 and not IsMultiCell(c.id) and c.rot == 0 or HasOnesidedDirection(c,0,{513,878,879,880},{514,881,882,883},{515,884,885,886},{516,887,888,889})) end,function(x,y,c) DoSuperReplicator(x,y,c,0) end, "upleft", 177) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 177 and not IsMultiCell(c.id) and c.rot == 2 or HasOnesidedDirection(c,2,{513,878,879,880},{514,881,882,883},{515,884,885,886},{516,887,888,889})) end,function(x,y,c) DoSuperReplicator(x,y,c,2) end, "upright", 177) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 177 and not IsMultiCell(c.id) and c.rot == 3 or HasOnesidedDirection(c,3,{513,878,879,880},{514,881,882,883},{515,884,885,886},{516,887,888,889})) end,function(x,y,c) DoSuperReplicator(x,y,c,3) end, "rightdown", 177) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 177 and not IsMultiCell(c.id) and c.rot == 1 or HasOnesidedDirection(c,1,{513,878,879,880},{514,881,882,883},{515,884,885,886},{516,887,888,889})) end,function(x,y,c) DoSuperReplicator(x,y,c,1) end, "rightup", 177) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 45 and not IsMultiCell(c.id) and c.rot == 0 or HasOnesidedDirection(c,0,{46,866,867,868},{397,869,870,871},{398,872,873,874},{399,875,876,877})) end,function(x,y,c) DoReplicator(x,y,c,0) end, "upleft", 45) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 45 and not IsMultiCell(c.id) and c.rot == 2 or HasOnesidedDirection(c,2,{46,866,867,868},{397,869,870,871},{398,872,873,874},{399,875,876,877})) end,function(x,y,c) DoReplicator(x,y,c,2) end, "upright", 45) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 45 and not IsMultiCell(c.id) and c.rot == 3 or HasOnesidedDirection(c,3,{46,866,867,868},{397,869,870,871},{398,872,873,874},{399,875,876,877})) end,function(x,y,c) DoReplicator(x,y,c,3) end, "rightdown", 45) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 45 and not IsMultiCell(c.id) and c.rot == 1 or HasOnesidedDirection(c,1,{46,866,867,868},{397,869,870,871},{398,872,873,874},{399,875,876,877})) end,function(x,y,c) DoReplicator(x,y,c,1) end, "rightup", 45) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 526 and not IsMultiCell(c.id) and c.rot == 0 or HasOnesidedDirection(c,0,{527,531,1051,1055,1060,1064,1069,1073},{528,532,1052,1056,1061,1065,1070,1074},{529,533,1053,1057,1062,1066,1071,1075},{530,534,1054,1058,1063,1067,1072,1076}) or (c.id == 235 or c.id == 427 and not c.Rupdated))end,function(x,y,c) DoMaker(x,y,c,0) end, "upleft", 526) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 526 and not IsMultiCell(c.id) and c.rot == 2 or HasOnesidedDirection(c,2,{527,531,1051,1055,1060,1064,1069,1073},{528,532,1052,1056,1061,1065,1070,1074},{529,533,1053,1057,1062,1066,1071,1075},{530,534,1054,1058,1063,1067,1072,1076}) or (c.id == 235 or c.id == 427 and not c.Lupdated))end,function(x,y,c) DoMaker(x,y,c,2) end, "upright", 526) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 526 and not IsMultiCell(c.id) and c.rot == 3 or HasOnesidedDirection(c,3,{527,531,1051,1055,1060,1064,1069,1073},{528,532,1052,1056,1061,1065,1070,1074},{529,533,1053,1057,1062,1066,1071,1075},{530,534,1054,1058,1063,1067,1072,1076}) or (c.id == 235 or c.id == 427 and not c.Uupdated))end,function(x,y,c) DoMaker(x,y,c,3) end, "rightdown", 526) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 526 and not IsMultiCell(c.id) and c.rot == 1 or HasOnesidedDirection(c,1,{527,531,1051,1055,1060,1064,1069,1073},{528,532,1052,1056,1061,1065,1070,1074},{529,533,1053,1057,1062,1066,1071,1075},{530,534,1054,1058,1063,1067,1072,1076}) or c.id == 235 or c.id == 427)end,function(x,y,c) DoMaker(x,y,c,1) end, "rightup", 526) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 412 and c.rot == 0 end, DoRecursor, "upleft", 412) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 412 and c.rot == 2 end, DoRecursor, "upright", 412) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 412 and c.rot == 3 end, DoRecursor, "rightdown", 412) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 412 and c.rot == 1 end, DoRecursor, "rightup", 412) end,
function() FreezeQueue("rotate",true) FreezeQueue("flip",true) local success = RunOn(function(c) return c.vars.perpetualrot and not c.prupdated end, DoPerpetualRotation, "rightup", "perpetualrotate") FreezeQueue("rotate",false) FreezeQueue("flip",false) return success; end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 641 end, DoSuperFlipper, "upright", 641) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 30 end, DoFlipper, "upright", 30) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 442 end, DoSuperRotator, "rightup", 442) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 9 end, DoRotator, "rightup", 9) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 1118 end, DoRotateZone, "rightup", 1118, 1) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 1021 end, DoGear, "rightup", 1021) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 18 end, DoGear, "rightup", 18) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 19 end, DoGear, "leftup", 19) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 449 end, DoGear, "leftup", 449) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 968 end, DoGear, "leftup", 968) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 1117 end, DoSawblade, "rightup", 1117) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 344 end, DoChainsaw, "rightup", 344) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 1045 end, DoSuperRedirector, "rightup", 1045) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 17 end, DoRedirector, "rightup", 17) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 1122 end, DoRedirectZone, "rightup", 1122, 1) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 569 and not IsMultiCell(c.id) and c.rot == 0 or HasDirection(c,0,570,573,574,575,576,579,580,581,582)) end,function(x,y,c) DoOrientator(x,y,c,0) end, "upleft", 569) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 569 and not IsMultiCell(c.id) and c.rot == 2 or HasDirection(c,2,570,573,574,575,576,579,580,581,582)) end,function(x,y,c) DoOrientator(x,y,c,2) end, "upright", 569) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 569 and not IsMultiCell(c.id) and c.rot == 3 or HasDirection(c,3,570,573,574,575,576,579,580,581,582)) end,function(x,y,c) DoOrientator(x,y,c,3) end, "rightdown", 569) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 569 and not IsMultiCell(c.id) and c.rot == 1 or HasDirection(c,1,570,573,574,575,576,579,580,581,582)) end,function(x,y,c) DoOrientator(x,y,c,1) end, "rightup", 569) end,
function() return RunOn(function(c) return ChunkId(c.id) == 1133 end, DoParticleCharges, "rightup", 1133) end,
function() return RunOn(function(c) return ChunkId(c.id) == 1133 end, DoParticleStrongForce, "rightup", 1133) end,
function() return RunOn(function(c) return ChunkId(c.id) == 1133 end, DoParticleChargeStick, "rightup", 1133) end,
function() return RunOn(function(c) return not c.updated and not c.pupdated and ChunkId(c.id) == 1133 end, DoParticleMovement, "rightup", 1133) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1007 and not IsMultiCell(c.id) or HasOnesidedDirection(c,2,1010,1008,1011,1007,1009)) end,function(x,y,c) DoVacuum(x,y,c,0) end, "upleft", 1007) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1007 and not IsMultiCell(c.id) or HasOnesidedDirection(c,0,1010,1008,1011,1007,1009)) end,function(x,y,c) DoVacuum(x,y,c,2) end, "upright", 1007) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1007 and not IsMultiCell(c.id) or HasOnesidedDirection(c,1,1010,1008,1011,1007,1009)) end,function(x,y,c) DoVacuum(x,y,c,3) end, "rightdown", 1007) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1007 and not IsMultiCell(c.id) or HasOnesidedDirection(c,3,1010,1008,1011,1007,1009)) end,function(x,y,c) DoVacuum(x,y,c,1) end, "rightup", 1007) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 248 and not IsMultiCell(c.id) or HasOnesidedDirection(c,2,731,729,732,248,730)) end,function(x,y,c) DoSuperImpulsor(x,y,c,0) end, "upleft", 248) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 248 and not IsMultiCell(c.id) or HasOnesidedDirection(c,0,731,729,732,248,730)) end,function(x,y,c) DoSuperImpulsor(x,y,c,2) end, "upright", 248) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 248 and not IsMultiCell(c.id) or HasOnesidedDirection(c,1,731,729,732,248,730)) end,function(x,y,c) DoSuperImpulsor(x,y,c,3) end, "rightdown", 248) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 248 and not IsMultiCell(c.id) or HasOnesidedDirection(c,3,731,729,732,248,730)) end,function(x,y,c) DoSuperImpulsor(x,y,c,1) end, "rightup", 248) end,
function() return RunOn(function(c) return c.vars.timeimpulseright end, function(x,y,c) DoTimeImpulse(x,y,c,0) end, "upleft", "timeimp") end,
function() return RunOn(function(c) return c.vars.timeimpulseleft end, function(x,y,c) DoTimeImpulse(x,y,c,2) end, "upright", "timeimp") end,
function() return RunOn(function(c) return c.vars.timeimpulseup end, function(x,y,c) DoTimeImpulse(x,y,c,3) end, "rightdown", "timeimp") end,
function() return RunOn(function(c) return c.vars.timeimpulsedown end, function(x,y,c) DoTimeImpulse(x,y,c,1) end, "rightup", "timeimp") end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 1104 end, DoTimeImpulsor, "upright", 1104) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 29 and not IsMultiCell(c.id) or HasOnesidedDirection(c,2,{415,1015},{413,1013},{416,1016},{29,1012},{414,1014})) end,function(x,y,c) DoImpulsor(x,y,c,0) end, "upleft", 29) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 29 and not IsMultiCell(c.id) or HasOnesidedDirection(c,0,{415,1015},{413,1013},{416,1016},{29,1012},{414,1014})) end,function(x,y,c) DoImpulsor(x,y,c,2) end, "upright", 29) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 29 and not IsMultiCell(c.id) or HasOnesidedDirection(c,1,{415,1015},{413,1013},{416,1016},{29,1012},{414,1014})) end,function(x,y,c) DoImpulsor(x,y,c,3) end, "rightdown", 29) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 29 and not IsMultiCell(c.id) or HasOnesidedDirection(c,3,{415,1015},{413,1013},{416,1016},{29,1012},{414,1014})) end,function(x,y,c) DoImpulsor(x,y,c,1) end, "rightup", 29) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 81 and (c.id ~= 227 or c.rot == 0) and (c.id ~= 228 or c.rot == 0 or c.rot == 1) end,function(x,y,c) DoGrapulsor(x,y,c,0) end, "upleft", 81) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 81 and (c.id ~= 227 or c.rot == 2) and (c.id ~= 228 or c.rot == 2 or c.rot == 3) end,function(x,y,c) DoGrapulsor(x,y,c,2) end, "upright", 81) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 81 and (c.id ~= 227 or c.rot == 3) and (c.id ~= 228 or c.rot == 3 or c.rot == 0) end,function(x,y,c) DoGrapulsor(x,y,c,3) end, "rightdown", 81) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 81 and (c.id ~= 227 or c.rot == 1) and (c.id ~= 228 or c.rot == 1 or c.rot == 2) end,function(x,y,c) DoGrapulsor(x,y,c,1) end, "rightup", 81) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 435 and not IsMultiCell(c.id) or HasOnesidedDirection(c,0,727,725,728,435,726)) end,function(x,y,c) DoSuperFan(x,y,c,0) end, "upleft", 435) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 435 and not IsMultiCell(c.id) or HasOnesidedDirection(c,2,727,725,728,435,726)) end,function(x,y,c) DoSuperFan(x,y,c,2) end, "upright", 435) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 435 and not IsMultiCell(c.id) or HasOnesidedDirection(c,3,727,725,728,435,726)) end,function(x,y,c) DoSuperFan(x,y,c,3) end, "rightdown", 435) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 435 and not IsMultiCell(c.id) or HasOnesidedDirection(c,1,727,725,728,435,726)) end,function(x,y,c) DoSuperFan(x,y,c,1) end, "rightup", 435) end,
function() return RunOn(function(c) return not c.updated and (c.id == 417 or c.id == 418 and c.rot%2 == 0 or c.id == 419 and c.rot == 0 or c.id == 420 and (c.rot == 0 or c.rot == 1) or c.id == 421 and c.rot ~= 2) end,function(x,y,c) DoFan(x,y,c,0) end, "upleft", 417) end,
function() return RunOn(function(c) return not c.updated and (c.id == 417 or c.id == 418 and c.rot%2 == 0 or c.id == 419 and c.rot == 2 or c.id == 420 and (c.rot == 2 or c.rot == 3) or c.id == 421 and c.rot ~= 0) end,function(x,y,c) DoFan(x,y,c,2) end, "upright", 417) end,
function() return RunOn(function(c) return not c.updated and (c.id == 417 or c.id == 418 and c.rot%2 == 1 or c.id == 419 and c.rot == 3 or c.id == 420 and (c.rot == 3 or c.rot == 0) or c.id == 421 and c.rot ~= 1) end,function(x,y,c) DoFan(x,y,c,3) end, "rightdown", 417) end,
function() return RunOn(function(c) return not c.updated and (c.id == 417 or c.id == 418 and c.rot%2 == 1 or c.id == 419 and c.rot == 1 or c.id == 420 and (c.rot == 1 or c.rot == 2) or c.id == 421 and c.rot ~= 3) end,function(x,y,c) DoFan(x,y,c,1) end, "rightup", 417) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 984 and not IsMultiCell(c.id) or HasOnesidedDirection(c,0,987,985,988,984,986)) end,function(x,y,c) DoRandulsor(x,y,c,0) end, "upleft", 984) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 984 and not IsMultiCell(c.id) or HasOnesidedDirection(c,2,987,985,988,984,986)) end,function(x,y,c) DoRandulsor(x,y,c,2) end, "upright", 984) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 984 and not IsMultiCell(c.id) or HasOnesidedDirection(c,3,987,985,988,984,986)) end,function(x,y,c) DoRandulsor(x,y,c,3) end, "rightdown", 984) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 984 and not IsMultiCell(c.id) or HasOnesidedDirection(c,1,987,985,988,984,986)) end,function(x,y,c) DoRandulsor(x,y,c,1) end, "rightup", 984) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 50 and not IsMultiCell(c.id) or HasOnesidedDirection(c,0,723,721,724,50,722)) end,function(x,y,c) DoSuperRepulsor(x,y,c,0) end, "upleft", 50) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 50 and not IsMultiCell(c.id) or HasOnesidedDirection(c,2,723,721,724,50,722)) end,function(x,y,c) DoSuperRepulsor(x,y,c,2) end, "upright", 50) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 50 and not IsMultiCell(c.id) or HasOnesidedDirection(c,3,723,721,724,50,722)) end,function(x,y,c) DoSuperRepulsor(x,y,c,3) end, "rightdown", 50) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 50 and not IsMultiCell(c.id) or HasOnesidedDirection(c,1,723,721,724,50,722)) end,function(x,y,c) DoSuperRepulsor(x,y,c,1) end, "rightup", 50) end,
function() return RunOn(function(c) return c.vars.timerepulseright end, function(x,y,c) DoTimeRepulse(x,y,c,0) end, "upleft", "timerep") end,
function() return RunOn(function(c) return c.vars.timerepulseleft end, function(x,y,c) DoTimeRepulse(x,y,c,2) end, "upright", "timerep") end,
function() return RunOn(function(c) return c.vars.timerepulseup end, function(x,y,c) DoTimeRepulse(x,y,c,3) end, "rightdown", "timerep") end,
function() return RunOn(function(c) return c.vars.timerepulsedown end, function(x,y,c) DoTimeRepulse(x,y,c,1) end, "rightup", "timerep") end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 222 end, DoTimeRepulsor, "upright", 222) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 21 and not IsMultiCell(c.id) or HasOnesidedDirection(c,0,{410,766},{408,764},{411,767},{21,763},{409,765})) end,function(x,y,c) DoRepulsor(x,y,c,0) end, "upleft", 21) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 21 and not IsMultiCell(c.id) or HasOnesidedDirection(c,2,{410,766},{408,764},{411,767},{21,763},{409,765})) end,function(x,y,c) DoRepulsor(x,y,c,2) end, "upright", 21) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 21 and not IsMultiCell(c.id) or HasOnesidedDirection(c,3,{410,766},{408,764},{411,767},{21,763},{409,765})) end,function(x,y,c) DoRepulsor(x,y,c,3) end, "rightdown", 21) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 21 and not IsMultiCell(c.id) or HasOnesidedDirection(c,1,{410,766},{408,764},{411,767},{21,763},{409,765})) end,function(x,y,c) DoRepulsor(x,y,c,1) end, "rightup", 21) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 156 and c.rot%2 == 0 end, DoMagnet, "rightup", 156) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 156 and c.rot%2 == 1 end, DoMagnet, "rightup", 156) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 832 and c.rot%2 == 0 end, DoSuperSpring, "rightup", 832) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 832 and c.rot%2 == 1 end, DoSuperSpring, "rightup", 832) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 402 and c.rot%2 == 0 end, DoSpring, "rightup", 402) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 402 and c.rot%2 == 1 end, DoSpring, "rightup", 402) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1124 and c.rot == 0) end, function(x,y,c) DoConveyorZone(x,y,c,0) end, "upleft", 1124, 1) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1124 and c.rot == 2) end, function(x,y,c) DoConveyorZone(x,y,c,2) end, "upright", 1124, 1) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1124 and c.rot == 3) end, function(x,y,c) DoConveyorZone(x,y,c,3) end, "rightdown", 1124, 1) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1124 and c.rot == 1) end , function(x,y,c) DoConveyorZone(x,y,c,1) end, "rightup", 1124, 1) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1038 and not IsMultiCell(c.id) and c.rot == 0 or HasOnesidedDirection(c,0,1039,1040,1041,1042)) end,function(x,y,c) DoSuperDeleter(x,y,c,0) end, "upleft", 1038) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1038 and not IsMultiCell(c.id) and c.rot == 2 or HasOnesidedDirection(c,2,1039,1040,1041,1042)) end,function(x,y,c) DoSuperDeleter(x,y,c,2) end, "upright", 1038) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1038 and not IsMultiCell(c.id) and c.rot == 3 or HasOnesidedDirection(c,3,1039,1040,1041,1042)) end,function(x,y,c) DoSuperDeleter(x,y,c,3) end, "rightdown", 1038) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1038 and not IsMultiCell(c.id) and c.rot == 1 or HasOnesidedDirection(c,1,1039,1040,1041,1042)) end,function(x,y,c) DoSuperDeleter(x,y,c,1) end, "rightup", 1038) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1033 and not IsMultiCell(c.id) and c.rot == 0 or HasOnesidedDirection(c,0,1034,1035,1036,1037)) end,function(x,y,c) DoDeleter(x,y,c,0) end, "upleft", 1033) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1033 and not IsMultiCell(c.id) and c.rot == 2 or HasOnesidedDirection(c,2,1034,1035,1036,1037)) end,function(x,y,c) DoDeleter(x,y,c,2) end, "upright", 1033) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1033 and not IsMultiCell(c.id) and c.rot == 3 or HasOnesidedDirection(c,3,1034,1035,1036,1037)) end,function(x,y,c) DoDeleter(x,y,c,3) end, "rightdown", 1033) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 1033 and not IsMultiCell(c.id) and c.rot == 1 or HasOnesidedDirection(c,1,1034,1035,1036,1037)) end,function(x,y,c) DoDeleter(x,y,c,1) end, "rightup", 1033) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 306 end, DoTermite, "rightup", 306) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 306 end, DoTermite, "leftup", 306) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 624 end, DoRutzice, "upright", 624) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 58 or c.id == 552 and c.vars[9] == 1 and c.vars[26] ~= 1) and c.rot == 0 end,DoDriller, "upleft", 58) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 58 or c.id == 552 and c.vars[9] == 1 and c.vars[26] ~= 1) and c.rot == 2 end,DoDriller, "upright", 58) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 58 or c.id == 552 and c.vars[9] == 1 and c.vars[26] ~= 1) and c.rot == 3 end,DoDriller, "rightdown", 58) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 58 or c.id == 552 and c.vars[9] == 1 and c.vars[26] ~= 1) and c.rot == 1 end,DoDriller, "rightup", 58) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 14 or c.id == 552 and c.vars[7] == 1 and c.vars[9] == 0 and c.vars[26] ~= 1) and c.rot == 0 end,DoPuller, "upleft", 14) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 14 or c.id == 552 and c.vars[7] == 1 and c.vars[9] == 0 and c.vars[26] ~= 1) and c.rot == 2 end,DoPuller, "upright", 14) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 14 or c.id == 552 and c.vars[7] == 1 and c.vars[9] == 0 and c.vars[26] ~= 1) and c.rot == 3 end,DoPuller, "rightdown", 14) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 14 or c.id == 552 and c.vars[7] == 1 and c.vars[9] == 0 and c.vars[26] ~= 1) and c.rot == 1 end,DoPuller, "rightup", 14) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 71 or c.id == 552 and c.vars[8] ~= 0 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[26] ~= 1) and c.rot == 0 end,DoGrabber, "upleft", 71) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 71 or c.id == 552 and c.vars[8] ~= 0 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[26] ~= 1) and c.rot == 2 end,DoGrabber, "upright", 71) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 71 or c.id == 552 and c.vars[8] ~= 0 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[26] ~= 1) and c.rot == 3 end,DoGrabber, "rightdown", 71) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 71 or c.id == 552 and c.vars[8] ~= 0 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[26] ~= 1) and c.rot == 1 end,DoGrabber, "rightup", 71) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 284 and c.rot == 0 end,DoSuperMover, "upright", 284) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 284 and c.rot == 2 end,DoSuperMover, "upleft", 284) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 284 and c.rot == 3 end,DoSuperMover, "rightup", 284) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 284 and c.rot == 1 end,DoSuperMover, "rightdown", 284) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 2 or c.id == 552 and c.vars[6] == 1 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[8] == 0 and c.vars[26] ~= 1) and c.rot == 0 end,DoMover, "upright", 2) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 2 or c.id == 552 and c.vars[6] == 1 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[8] == 0 and c.vars[26] ~= 1) and c.rot == 2 end,DoMover, "upleft", 2) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 2 or c.id == 552 and c.vars[6] == 1 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[8] == 0 and c.vars[26] ~= 1) and c.rot == 3 end,DoMover, "rightup", 2) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 2 or c.id == 552 and c.vars[6] == 1 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[8] == 0 and c.vars[26] ~= 1) and c.rot == 1 end,DoMover, "rightdown", 2) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 115 or c.id == 552 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[8] == 0 and c.vars[6] == 0 and c.vars[26] ~= 1) and c.rot == 0 end,DoSlicer, "upleft", 115) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 115 or c.id == 552 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[8] == 0 and c.vars[6] == 0 and c.vars[26] ~= 1) and c.rot == 2 end,DoSlicer, "upright", 115) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 115 or c.id == 552 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[8] == 0 and c.vars[6] == 0 and c.vars[26] ~= 1) and c.rot == 3 end,DoSlicer, "rightdown", 115) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 115 or c.id == 552 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[8] == 0 and c.vars[6] == 0 and c.vars[26] ~= 1) and c.rot == 1 end,DoSlicer, "rightup", 115) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 114 or c.id == 552 and c.vars[6] == 2 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[8] == 0 and c.vars[26] ~= 1) and c.rot == 0 end,DoNudger, "upleft", 114) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 114 or c.id == 552 and c.vars[6] == 2 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[8] == 0 and c.vars[26] ~= 1) and c.rot == 2 end,DoNudger, "upright", 114) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 114 or c.id == 552 and c.vars[6] == 2 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[8] == 0 and c.vars[26] ~= 1) and c.rot == 3 end,DoNudger, "rightdown", 114) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 114 or c.id == 552 and c.vars[6] == 2 and c.vars[9] == 0 and c.vars[7] == 0 and c.vars[8] == 0 and c.vars[26] ~= 1) and c.rot == 1 end,DoNudger, "rightup", 114) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 465 end, DoSapper, "rightup", 465) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 318 end, DoSentry, "rightup", 318) end,
function() return RunOn(function(c) return ChunkId(c.id) == 819 end, CheckBlade, "rightup", 819) end,
function() return RunOn(function(c) return ChunkId(c.id) == 818 end, DoLaser, "rightup", 818) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 239 or c.id == 552 and c.vars[26] == 1 end, DoPlayer, held == 0 and "upleft" or held == 2 and "upright" or held == 3 and "rightdown" or "rightup", 239) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 1167 end, DoChaser, "rightup", 1167) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 1157 end, DoObserver, "rightup", 1157) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 1155 end, DoIcicle, "rightup", 1155) end,
function() return DoInputPushable() end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 1172 end, DoFearfulEnemy, "rightup", 1172) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 827 end, DoAngryEnemy, "rightup", 827) end,
function() return RunOn(function(c) return c.vars.gravdir and c.vars.gravdir%4 == 0 and not c.gupdated end, function(x,y,c) c.gupdated = true; PushCell(x,y,0,{force=1}) end, "upleft", "gravity") end,
function() return RunOn(function(c) return c.vars.gravdir and c.vars.gravdir%4 == 2 and not c.gupdated end, function(x,y,c) c.gupdated = true; PushCell(x,y,2,{force=1}) end, "upright", "gravity") end,
function() return RunOn(function(c) return c.vars.gravdir and c.vars.gravdir%4 == 3 and not c.gupdated end, function(x,y,c) c.gupdated = true; PushCell(x,y,3,{force=1}) end, "rightdown", "gravity") end,
function() return RunOn(function(c) return c.vars.gravdir and c.vars.gravdir%4 == 1 and not c.gupdated end, function(x,y,c) c.gupdated = true; PushCell(x,y,1,{force=1}) end, "rightup", "gravity") end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 32 and c.rot == 0 end, DoGate, "upright", 32) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 32 and c.rot == 2 end, DoGate, "upleft", 32) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 32 and c.rot == 3 end, DoGate, "rightup", 32) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 32 and c.rot == 1 end, DoGate, "rightdown", 32) end,
function() return RunOn(function(c) return not c.updated and c.id == 230 and c.rot == 0 end, DoCoinExtractor, "upright", 230) end,
function() return RunOn(function(c) return not c.updated and c.id == 230 and c.rot == 2 end, DoCoinExtractor, "upleft", 230) end,
function() return RunOn(function(c) return not c.updated and c.id == 230 and c.rot == 3 end, DoCoinExtractor, "rightup", 230) end,
function() return RunOn(function(c) return not c.updated and c.id == 230 and c.rot == 1 end, DoCoinExtractor, "rightdown", 230) end,
function() return RunOn(function(c) return not c.updated and (ChunkId(c.id) == 240 or c.id == 1147 or c.id == 1148) or c.id == 242 or c.id == 243 or c.id == 603 end,DoInfectious, "rightup", 240) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 123 end, DoInfectious, "rightup", 123) end,
function() return RunOn(function(c) return not c.updated and ChunkId(c.id) == 568 end, DoPostInfectious, "rightup", 568) end,
function() return RunOn(function(c) return ChunkId(c.id) == 1187 end, DoCoil, "rightup", 1187) end,
function() return RunOn(function(c) return ChunkId(c.id) == 735 end, CheckBlade, "rightup", 735) end,
function() return RunOn(function(c) return c.vars.compelled or c.vars.gooey or ChunkId(c.id) == "compel" and not c.updated end, CheckCompel, "rightup", "compel") end,
CheckEnemies,
FocusCam,