View difference between Paste ID: EJt1AWcr and kgtCkJqi
SHOW: | | - or go back to the newest paste.
1
-- Variables
2
3
CMO = 0 -- Counter Metal Input
4
CES = 0 -- Counter Empty Smeltery
5
6
-- Button Variable for showing button list!
7
CML = 0 -- Counter Metal List
8
CAL = 0 -- Counter Alloy List
9
CLL = 0 -- Counter Liquid List
10
CBL = 0 -- Counter Block List
11
CMML = 0 -- Counter Menu List
12
-- \Button Variable for showing button list!
13
14
-- Filling Variables
15
CFM = 0 -- Counter Filling Metal
16
CFA = 0 -- Counter Filling Alloy
17
CFL = 0 -- Counter Filling Liquid
18
CFB = 0 -- Counter Filling Block
19
20
-- MouseWidth/Height Variables
21
mouseWidth = 0  -- mouseWidth Variable
22
mouseHeight = 0 -- mouseHeight Variable
23
-- \MouseWidth/Height Variables
24
25
-- \Variables
26
----------------------------------------------------------------------------------------------
27
-- Computercraft Monitor wrapping
28
29
monitor = peripheral.wrap("top") -- insert Monitor position here
30
31
-- \Computercraft Monitor wrapping
32
----------------------------------------------------------------------------------------------
33
-- Monitor Clearing + Background color change and cursor Positioning
34
35
monitor.setBackgroundColour((colors.black)) -- Return to standart color BEFORE clearing the screen
36
monitor.clear() -- Clear Monitor
37
monitor.setCursorPos(1,1) -- Set Cursor to Position 1,1
38
39
-- \Monitor Clearing + Background color change and cursor Positioning
40
----------------------------------------------------------------------------------------------
41
-- Debug text for Display Size
42
43
w,h=monitor.getSize() -- set w to Width of the monitor and h to Height in Pixels
44
45
print(w) -- Print width of monitor
46
print(h) -- print Height of monitor
47
48
-- \Debug text for Display Size
49
----------------------------------------------------------------------------------------------
50
-- Create Buttons for Metals, Alloys etc.
51
52
function listMenu() -- Create function
53
54
	monitor.clear()
55
	monitor.setBackgroundColour((colours.lime)) -- Set monitor Background Color for Button Creation
56
	
57
	monitor.setCursorPos(2,2) -- Set Cursor Position to 2,2
58
	monitor.write("Metals") -- Write "Metals" at Current Cursor Position
59
	
60
	monitor.setCursorPos(2,4)
61
	monitor.write("Alloys")
62
	
63
	monitor.setCursorPos(2,6)
64
	monitor.write("Liquids")
65
	
66
	monitor.setCursorPos(2,8)
67
	monitor.write("Blocks")
68
	
69
	monitor.setBackgroundColour((colors.black)) -- Reset Monitor Background Color back to black
70
71
	CML = 0
72
	CAL = 0
73
	CLL = 0 
74
	CBL = 0
75
	
76
end -- End Function
77
78
listMenu()
79
80
81
-- \Create Buttons for Metals, Alloys etc.
82
-----------------------------------------------------------------------------------------------
83
-- Functions for right clicking on monitor and what it is supposed to do.
84
85
function listMetals() -- Metal listing function.
86
87
		monitor.clear() -- Clear Monitor
88
		
89
		monitor.setBackgroundColour((colours.lime)) -- Set Monitor Background color to Lime for button creation
90
		
91
		monitor.setCursorPos(2,2)------------------- row 1
92
		monitor.write("Back")
93
		
94
		monitor.setCursorPos(2,4)
95
		monitor.write("Cobalt")
96
		
97
		monitor.setCursorPos(2,6)
98
		monitor.write("Gold")
99
100
		monitor.setCursorPos(2,8)
101
		monitor.write("Coal")
102
		
103
		monitor.setCursorPos(2,10)
104
		monitor.write("Unstable")
105
106
		monitor.setCursorPos(2,12)
107
		monitor.write("Silver")
108
109
		monitor.setCursorPos(2,14)
110
		monitor.write("Yellorium")
111
112
		monitor.setCursorPos(15,2)------------------- row 2
113
		monitor.write("Aluminium")
114
		
115
		monitor.setCursorPos(15,4)
116
		monitor.write("Copper")
117
		
118
		monitor.setCursorPos(15,6)
119
		monitor.write("Iron")
120
121
		monitor.setCursorPos(15,8)
122
		monitor.write("Emerald")
123
		
124
		monitor.setCursorPos(15,10)
125
		monitor.write("Nickel")
126
127
		monitor.setCursorPos(15,12)
128
		monitor.write("Steel")
129
130
		--monitor.setCursorPos(15,14)
131
		--monitor.write("")
132
		
133
		monitor.setCursorPos(28,2)------------------ row 3
134
		monitor.write("Ardite")
135
		
136
		monitor.setCursorPos(28,4)
137
		monitor.write("Dark Iron")
138
		
139
		monitor.setCursorPos(28,6)
140
		monitor.write("Lead")
141
142
		monitor.setCursorPos(28,8)
143
		monitor.write("Mana Metal")
144
		
145
		monitor.setCursorPos(28,10)
146
		monitor.write("Res Ender")
147
148
		monitor.setCursorPos(28,12)
149
		monitor.write("Tin")
150
151
		--monitor.setCursorPos(28,14)
152
		--monitor.write("")	
153
		
154
		monitor.setCursorPos(41,2)------------------ row 4
155
		monitor.write("Bedrockium")
156
		
157
		monitor.setCursorPos(41,4)
158
		monitor.write("Des Redstone")
159
		
160
		monitor.setCursorPos(41,6)
161
		monitor.write("Redstone")
162
163
		monitor.setCursorPos(41,8)
164
		monitor.write("Mithril")
165
		
166
		monitor.setCursorPos(41,10)
167
		monitor.write("Shiny")
168
169
		monitor.setCursorPos(41,12)
170
		monitor.write("Uranium")
171
172
		monitor.setCursorPos(41,14)
173
		monitor.write("Stop")
174
		
175
		monitor.setBackgroundColour((colours.black)) -- Set Background color back to black
176
		
177
		CML = 1 -- Counter Metal List is now 1
178
		CFM = 1 -- Counter Filling Metal is now 1
179
		
180
end -- Ends the function
181
182
function listAlloys() -- Alloy listing function.
183
184
		monitor.clear() -- Clear Monitor
185
		
186
		monitor.setBackgroundColour((colours.lime)) -- Set monitor background color to lime for button creation
187
		
188
		monitor.setCursorPos(2,4)------------------- row 1
189
		monitor.write("Back")
190
		
191
		monitor.setCursorPos(2,6)
192
		monitor.write("Red Alloy")
193
		
194
		monitor.setCursorPos(2,8)
195
		monitor.write("Lumium")
196
197
		--monitor.setCursorPos(2,10)
198
		--monitor.write("")
199
		
200
		--monitor.setCursorPos(2,12)
201
		--monitor.write("")
202
203
		--monitor.setCursorPos(2,14)
204
		--monitor.write("")
205
206
		--monitor.setCursorPos(2,16)
207
		--monitor.write("")
208
209
		monitor.setCursorPos(15,4)------------------- row 2
210
		monitor.write("Alum Brass")
211
		
212
		monitor.setCursorPos(15,6)
213
		monitor.write("Electrum")
214
		
215
		monitor.setCursorPos(15,8)
216
		monitor.write("Manyullyn")
217
218
		--monitor.setCursorPos(15,10)
219
		--monitor.write("")
220
		
221
		--monitor.setCursorPos(15,12)
222
		--monitor.write("")
223
224
		--monitor.setCursorPos(15,14)
225
		--monitor.write("")
226
227
		--monitor.setCursorPos(15,16)
228
		--monitor.write("")
229
		
230
		monitor.setCursorPos(28,4)------------------ row 3
231
		monitor.write("Alumite")
232
		
233
		monitor.setCursorPos(28,6)
234
		monitor.write("Enderium")
235
		
236
		monitor.setCursorPos(28,8)
237
		monitor.write("Pig Iron")
238
239
		--monitor.setCursorPos(28,10)
240
		--monitor.write("")
241
		
242
		--monitor.setCursorPos(28,12)
243
		--monitor.write("")
244
245
		--monitor.setCursorPos(28,14)
246
		--monitor.write("")
247
248
		--monitor.setCursorPos(28,16)
249
		--monitor.write("")	
250
		
251
		monitor.setCursorPos(41,4)------------------ row 4
252
		monitor.write("Bronze")
253
		
254
		monitor.setCursorPos(41,6)
255
		monitor.write("Invar")
256
		
257
		monitor.setCursorPos(41,8)
258
		monitor.write("Signalium")
259
260
		--monitor.setCursorPos(41,10)
261
		--monitor.write("")
262
		
263
		--monitor.setCursorPos(41,12)
264
		--monitor.write("")
265
266
		monitor.setCursorPos(41,14)
267
		monitor.write("Stop")
268
269
		
270
		monitor.setBackgroundColour((colours.black)) -- Set Background color back to black
271
		
272
		CAL = 1 -- Counter list Alloy is now 1
273
		CFA = 1 -- Counter Filling Alloy is now 1
274
		
275
end -- Ends the function
276
277
function listLiquids() -- Liquid listing function.
278
279
		monitor.clear() -- Clear Monitor
280
		
281
		monitor.setBackgroundColour((colours.lime)) -- Set monitor background color to Lime for button creation
282
		
283
		monitor.setCursorPos(2,6)------------------- row 1
284
		monitor.write("Back")
285
		
286
		monitor.setCursorPos(2,8)
287
		monitor.write("Glue")
288
		
289
		--monitor.setCursorPos(2,10)
290
		--monitor.write("")
291
292
		--monitor.setCursorPos(2,12)
293
		--monitor.write("")
294
		
295
		--monitor.setCursorPos(2,14)
296
		--monitor.write("")
297
298
		--monitor.setCursorPos(2,16)
299
		--monitor.write("")
300
301
		--monitor.setCursorPos(2,18)
302
		--monitor.write("")
303
304
		monitor.setCursorPos(15,6)------------------- row 2
305
		monitor.write("Pyrotheum")
306
		
307
		monitor.setCursorPos(15,8)
308
		monitor.write("Lava")
309
		
310
		--monitor.setCursorPos(15,10)
311
		--monitor.write("")
312
313
		--monitor.setCursorPos(15,12)
314
		--monitor.write("")
315
		
316
		--monitor.setCursorPos(15,14)
317
		--monitor.write("")
318
319
		--monitor.setCursorPos(15,16)
320
		--monitor.write("")
321
322
		--monitor.setCursorPos(15,18)
323
		--monitor.write("")
324
		
325
		monitor.setCursorPos(28,6)------------------ row 3
326
		monitor.write("Blood")
327
		
328
		monitor.setCursorPos(28,8)
329
		monitor.write("Water")
330
		
331
		--monitor.setCursorPos(28,10)
332
		--monitor.write("")
333
334
		--monitor.setCursorPos(28,12)
335
		--monitor.write("")
336
		
337
		--monitor.setCursorPos(28,14)
338
		--monitor.write("")
339
340
		--monitor.setCursorPos(28,16)
341
		--monitor.write("")
342
343
		--monitor.setCursorPos(28,18)
344
		--monitor.write("")	
345
		
346
		monitor.setCursorPos(41,6)------------------ row 4
347
		monitor.write("Cryotheum")
348
		
349
		--monitor.setCursorPos(41,8)
350
		--monitor.write("")
351
		
352
		--monitor.setCursorPos(41,10)
353
		--monitor.write("")
354
355
		--monitor.setCursorPos(41,12)
356
		--monitor.write("")
357
		
358
		monitor.setCursorPos(41,14)
359
		monitor.write("Stop")
360
361
		--monitor.setCursorPos(41,16)
362
		--monitor.write("")
363
364
		--monitor.setCursorPos(41,18)
365
		--monitor.write("")
366
		
367
		monitor.setBackgroundColour((colours.black)) -- Set Background color back to black
368
		
369
		CLL = 1 -- Counter list Liquids is now 1
370
		CFL = 1 -- Counter Filling Liquids is now 1
371
		
372
end -- Ends the function
373
374
function listBlocks() -- Block listing function.
375
		
376
		monitor.clear() -- Clear Monitor
377
		
378
		monitor.setBackgroundColour((colours.lime)) -- Set monitor background color to lime for button creation
379
		
380
		monitor.setCursorPos(2,8)------------------- row 1
381
		monitor.write("Back")
382
		
383
		--monitor.setCursorPos(2,10)
384
		--monitor.write("")
385
		
386
		--monitor.setCursorPos(2,12)
387
		--monitor.write("")
388
389
		--monitor.setCursorPos(2,14)
390
		--monitor.write("")
391
		
392
		--monitor.setCursorPos(2,16)
393
		--monitor.write("")
394
395
		--monitor.setCursorPos(2,18)
396
		--monitor.write("")
397
398
		--monitor.setCursorPos(2,20)
399
		--monitor.write("")
400
401
		monitor.setCursorPos(15,8)------------------- row 2
402
		monitor.write("Obsidian")
403
		
404
		--monitor.setCursorPos(15,10)
405
		--monitor.write("")
406
		
407
		--monitor.setCursorPos(15,12)
408
		--monitor.write("")
409
410
		--monitor.setCursorPos(15,14)
411
		--monitor.write("")
412
		
413
		--monitor.setCursorPos(15,16)
414
		--monitor.write("")
415
416
		--monitor.setCursorPos(15,18)
417
		--monitor.write("")
418
419
		--monitor.setCursorPos(15,20)
420
		--monitor.write("")
421
		
422
		monitor.setCursorPos(28,8)------------------ row 3
423
		monitor.write("Seared Stone")
424
		
425
		--monitor.setCursorPos(28,10)
426
		--monitor.write("")
427
		
428
		--monitor.setCursorPos(28,12)
429
		--monitor.write("")
430
431
		--monitor.setCursorPos(28,14)
432
		--monitor.write("")
433
		
434
		--monitor.setCursorPos(28,16)
435
		--monitor.write("")
436
437
		--monitor.setCursorPos(28,18)
438
		--monitor.write("")
439
440
		--monitor.setCursorPos(28,20)
441
		--monitor.write("")	
442
		
443
		monitor.setCursorPos(41,8)------------------ row 4
444
		monitor.write("Glass")
445
		
446
		--monitor.setCursorPos(41,10)
447
		--monitor.write("")
448
		
449
		--monitor.setCursorPos(41,12)
450
		--monitor.write("")
451
452
		--monitor.setCursorPos(41,14)
453
		--monitor.write("")
454
		
455
		monitor.setCursorPos(41,16)
456
		monitor.write("Stop")
457
458
		--monitor.setCursorPos(41,18)
459
		--monitor.write("")
460
461
		--monitor.setCursorPos(41,20)
462
		--monitor.write("")
463
		
464
		monitor.setBackgroundColour((colours.black)) -- Set Background color back to black
465
		
466
		CBL = 1 -- Counter list blocks is now 1
467
		CFB = 1 -- Counter Filling blocks is now 1
468
end -- Ends the function
469
470
-- If clicked here then Function
471
472
function checkClickPosition() -- Everything below is a Function.
473
474
	if mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 2 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 then
475
		
476
		listMetals()
477
		
478
	elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 2 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 then
479
		
480
		listMenu()
481
		Stop()
482
	
483
	elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 then
484
		
485
		listAlloys()
486
		
487
	elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 then
488
	
489
		listMenu()
490
		Stop()
491
	
492
	elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 then
493
		
494
		listLiquids()
495
		
496
	elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 6 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 then
497
	
498
		listMenu()
499
		Stop()
500
	
501
	elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 then
502
		
503
		listBlocks()
504
		
505
	elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 8 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 then
506
	
507
		listMenu()
508
		Stop()
509
		
510
	-- Metal Inputs!
511
	
512
	elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
513
		
514
		Stop()
515
		listMetals()
516
		Cobalt()
517
		monitor.setBackgroundColour((colors.red))
518
		monitor.setCursorPos(2,4)
519
		monitor.write("Cobalt")
520
		monitor.setBackgroundColour((colors.black))
521
		
522
	elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
523
	
524
		Stop()
525
		listMetals()
526
		Gold()
527
		monitor.setBackgroundColour((colors.red))
528
		monitor.setCursorPos(2,6)
529
		monitor.write("Gold")
530
		monitor.setBackgroundColour((colors.black))
531
		
532
	elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
533
	
534
		Stop()
535
		listMetals()
536
		LiquiCoal()
537
		monitor.setBackgroundColour((colors.red))
538
		monitor.setCursorPos(2,8)
539
		monitor.write("Coal")
540
		monitor.setBackgroundColour((colors.black))
541
		
542
	elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
543
	
544
		Stop()
545
		listMetals()
546
		Unstable()
547
		monitor.setBackgroundColour((colors.red))
548
		monitor.setCursorPos(2,10)
549
		monitor.write("Unstable")
550
		monitor.setBackgroundColour((colors.black))
551
		
552
	elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
553
	
554
		Stop()
555
		listMetals()
556
		Silver()
557
		monitor.setBackgroundColour((colors.red))
558
		monitor.setCursorPos(2,12)
559
		monitor.write("Silver")
560
		monitor.setBackgroundColour((colors.black))
561
		
562
	elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
563
	
564
		Stop()
565
		listMetals()
566
		Yellorium()
567
		monitor.setBackgroundColour((colors.red))
568
		monitor.setCursorPos(2,14)
569
		monitor.write("Yellorium")
570
		monitor.setBackgroundColour((colors.black))
571
		
572
	elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 2 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
573
	
574
		Stop()
575
		Aluminum()
576
		listMetals()
577
		monitor.setBackgroundColour((colors.red))
578
		monitor.setCursorPos(15,2)
579
		monitor.write("Aluminium")
580
		monitor.setBackgroundColour((colors.black))
581
		
582
	elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
583
	
584
		Stop()
585
		listMetals()
586
		Copper()
587
		monitor.setBackgroundColour((colors.red))
588
		monitor.setCursorPos(15,4)
589
		monitor.write("Copper")
590
		monitor.setBackgroundColour((colors.black))
591
		
592
	elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
593
	
594
		Stop()
595
		listMetals()
596
		Iron()
597
		monitor.setBackgroundColour((colors.red))
598
		monitor.setCursorPos(15,6)
599
		monitor.write("Iron")
600
		monitor.setBackgroundColour((colors.black))
601
		
602
	elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
603
	
604
		Stop()
605
		listMetals()
606
		LiquiEmerald()
607
		monitor.setBackgroundColour((colors.red))
608
		monitor.setCursorPos(15,8)
609
		monitor.write("Emerald")
610
		monitor.setBackgroundColour((colors.black))
611
		
612
	elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
613
	
614
		Stop()
615
		listMetals()
616
		Nickel()
617
		monitor.setBackgroundColour((colors.red))
618
		monitor.setCursorPos(15,10)
619
		monitor.write("Nickel")
620
		monitor.setBackgroundColour((colors.black))
621
		
622
	elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
623
	
624
		Stop()
625
		listMetals()
626
		Steel()
627
		monitor.setBackgroundColour((colors.red))
628
		monitor.setCursorPos(15,12)
629
		monitor.write("Steel")
630
		monitor.setBackgroundColour((colors.black))
631
		
632
	--elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
633
	
634
		--Stop()
635
		--listMetals()
636
		--xxxx()
637
		--monitor.setBackgroundColour((colors.red))
638
		--monitor.setCursorPos(15,14)
639
		--monitor.write("xxxx")
640
		--monitor.setBackgroundColour((colors.black))
641
		
642
	elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 2 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
643
	
644
		Stop()
645
		listMetals()
646
		Ardite()
647
		monitor.setBackgroundColour((colors.red))
648
		monitor.setCursorPos(28,2)
649
		monitor.write("Ardite")
650
		monitor.setBackgroundColour((colors.black))
651
		
652
	elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
653
	
654
		Stop()
655
		listMetals()
656
		DarkIron()
657
		monitor.setBackgroundColour((colors.red))
658
		monitor.setCursorPos(28,4)
659
		monitor.write("Dark Iron")
660
		monitor.setBackgroundColour((colors.black))
661
		
662
	elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
663
	
664
		Stop()
665
		listMetals()
666
		Lead()
667
		monitor.setBackgroundColour((colors.red))
668
		monitor.setCursorPos(28,6)
669
		monitor.write("Lead")
670
		monitor.setBackgroundColour((colors.black))
671
		
672
	elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
673
	
674
		Stop()
675
		listMetals()
676
		ManaMetal()
677
		monitor.setBackgroundColour((colors.red))
678
		monitor.setCursorPos(28,8)
679
		monitor.write("Mana Metal")
680
		monitor.setBackgroundColour((colors.black))
681
		
682
	elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
683
	
684
		Stop()
685
		listMetals()
686
		ResEnder()
687
		monitor.setBackgroundColour((colors.red))
688
		monitor.setCursorPos(28,10)
689
		monitor.write("Res Ender")
690
		monitor.setBackgroundColour((colors.black))
691
		
692
	elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
693
	
694
		Stop()
695
		listMetals()
696
		Tin()
697
		monitor.setBackgroundColour((colors.red))
698
		monitor.setCursorPos(28,12)
699
		monitor.write("Tin")
700
		monitor.setBackgroundColour((colors.black))
701
		
702
	--elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
703
	
704
		--Stop()
705
		--listMetals()
706
		--xxxx()
707
		--monitor.setBackgroundColour((colors.red))
708
		--monitor.setCursorPos(28,14)
709
		--monitor.write("xxxx")
710
		--monitor.setBackgroundColour((colors.black))
711
		
712
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 2 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
713
	
714
		Stop()
715
		listMetals()
716
		Bedrockium()
717
		monitor.setBackgroundColour((colors.red))
718
		monitor.setCursorPos(41,2)
719
		monitor.write("Bedrockium")
720
		monitor.setBackgroundColour((colors.black))
721
		
722
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
723
	
724
		Stop()
725
		listMetals()
726
		DesRedstone()
727
		monitor.setBackgroundColour((colors.red))
728
		monitor.setCursorPos(41,4)
729
		monitor.write("Des Redstone")
730
		monitor.setBackgroundColour((colors.black))
731
		
732
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
733
	
734
		Stop()
735
		listMetals()
736
		LiquidRedstone()
737
		monitor.setBackgroundColour((colors.red))
738
		monitor.setCursorPos(41,6)
739
		monitor.write("Redstone")
740
		monitor.setBackgroundColour((colors.black))
741
		
742
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
743
	
744
		Stop()
745
		listMetals()
746
		Mithril()
747
		monitor.setBackgroundColour((colors.red))
748
		monitor.setCursorPos(41,8)
749
		monitor.write("Mithril")
750
		monitor.setBackgroundColour((colors.black))
751
		
752
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
753
	
754
		Stop()
755
		listMetals()
756
		Shiny()
757
		monitor.setBackgroundColour((colors.red))
758
		monitor.setCursorPos(41,10)
759
		monitor.write("Shiny")
760
		monitor.setBackgroundColour((colors.black))
761
		
762
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
763
	
764
		Stop()
765
		listMetals()
766
		Uranium()
767
		monitor.setBackgroundColour((colors.red))
768
		monitor.setCursorPos(41,12)
769
		monitor.write("Uranium")
770
		monitor.setBackgroundColour((colors.black))
771
		
772
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
773
	
774
		listMetals()
775
		Stop()
776
		monitor.setBackgroundColour((colors.red))
777
		monitor.setCursorPos(41,14)
778
		monitor.write("Stop")
779
		monitor.setBackgroundColour((colors.lime))
780
		monitor.setCursorPos(41,14)
781
		sleep(1)
782
		monitor.write("Stop")
783
		monitor.setBackgroundColour((colors.black))
784
		
785
	
786
	-- \Metal Inputs!
787
	
788
	-- Alloy Inputs!
789
		
790
	elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
791
	
792
		Stop()
793
		listAlloys()
794
		Redalloy()
795
		monitor.setBackgroundColour((colors.red))
796
		monitor.setCursorPos(2,6)
797
		monitor.write("Red Alloy")
798
		monitor.setBackgroundColour((colors.black))
799
		
800
	elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
801
	
802
		Stop()
803
		listAlloys()
804
		Lumium()
805
		monitor.setBackgroundColour((colors.red))
806
		monitor.setCursorPos(2,8)
807
		monitor.write("Lumium")
808
		monitor.setBackgroundColour((colors.black))
809
		
810
	--elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
811
	
812
		--Stop()
813
		--listAlloys()
814
		--xxxx()
815
		--monitor.setBackgroundColour((colors.red))
816
		--monitor.setCursorPos(2,10)
817
		--monitor.write("xxxx")
818
		--monitor.setBackgroundColour((colors.black))
819
		
820
	--elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
821
	
822
		--Stop()
823
		--listAlloys()
824
		--xxxx()
825
		--monitor.setBackgroundColour((colors.red))
826
		--monitor.setCursorPos(2,12)
827
		--monitor.write("xxxx")
828
		--monitor.setBackgroundColour((colors.black))
829
		
830
	--elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
831
	
832
		--Stop()
833
		--listAlloys()
834
		--xxxx()
835
		--monitor.setBackgroundColour((colors.red))
836
		--monitor.setCursorPos(2,14)
837
		--monitor.write("xxxx")
838
		--monitor.setBackgroundColour((colors.black))
839
		
840
	elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
841
	
842
		Stop()
843
		listAlloys()
844
		AluminumBrass()
845
		monitor.setBackgroundColour((colors.red))
846
		monitor.setCursorPos(15,4)
847
		monitor.write("Alum Brass")
848
		monitor.setBackgroundColour((colors.black))
849
		
850
	elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
851
	
852
		Stop()
853
		listAlloys()
854
		Electrum()
855
		monitor.setBackgroundColour((colors.red))
856
		monitor.setCursorPos(15,6)
857
		monitor.write("Electrum")
858
		monitor.setBackgroundColour((colors.black))
859
		
860
	elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
861
	
862
		Stop()
863
		listAlloys()
864
		Manyullyn()
865
		monitor.setBackgroundColour((colors.red))
866
		monitor.setCursorPos(15,8)
867
		monitor.write("Manyullyn")
868
		monitor.setBackgroundColour((colors.black))
869
		
870
	--elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 and CFA == 1 then
871
	
872
		--Stop()
873
		--listAlloys()
874
		--xxxx()
875
		--monitor.setBackgroundColour((colors.red))
876
		--monitor.setCursorPos(15,10)
877
		--monitor.write("xxxx")
878
		--monitor.setBackgroundColour((colors.black))
879
		
880
	--elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
881
	
882
		--Stop()
883
		--listAlloys()
884
		--xxxx()
885
		--monitor.setBackgroundColour((colors.red))
886
		--monitor.setCursorPos(15,12)
887
		--monitor.write("xxx")
888
		--monitor.setBackgroundColour((colors.black))
889
		
890
	--elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
891
	
892
		--Stop()
893
		--listAlloys()
894
		--xxxx()
895
		--monitor.setBackgroundColour((colors.red))
896
		--monitor.setCursorPos(15,14)
897
		--monitor.write("xxxx")
898
		--monitor.setBackgroundColour((colors.black))
899
		
900
	elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
901
	
902
		Stop()
903
		listAlloys()
904
		Alumite()
905
		monitor.setBackgroundColour((colors.red))
906
		monitor.setCursorPos(28,4)
907
		monitor.write("Alumite")
908
		monitor.setBackgroundColour((colors.black))
909
		
910
	elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
911
	
912
		Stop()
913
		listAlloys()
914
		Enderium()
915
		monitor.setBackgroundColour((colors.red))
916
		monitor.setCursorPos(28,6)
917
		monitor.write("Enderium")
918
		monitor.setBackgroundColour((colors.black))
919
		
920
	elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
921
	
922
		Stop()
923
		listAlloys()
924
		PigIron()
925
		monitor.setBackgroundColour((colors.red))
926
		monitor.setCursorPos(28,8)
927
		monitor.write("Pig Iron")
928
		monitor.setBackgroundColour((colors.black))
929
		
930
	--elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
931
	
932
		--Stop()
933
		--listAlloys()
934
		--xxxx()
935
		--monitor.setBackgroundColour((colors.red))
936
		--monitor.setCursorPos(28,10)
937
		--monitor.write("xxxx")
938
		--monitor.setBackgroundColour((colors.black))
939
		
940
	--elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
941
	
942
		--Stop()
943
		--listAlloys()
944
		--xxxx()
945
		--monitor.setBackgroundColour((colors.red))
946
		--monitor.setCursorPos(28,12)
947
		--monitor.write("xxxx")
948
		--monitor.setBackgroundColour((colors.black))
949
		
950
	--elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
951
	
952
		--Stop()
953
		--listAlloys()
954
		--xxxx()
955
		--monitor.setBackgroundColour((colors.red))
956
		--monitor.setCursorPos(28,14)
957
		--monitor.write("xxxx")
958
		--monitor.setBackgroundColour((colors.black))
959
		
960
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
961
	
962
		Stop()
963
		listAlloys()
964
		Bronze()
965
		monitor.setBackgroundColour((colors.red))
966
		monitor.setCursorPos(41,4)
967
		monitor.write("Bronze")
968
		monitor.setBackgroundColour((colors.black))
969
		
970
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
971
	
972
		Stop()
973
		listAlloys()
974
		Invar()
975
		monitor.setBackgroundColour((colors.red))
976
		monitor.setCursorPos(41,6)
977
		monitor.write("Invar")
978
		monitor.setBackgroundColour((colors.black))
979
		
980
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
981
	
982
		Stop()
983
		listAlloys()
984
		Signalium()
985
		monitor.setBackgroundColour((colors.red))
986
		monitor.setCursorPos(41,8)
987
		monitor.write("Signalium")
988
		monitor.setBackgroundColour((colors.black))
989
		
990
	--elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
991
	
992
		--Stop()
993
		--listAlloys()
994
		--xxxx()
995
		--monitor.setBackgroundColour((colors.red))
996
		--monitor.setCursorPos(41,10)
997
		--monitor.write("xxxx")
998
		--monitor.setBackgroundColour((colors.black))
999
		
1000
	--elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
1001
	
1002
		--Stop()
1003
		--listAlloys()
1004
		--xxxx()
1005
		--monitor.setBackgroundColour((colors.red))
1006
		--monitor.setCursorPos(41,12)
1007
		--monitor.write("xxxx")
1008
		--monitor.setBackgroundColour((colors.black))
1009
		
1010
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
1011
	
1012
		listAlloys()
1013
		Stop()
1014
		monitor.setBackgroundColour((colors.red))
1015
		monitor.setCursorPos(41,14)
1016
		monitor.write("Stop")
1017
		monitor.setBackgroundColour((colors.lime))
1018
		monitor.setCursorPos(41,14)
1019
		sleep(1)
1020
		monitor.write("Stop")
1021
		monitor.setBackgroundColour((colors.black))
1022
		
1023
	-- \Alloy Inputs
1024
	
1025
	-- Liquid Inputs
1026
	
1027
	elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 8 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1028
	
1029
		Stop()
1030
		listLiquids()
1031
		Glue()
1032
		monitor.setBackgroundColour((colors.red))
1033
		monitor.setCursorPos(2,8)
1034
		monitor.write("Glue")
1035
		monitor.setBackgroundColour((colors.black))
1036
		
1037
	--elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 10 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1038
	
1039
		--Stop()
1040
		--listLiquids()
1041
		--xxxx()
1042
		--monitor.setBackgroundColour((colors.red))
1043
		--monitor.setCursorPos(2,10)
1044
		--monitor.write("xxxx")
1045
		--monitor.setBackgroundColour((colors.black))
1046
		
1047
	--elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 12 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1048
	
1049
		--Stop()
1050
		--listLiquids()
1051
		--xxxx()
1052
		--monitor.setBackgroundColour((colors.red))
1053
		--monitor.setCursorPos(2,12)
1054
		--monitor.write("xxxx")
1055
		--monitor.setBackgroundColour((colors.black))
1056
		
1057
	--elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 14 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1058
	
1059
		--Stop()
1060
		--listLiquids()
1061
		--xxxx()
1062
		--monitor.setBackgroundColour((colors.red))
1063
		--monitor.setCursorPos(2,14)
1064
		--monitor.write("xxxx")
1065
		--monitor.setBackgroundColour((colors.black))
1066
		
1067
1068
	elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 6 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1069
	
1070
		Stop()
1071
		listLiquids()
1072
		Pyrotheum()
1073
		monitor.setBackgroundColour((colors.red))
1074
		monitor.setCursorPos(15,6)
1075
		monitor.write("Pyrotheum")
1076
		monitor.setBackgroundColour((colors.black))
1077
		
1078
	elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 8 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1079
		
1080
		Stop()
1081
		listLiquids()
1082
		Lava()
1083
		monitor.setBackgroundColour((colors.red))
1084
		monitor.setCursorPos(15,8)
1085
		monitor.write("Lava")
1086
		monitor.setBackgroundColour((colors.black))
1087
		
1088
	--elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 10 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1089
		
1090
		--Stop()
1091
		--listLiquids()
1092
		--xxxx()
1093
		--monitor.setBackgroundColour((colors.red))
1094
		--monitor.setCursorPos(15,10)
1095
		--monitor.write("xxxx")
1096
		--monitor.setBackgroundColour((colors.black))
1097
		
1098
	--elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 12 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1099
		
1100
		--Stop()
1101
		--listLiquids()
1102
		--xxxx()
1103
		--monitor.setBackgroundColour((colors.red))
1104
		--monitor.setCursorPos(15,12)
1105
		--monitor.write("xxx")
1106
		--monitor.setBackgroundColour((colors.black))
1107
		
1108
	--elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 14 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1109
		
1110
		--Stop()
1111
		--listLiquids()
1112
		--xxxx()
1113
		--monitor.setBackgroundColour((colors.red))
1114
		--monitor.setCursorPos(15,14)
1115
		--monitor.write("xxxx")
1116
		--monitor.setBackgroundColour((colors.black))
1117
		
1118
1119
	elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 6 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1120
		
1121
		Stop()
1122
		listLiquids()
1123
		Blood()
1124
		monitor.setBackgroundColour((colors.red))
1125
		monitor.setCursorPos(28,6)
1126
		monitor.write("Blood")
1127
		monitor.setBackgroundColour((colors.black))
1128
		
1129
	elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 8 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1130
		
1131
		Stop()
1132
		listLiquids()
1133
		Water()
1134
		monitor.setBackgroundColour((colors.red))
1135
		monitor.setCursorPos(28,8)
1136
		monitor.write("Water")
1137
		monitor.setBackgroundColour((colors.black))
1138
		
1139
	--elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 10 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1140
		
1141
		--Stop()
1142
		--listLiquids()
1143
		--xxxx()
1144
		--monitor.setBackgroundColour((colors.red))
1145
		--monitor.setCursorPos(28,10)
1146
		--monitor.write("xxxx")
1147
		--monitor.setBackgroundColour((colors.black))
1148
		
1149
	--elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 12 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1150
		
1151
		--Stop()
1152
		--listLiquids()
1153
		--xxxx()
1154
		--monitor.setBackgroundColour((colors.red))
1155
		--monitor.setCursorPos(28,12)
1156
		--monitor.write("xxxx")
1157
		--monitor.setBackgroundColour((colors.black))
1158
		
1159
	--elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 14 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1160
		
1161
		--Stop()
1162
		--listLiquids()
1163
		--xxxx()
1164
		--monitor.setBackgroundColour((colors.red))
1165
		--monitor.setCursorPos(28,14)
1166
		--monitor.write("xxxx")
1167
		--monitor.setBackgroundColour((colors.black))
1168
		
1169
1170
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 6 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1171
		
1172
		Stop()
1173
		listLiquids()
1174
		Cryotheum()
1175
		monitor.setBackgroundColour((colors.red))
1176
		monitor.setCursorPos(41,6)
1177
		monitor.write("Cryotheum")
1178
		monitor.setBackgroundColour((colors.black))
1179
		
1180
	--elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 8 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1181
		
1182
		--Stop()
1183
		--listLiquids()
1184
		--xxxx()
1185
		--monitor.setBackgroundColour((colors.red))
1186
		--monitor.setCursorPos(41,8)
1187
		--monitor.write("xxxx")
1188
		--monitor.setBackgroundColour((colors.black))
1189
		
1190
	--elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 10 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1191
		
1192
		--Stop()
1193
		--listLiquids()
1194
		--xxxx()
1195
		--monitor.setBackgroundColour((colors.red))
1196
		--monitor.setCursorPos(41,10)
1197
		--monitor.write("xxxx")
1198
		--monitor.setBackgroundColour((colors.black))
1199
		
1200
	--elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 12 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1201
		
1202
		--Stop()
1203
		--listLiquids()
1204
		--xxxx()
1205
		--monitor.setBackgroundColour((colors.red))
1206
		--monitor.setCursorPos(41,12)
1207
		--monitor.write("xxxx")
1208
		--monitor.setBackgroundColour((colors.black))
1209
		
1210
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 14 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
1211
		
1212
		listLiquids()
1213
		Stop()
1214
		monitor.setBackgroundColour((colors.red))
1215
		monitor.setCursorPos(41,14)
1216
		monitor.write("Stop")
1217
		monitor.setBackgroundColour((colors.lime))
1218
		monitor.setCursorPos(41,14)
1219
		sleep(1)
1220
		monitor.write("Stop")
1221
		monitor.setBackgroundColour((colors.black))
1222
1223
	-- \Liquid Inputs
1224
	
1225
	-- Block inputs
1226
1227
	--elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 10 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1228
	
1229
		--Stop()
1230
		--listBlocks()
1231
		--xxxx()
1232
		--monitor.setBackgroundColour((colors.red))
1233
		--monitor.setCursorPos(2,10)
1234
		--monitor.write("xxxx")
1235
		--monitor.setBackgroundColour((colors.black))
1236
		
1237
	--elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 12 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1238
	
1239
		--Stop()
1240
		--listBlocks()
1241
		--xxxx()
1242
		--monitor.setBackgroundColour((colors.red))
1243
		--monitor.setCursorPos(2,12)
1244
		--monitor.write("xxxx")
1245
		--monitor.setBackgroundColour((colors.black))
1246
		
1247
	--elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 14 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1248
	
1249
		--Stop()
1250
		--listBlocks()
1251
		--xxxx()
1252
		--monitor.setBackgroundColour((colors.red))
1253
		--monitor.setCursorPos(2,14)
1254
		--monitor.write("xxxx")
1255
		--monitor.setBackgroundColour((colors.black))
1256
		
1257
1258
	elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 8 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1259
	
1260
		Stop()
1261
		listBlocks()
1262
		Obsidian()
1263
		monitor.setBackgroundColour((colors.red))
1264
		monitor.setCursorPos(15,8)
1265
		monitor.write("Obsidian")
1266
		monitor.setBackgroundColour((colors.black))
1267
		
1268
	--elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 10 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1269
	
1270
		--Stop()
1271
		--listBlocks()
1272
		--xxxx()
1273
		--monitor.setBackgroundColour((colors.red))
1274
		--monitor.setCursorPos(15,10)
1275
		--monitor.write("xxxx")
1276
		--monitor.setBackgroundColour((colors.black))
1277
		
1278
	--elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 12 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1279
	
1280
		--Stop()
1281
		--listBlocks()
1282
		--xxxx()
1283
		--monitor.setBackgroundColour((colors.red))
1284
		--monitor.setCursorPos(15,12)
1285
		--monitor.write("xxx")
1286
		--monitor.setBackgroundColour((colors.black))
1287
		
1288
	--elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 14 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1289
	
1290
		--Stop()
1291
		--listBlocks()
1292
		--xxxx()
1293
		--monitor.setBackgroundColour((colors.red))
1294
		--monitor.setCursorPos(15,14)
1295
		--monitor.write("xxxx")
1296
		--monitor.setBackgroundColour((colors.black))
1297
		
1298
1299
	elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 8 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1300
	
1301
		Stop()
1302
		listBlocks()
1303
		Seared()
1304
		monitor.setBackgroundColour((colors.red))
1305
		monitor.setCursorPos(28,8)
1306
		monitor.write("Seared Stone")
1307
		monitor.setBackgroundColour((colors.black))
1308
		
1309
	--elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 10 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1310
	
1311
		--Stop()
1312
		--listBlocks()
1313
		--xxxx()
1314
		--monitor.setBackgroundColour((colors.red))
1315
		--monitor.setCursorPos(28,10)
1316
		--monitor.write("xxxx")
1317
		--monitor.setBackgroundColour((colors.black))
1318
		
1319
	--elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 12 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1320
	
1321
		--Stop()
1322
		--listBlocks()
1323
		--xxxx()
1324
		--monitor.setBackgroundColour((colors.red))
1325
		--monitor.setCursorPos(28,12)
1326
		--monitor.write("xxxx")
1327
		--monitor.setBackgroundColour((colors.black))
1328
		
1329
	--elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 14 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1330
	
1331
		--Stop()
1332
		--listBlocks()
1333
		--xxxx()
1334
		--monitor.setBackgroundColour((colors.red))
1335
		--monitor.setCursorPos(28,14)
1336
		--monitor.write("xxxx")
1337
		--monitor.setBackgroundColour((colors.black))
1338
		
1339
1340
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 8 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1341
	
1342
		Stop()
1343
		listBlocks()
1344
		Glass()
1345
		monitor.setBackgroundColour((colors.red))
1346
		monitor.setCursorPos(41,8)
1347
		monitor.write("Glass")
1348
		monitor.setBackgroundColour((colors.black))
1349
		
1350
	--elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 10 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1351
	
1352
		--Stop()
1353
		--listBlocks()
1354
		--xxxx()
1355
		--monitor.setBackgroundColour((colors.red))
1356
		--monitor.setCursorPos(41,10)
1357
		--monitor.write("xxxx")
1358
		--monitor.setBackgroundColour((colors.black))
1359
		
1360
	--elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 12 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1361
	
1362
		--Stop()
1363
		--listBlocks()
1364
		--xxxx()
1365
		--monitor.setBackgroundColour((colors.red))
1366
		--monitor.setCursorPos(41,12)
1367
		--monitor.write("xxxx")
1368
		--monitor.setBackgroundColour((colors.black))
1369
		
1370
	elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 14 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
1371
	
1372
		listBlocks()
1373
		Stop()
1374
		monitor.setBackgroundColour((colors.red))
1375
		monitor.setCursorPos(41,14)
1376
		monitor.write("Stop")
1377
		monitor.setBackgroundColour((colors.lime))
1378
		monitor.setCursorPos(41,14)
1379
		sleep(1)
1380
		monitor.write("Stop")
1381
		monitor.setBackgroundColour((colors.black))
1382
1383
	
1384
	-- \Block inputs
1385
	
1386
	end -- end If sentence	
1387
	
1388
end -- Ends the function
1389
1390
-- \If clicked here then Function
1391
1392
-- Function for Metal input
1393
1394
function Aluminum()
1395
1396
redstone.setBundledOutput("back", colors.black)
1397
1398
end
1399
1400
function Ardite()
1401
1402
redstone.setBundledOutput("back", colors.gray)
1403
1404
end
1405
1406
function Bedrockium()
1407
1408
redstone.setBundledOutput("back", colors.lightGray)
1409
1410
end
1411
1412
function Cobalt()
1413
1414
redstone.setBundledOutput("back", colors.white)
1415
1416
end
1417
1418
function Copper()
1419
1420
redstone.setBundledOutput("back", colors.green)
1421
1422
end
1423
1424
function DarkIron()
1425
1426
redstone.setBundledOutput("back", colors.lime)
1427
1428
end
1429
1430
function DesRedstone()
1431
1432
redstone.setBundledOutput("left", colors.lightBlue)
1433
1434
end
1435
1436
function EnerGlowstone()
1437
1438
redstone.setBundledOutput("left", colors.cyan)
1439
1440
end
1441
1442
function Gold()
1443
1444
redstone.setBundledOutput("left", colors.lime)
1445
1446
end
1447
1448
function Iron()
1449
1450
redstone.setBundledOutput("left", colors.green)
1451
1452
end
1453
1454
function Lead()
1455
1456
redstone.setBundledOutput("left", colors.white)
1457
1458
end
1459
1460
function LiquidRedstone()
1461
1462
redstone.setBundledOutput("left", colors.lightGray)
1463
1464
end
1465
1466
function LiquiCoal()
1467
1468
redstone.setBundledOutput("left", colors.gray)
1469
1470
end
1471
1472
function LiquiEmerald()
1473
1474
redstone.setBundledOutput("left", colors.black)
1475
1476
end
1477
1478
function ManaMetal()
1479
1480
redstone.setBundledOutput("left", colors.blue)
1481
1482
end
1483
1484
function Mithril()
1485
1486
redstone.setBundledOutput("left", colors.purple)
1487
1488
end
1489
1490
function Unstable()
1491
1492
redstone.setBundledOutput("left", colors.red)
1493
1494
end
1495
1496
function Nickel()
1497
1498
redstone.setBundledOutput("left", colors.magenta)
1499
1500
end
1501
 
1502
function ResEnder()
1503
1504
redstone.setBundledOutput("left", colors.pink)
1505
1506
end
1507
 
1508
 function Shiny()
1509
1510
redstone.setBundledOutput("left", colors.yellow)
1511
1512
end
1513
 
1514
 function Silver()
1515
1516
redstone.setBundledOutput("left", colors.orange)
1517
1518
end
1519
 
1520
 function Steel()
1521
1522
redstone.setBundledOutput("left", colors.brown)
1523
1524
end
1525
 
1526
 function Tin()
1527
1528
redstone.setBundledOutput("right", colors.brown)
1529
1530
end
1531
 
1532
 function Uranium()
1533
1534
redstone.setBundledOutput("right", colors.orange)
1535
1536
end
1537
 
1538
 function Yellorium()
1539
1540
redstone.setBundledOutput("right", colors.yellow)
1541
1542
end
1543
 
1544
-- \Function for Metal input
1545
1546
-- Function for Alloy Input
1547
1548
function AluminumBrass()
1549
	
1550
redstone.setBundledOutput("right", colors.pink)
1551
1552
end
1553
1554
function Alumite()
1555
	
1556
redstone.setBundledOutput("right", colors.magenta)
1557
1558
end
1559
1560
function Bronze()
1561
	
1562
redstone.setBundledOutput("right", colors.red)
1563
1564
end
1565
1566
function Redalloy()
1567
	
1568
redstone.setBundledOutput("right", colors.purple)
1569
1570
end
1571
1572
function Electrum()
1573
	
1574
redstone.setBundledOutput("right", colors.blue)
1575
1576
end
1577
1578
function Enderium()
1579
	
1580
redstone.setBundledOutput("right", colors.black)
1581
1582
end
1583
1584
function Invar()
1585
	
1586
redstone.setBundledOutput("right", colors.gray)
1587
1588
end
1589
1590
function Lumium()
1591
	
1592
redstone.setBundledOutput("right", colors.lightGray)
1593
1594
end
1595
1596
function Manyullyn()
1597
	
1598
redstone.setBundledOutput("right", colors.white)
1599
1600
end
1601
1602
function PigIron()
1603
	
1604
redstone.setBundledOutput("right", colors.green)
1605
1606
end
1607
1608
function Signalium()
1609
	
1610
redstone.setBundledOutput("right", colors.lime)
1611
1612
end
1613
1614
-- \Function for Alloy input
1615
1616
-- Function for Fluid Input
1617
1618
function Pyrotheum()
1619
	
1620
redstone.setBundledOutput("right", colors.cyan)
1621
1622
end
1623
1624
function Blood()
1625
	
1626
redstone.setBundledOutput("right", colors.lightBlue)
1627
1628
end
1629
1630
function Cryotheum()
1631
	
1632
redstone.setBundledOutput("back", colors.magenta)
1633
1634
end
1635
1636
function Glue()
1637
	
1638
redstone.setBundledOutput("back", colors.red)
1639
1640
end
1641
1642
function Lava()
1643
	
1644
redstone.setBundledOutput("back", colors.purple)
1645
1646
end
1647
1648
-- \Function for Fluid Input
1649
1650
-- Function for Block Input
1651
1652
function Glass()
1653
	
1654
redstone.setBundledOutput("back", colors.blue)
1655
1656
end
1657
1658
function Obsidian()
1659
	
1660
redstone.setBundledOutput("back", colors.lightBlue)
1661
1662
end
1663
1664
function Seared()
1665
	
1666
redstone.setBundledOutput("back", colors.cyan)
1667
1668
end
1669
1670
-- \Function for Block Input
1671
1672
-- Function to stop every input
1673
1674
function Stop()
1675
1676
redstone.setBundledOutput("right", 0)
1677
redstone.setBundledOutput("left", 0)
1678
redstone.setBundledOutput("back", 0)
1679
1680
end 
1681
-- \Function to stop every input
1682
Stop()
1683
-- \Functions for right clicking on monitor and what it is supposed to do.
1684
-----------------------------------------------------------------------------------------------
1685
-- Repeat event for checking if someone Right clicked the Monitor
1686
1687
repeat -- Repeat this:
1688
1689
	event,p1,p2,p3 = os.pullEvent() -- Get Event data: event,p1,p2,p3 from os.pullEvent()
1690
	
1691
		if event == "monitor_touch" then -- When the event monitor_touch is triggered then
1692
		
1693
		mouseWidth = p2 -- sets the number of p2 into the variable mouseWidth.
1694
		mouseHeight = p3 -- same with mouse Height
1695
		checkClickPosition() -- This will run the Function previously created!
1696
		
1697
		-- Debug stuff!
1698
		
1699
		print(mouseWidth)
1700
		print(mouseHeight)
1701
		print("CLL: ", CLL)
1702
		print("CAL: ", CAL)
1703
		print("CML: ", CML)
1704
		print("CBL: ", CBL)
1705
		
1706
		--\ Debug stuff!
1707
		
1708
		end -- end the IF statement.
1709
1710
until event=="char" and p1==("x") -- Repeat until event "char" is activated and "x" is pressed.
1711
1712
-- \Repeat event for checking if someone Right clicked the Monitor