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