View difference between Paste ID: D9SfTwjk and zWySHMgu
SHOW: | | - or go back to the newest paste.
1
--Pastebin code: D9SfTwjk
2
print("This program goes 1 forward, then starts digging IF you want chests to work with")
3
print("this program, put them in before typing <room> <x> <y> <z> or it wont work!")
4
sleep(5)
5
 
6
 
7
tArgs = {...}
8
 
9
if #tArgs < 1 then
10
print("Write: room x y z, In numbers!")
11
return
12
end
13
 
14
local supermans = 0
15
local andersfc1 = 0
16
local loppy = 0
17
local x = tArgs[1]
18
local y = tArgs[2]
19
local z = tArgs[3]
20
local You = -1
21
local B = 0
22
local You1 = 0
23
local a = 0
24
if turtle.getItemCount(16) == 1 then
25
B = B+1
26
end
27
local A = 0
28
if turtle.getItemCount(14) == 1 then
29
A = A+1
30
end
31
 
32
tArgs[3] = tArgs[3] - 1
33
tArgs[2] = tArgs[2] - 2
34
tArgs[1] = tArgs[1] - 1
35
 
36
function DigY1()
37
 
38
inv = -1
39
ChestCheck11()
40
CheckFuel()
41
turtle.digDown()
42
turtle.down()
43
 
44
end
45
 
46
function ChestCheck11()
47
if B == 1 then
48
 
49
for i = 1, You1 do
50
turtle.up()
51
end
52
 
53
MoveBack()
54
local o = 0
55
turtle.select(16)
56
turtle.turnRight()
57
turtle.turnRight()
58
turtle.attack()
59
turtle.attack()
60
if turtle.getItemCount(16) == 1 then
61
o = o+1
62
end
63
if turtle.compare(16) == true then
64
o = o+1
65
end
66
if o == 2 then
67
turtle.select(1)
68
turtle.drop(64)
69
turtle.select(2)
70
turtle.drop(64)
71
turtle.select(3)
72
turtle.drop(64)
73
turtle.select(4)
74
turtle.drop(64)
75
turtle.select(5)
76
turtle.drop(64)
77
turtle.select(6)
78
turtle.drop(64)
79
turtle.select(7)
80
turtle.drop(64)
81
turtle.select(8)
82
turtle.drop(64)
83
turtle.select(9)
84
turtle.drop(64)
85
turtle.select(10)
86
turtle.drop(64)
87
turtle.select(11)
88
turtle.drop(64)
89
turtle.select(12)
90
turtle.drop(64)
91
o = 0
92
end
93
o = 0
94
turtle.select(1)
95
turtle.turnRight()
96
turtle.turnRight()
97
AntiJam()
98
 
99
for i = 1, You1 do
100
 
101
turtle.down()
102
end
103
You1 = You1+1
104
end
105
end
106
107
function torchget()
108
 
109
checkBlockUp()
110
turtle.select(11)
111
turtle.placeUp()
112
turtle.select(12)
113
turtle.suckUp()
114
turtle.select(11)
115
turtle.digUp()
116
turtle.select(1)
117
end
118
 
119
 
120
function EndFuel()
121
 
122
checkBlockUp()
123
turtle.select(15)
124
turtle.placeUp()
125
turtle.select(13)
126
turtle.suckUp()
127
turtle.select(15)
128
turtle.digUp()
129
turtle.select(1)
130
end
131
 
132
function MoveBack()
133
 
134
EnderChest1()
135
if turtle.back() == false then
136
turtle.turnRight()
137
turtle.turnRight()
138
checkBlock()
139
AntiJam()
140
turtle.turnLeft()
141
turtle.turnLeft()
142
sleep(0.4)
143
EnderChest1()
144
end
145
end
146
 
147
function ChestCheck10()
148
 
149
local o = 0
150
turtle.select(16)
151
turtle.turnRight()
152
turtle.turnRight()
153
turtle.attack()
154
turtle.attack()
155
if turtle.getItemCount(16) == 1 then
156
o = o+1
157
end
158
if turtle.compare(16) == true then
159
o = o+1
160
end
161
if o == 2 then
162
turtle.select(1)
163
turtle.drop(64)
164
turtle.select(2)
165
turtle.drop(64)
166
turtle.select(3)
167
turtle.drop(64)
168
turtle.select(4)
169
turtle.drop(64)
170
turtle.select(5)
171
turtle.drop(64)
172
turtle.select(6)
173
turtle.drop(64)
174
turtle.select(7)
175
turtle.drop(64)
176
turtle.select(8)
177
turtle.drop(64)
178
turtle.select(9)
179
turtle.drop(64)
180
turtle.select(10)
181
turtle.drop(64)
182
turtle.select(11)
183
turtle.drop(64)
184
turtle.select(12)
185
turtle.drop(64)
186
o = 0
187
end
188
o = 0
189
turtle.select(1)
190
turtle.turnRight()
191
turtle.turnRight()
192
 
193
end
194
 
195
function DigX4()
196
for i = 1, tArgs[1] do
197
 
198
checkBlock()
199
AntiJam()
200
 
201
end
202
end
203
 
204
function DigX5()
205
 
206
for i = 1, tArgs[1] do
207
 
208
 
209
CheckFuel()
210
MoveBack()
211
 
212
end
213
end
214
 
215
function DigZ2()
216
for i = 1, tArgs[3] do
217
 
218
turtle.turnRight()
219
checkBlock()
220
AntiJam()
221
turtle.turnLeft()
222
 
223
end
224
end
225
 
226
function DigZ3()
227
 
228
turtle.turnRight()
229
checkBlock()
230
AntiJam()
231
turtle.turnLeft()
232
end
233
 
234
function CheckXYZ1()
235
for i = 1, tArgs[3] do
236
 
237
 
238
DigX4()
239
DigX5()
240
DigZ3()
241
 
242
end
243
DigX4()
244
DigX5()
245
end
246
 
247
function CheckZ1()
248
 
249
inv = -1
250
ChestCheck11()
251
CheckFuel()
252
turtle.digDown()
253
turtle.down()
254
 
255
end
256
 
257
function Dig2()
258
shell.run("clear")
259
print("x: "..x.." y: "..y.." z: "..z.." ")
260
print("_______________________________________")
261
print("Clearing a: "..x.."x"..y.."x"..z.." Cube ")
262
print("_______________________________________")
263
f = turtle.getFuelLevel()
264
print("My fuel level is : "..f.." ")
265
print("_______________________________________")
266
print("Optionally put an item/buffer in slot#16 and the same block down on the ground Behind the turtle!!!, and the turtle will drop its loot there")
267
print("_______________________________________")
268
 
269
AntiJam()
270
 
271
for i = 1, tArgs[3] do
272
DigX2()
273
DigX3()
274
DigZ1()
275
 
276
end
277
 
278
DigX2()
279
DigX3()
280
CheckZ()
281
 
282
for i = 1, tArgs[2] do
283
 
284
 
285
DigY1()
286
CheckXYZ()
287
CheckZ()
288
 
289
end
290
 
291
for i = 1, tArgs[2] do
292
 
293
turtle.digUp()
294
CheckFuel()
295
turtle.up()
296
 
297
end
298
MoveBack()
299
ChestCheck10()
300
A = 0
301
B = 0
302
end
303
 
304
 
305
 
306
 
307
 
308
function ChestCheck1()
309
 
310
local o = 0
311
turtle.select(16)
312
turtle.turnRight()
313
turtle.turnRight()
314
turtle.attack()
315
turtle.attack()
316
if turtle.getItemCount(16) == 1 then
317
o = o+1
318
end
319
if turtle.compare(16) == true then
320
o = o+1
321
end
322
if o == 2 then
323
turtle.select(1)
324
turtle.drop(64)
325
turtle.select(2)
326
turtle.drop(64)
327
turtle.select(3)
328
turtle.drop(64)
329
turtle.select(4)
330
turtle.drop(64)
331
turtle.select(5)
332
turtle.drop(64)
333
turtle.select(6)
334
turtle.drop(64)
335
turtle.select(7)
336
turtle.drop(64)
337
turtle.select(8)
338
turtle.drop(64)
339
turtle.select(9)
340
turtle.drop(64)
341
turtle.select(10)
342
turtle.drop(64)
343
turtle.select(11)
344
turtle.drop(64)
345
turtle.select(12)
346
turtle.drop(64)
347
o = 0
348
end
349
o = 0
350
turtle.select(1)
351
turtle.turnRight()
352
turtle.turnRight()
353
 
354
end
355
 
356
function ChestCheck()
357
 
358
if B == 1 then
359
 
360
for i = 1, You do
361
turtle.down()
362
end
363
 
364
MoveBack()
365
local o = 0
366
turtle.select(16)
367
turtle.turnRight()
368
turtle.turnRight()
369
turtle.attack()
370
turtle.attack()
371
if turtle.getItemCount(16) == 1 then
372
o = o+1
373
end
374
if turtle.compare(16) == true then
375
o = o+1
376
end
377
if o == 2 then
378
turtle.select(1)
379
turtle.drop(64)
380
turtle.select(2)
381
turtle.drop(64)
382
turtle.select(3)
383
turtle.drop(64)
384
turtle.select(4)
385
turtle.drop(64)
386
turtle.select(5)
387
turtle.drop(64)
388
turtle.select(6)
389
turtle.drop(64)
390
turtle.select(7)
391
turtle.drop(64)
392
turtle.select(8)
393
turtle.drop(64)
394
turtle.select(9)
395
turtle.drop(64)
396
turtle.select(10)
397
turtle.drop(64)
398
turtle.select(11)
399
turtle.drop(64)
400
401
o = 0
402
end
403
o = 0
404
turtle.select(1)
405
turtle.turnRight()
406
turtle.turnRight()
407
AntiJam()
408
 
409
for i = 1, You do
410
 
411
turtle.up()
412
end
413
You = You+1
414
end
415
end
416
 
417
 
418
function EndFuel()
419
 
420
checkBlockUp()
421
turtle.select(15)
422
turtle.placeUp()
423
turtle.select(13)
424
turtle.suckUp(1)
425
turtle.select(15)
426
turtle.digUp()
427
turtle.select(1)
428
end
429
 
430-
if turtle.getItemCount(12) == 0 then torchget()
430+
431
while turtle.getItemCount(12) == 0 do
432
torchget()
433-
if a == 7 then torchplace()
433+
434
a = a+1
435
if a == 11 then torchplace()
436
end
437
EnderChest1()
438
if turtle.back() == false then
439
turtle.turnRight()
440
turtle.turnRight()
441
checkBlock()
442
AntiJam()
443
turtle.turnLeft()
444
turtle.turnLeft()
445
sleep(0.4)
446
end
447
end
448
 
449
function EnderChest1()
450
 
451
if turtle.getItemCount(10) == 1 then
452
EnderChest()
453
end
454
if turtle.getItemCount(10) == 2 then
455
EnderChest()
456
end
457
if turtle.getItemCount(10) == 3 then
458
EnderChest()
459
end
460
if turtle.getItemCount(10) == 4 then
461
EnderChest()
462
end
463
if turtle.getItemCount(10) == 5 then
464
EnderChest()
465
end
466
if turtle.getItemCount(10) == 6 then
467
EnderChest()
468
end
469
if turtle.getItemCount(10) == 7 then
470
EnderChest()
471
end
472
if turtle.getItemCount(10) == 8 then
473
EnderChest()
474
end
475
if turtle.getItemCount(10) == 9 then
476
EnderChest()
477
end
478
if turtle.getItemCount(10) == 10 then
479
EnderChest()
480
end
481
if turtle.getItemCount(10) == 11 then
482
EnderChest()
483
end
484
if turtle.getItemCount(10) == 12 then
485
EnderChest()
486
end
487
if turtle.getItemCount(10) == 13 then
488
EnderChest()
489
end
490
if turtle.getItemCount(10) == 14 then
491
EnderChest()
492
end
493
if turtle.getItemCount(10) == 15 then
494
EnderChest()
495
end
496
if turtle.getItemCount(10) == 16 then
497
EnderChest()
498
end
499
if turtle.getItemCount(10) == 17 then
500
EnderChest()
501
end
502
if turtle.getItemCount(10) == 18 then
503
EnderChest()
504
end
505
if turtle.getItemCount(10) == 19 then
506
EnderChest()
507
end
508
if turtle.getItemCount(10) == 20 then
509
EnderChest()
510
end
511
if turtle.getItemCount(10) == 21 then
512
EnderChest()
513
end
514
if turtle.getItemCount(10) == 22 then
515
EnderChest()
516
end
517
if turtle.getItemCount(10) == 23 then
518
EnderChest()
519
end
520
if turtle.getItemCount(10) == 24 then
521
EnderChest()
522
end
523
if turtle.getItemCount(10) == 25 then
524
EnderChest()
525
end
526
if turtle.getItemCount(10) == 26 then
527
EnderChest()
528
end
529
if turtle.getItemCount(10) == 27 then
530
EnderChest()
531
end
532
if turtle.getItemCount(10) == 28 then
533
EnderChest()
534
end
535
if turtle.getItemCount(10) == 29 then
536
EnderChest()
537
end
538
if turtle.getItemCount(10) == 30 then
539
EnderChest()
540
end
541
if turtle.getItemCount(10) == 31 then
542
EnderChest()
543
end
544
if turtle.getItemCount(10) == 32 then
545
EnderChest()
546
end
547
if turtle.getItemCount(10) == 33 then
548
EnderChest()
549
end
550
if turtle.getItemCount(10) == 34 then
551
EnderChest()
552
end
553
if turtle.getItemCount(10) == 35 then
554
EnderChest()
555
end
556
if turtle.getItemCount(10) == 36 then
557
EnderChest()
558
end
559
if turtle.getItemCount(10) == 37 then
560
EnderChest()
561
end
562
if turtle.getItemCount(10) == 38 then
563
EnderChest()
564
end
565
if turtle.getItemCount(10) == 39 then
566
EnderChest()
567
end
568
if turtle.getItemCount(10) == 40 then
569
EnderChest()
570
end
571
if turtle.getItemCount(10) == 41 then
572
EnderChest()
573
end
574
if turtle.getItemCount(10) == 42 then
575
EnderChest()
576
end
577
if turtle.getItemCount(10) == 43 then
578
EnderChest()
579
end
580
if turtle.getItemCount(10) == 44 then
581
EnderChest()
582
end
583
if turtle.getItemCount(10) == 45 then
584
EnderChest()
585
end
586
if turtle.getItemCount(10) == 46 then
587
EnderChest()
588
end
589
if turtle.getItemCount(10) == 47 then
590
EnderChest()
591
end
592
if turtle.getItemCount(10) == 48 then
593
EnderChest()
594
end
595
if turtle.getItemCount(10) == 49 then
596
EnderChest()
597
end
598
if turtle.getItemCount(10) == 50 then
599
EnderChest()
600
end
601
if turtle.getItemCount(10) == 51 then
602
EnderChest()
603
end
604
if turtle.getItemCount(10) == 52 then
605
EnderChest()
606
end
607
if turtle.getItemCount(10) == 53 then
608
EnderChest()
609
end
610
if turtle.getItemCount(10) == 54 then
611
EnderChest()
612
end
613
if turtle.getItemCount(10) == 55 then
614
EnderChest()
615
end
616
if turtle.getItemCount(10) == 56 then
617
EnderChest()
618
end
619
if turtle.getItemCount(10) == 57 then
620
EnderChest()
621
end
622
if turtle.getItemCount(10) == 58 then
623
EnderChest()
624
end
625
if turtle.getItemCount(10) == 59 then
626
EnderChest()
627
end
628
if turtle.getItemCount(10) == 60 then
629
EnderChest()
630
end
631
if turtle.getItemCount(10) == 61 then
632
EnderChest()
633
end
634
if turtle.getItemCount(10) == 62 then
635
EnderChest()
636
end
637
if turtle.getItemCount(10) == 63 then
638
EnderChest()
639
end
640
if turtle.getItemCount(10) == 64 then
641
EnderChest()
642
printf("eror plz check for a jam in the enderchest system")
643
end
644
end
645
 
646
function EnderChest()
647
 
648
if A == 1 then
649
turtle.select(14)
650
checkBlockUp()
651
turtle.placeUp()
652
if turtle.detectUp() == true then
653
turtle.select(1)
654
turtle.dropUp(64)
655
turtle.select(2)
656
turtle.dropUp(64)
657
turtle.select(3)
658
turtle.dropUp(64)
659
turtle.select(4)
660
turtle.dropUp(64)
661
turtle.select(5)
662
turtle.dropUp(64)
663
turtle.select(6)
664
turtle.dropUp(64)
665
turtle.select(7)
666
turtle.dropUp(64)
667
turtle.select(8)
668
turtle.dropUp(64)
669
turtle.select(9)
670
turtle.dropUp(64)
671
turtle.select(10)
672
turtle.dropUp(64)
673
turtle.select(14)
674
end
675
end
676
turtle.digUp()
677
turtle.select(1)
678
 
679
end
680
 
681
function AntiJam()
682
 
683
EnderChest1()
684
CheckFuel()
685
checkBlockUp()
686
while turtle.forward() == false do
687
 
688
turtle.attack()
689
turtle.dig()
690
691
if a == 7 then torchplace() else a = a + 1
692
 
693
if turtle.detect() == true then
694
sleep(0.4)
695
 
696
end
697
end
698
checkBlockUp()
699
end
700
end
701
 
702
function checkBlockUp()
703
while turtle.detectUp() == true do
704
 
705
 
706
turtle.digUp()
707
sleep(0.4)
708
 
709
end
710
end
711
712
function torchplace()
713
turtle.turnLeft()
714
turtle.dig()
715
turtle.select(12)
716
turtle.place()
717
turtle.turnRight()
718
turtle.select(1)
719
a = 0
720
end
721
722
function checkBlock()
723
while turtle.detect() == true do
724
 
725
turtle.dig()
726
 
727
if turtle.detect() == true then
728
sleep(0.4)
729
 
730
end
731
end
732
end
733
 
734
function CheckFuel()
735
 
736
if turtle.getFuelLevel() == 30 then
737
turtle.select(1)
738
turtle.refuel(1)
739
turtle.select(2)
740
turtle.refuel(1)
741
turtle.select(3)
742
turtle.refuel(1)
743
turtle.select(4)
744
turtle.refuel(1)
745
turtle.select(5)
746
turtle.refuel(1)
747
turtle.select(6)
748
turtle.refuel(1)
749
turtle.select(7)
750
turtle.refuel(1)
751
turtle.select(8)
752
turtle.refuel(1)
753
turtle.select(9)
754
turtle.refuel(1)
755
turtle.select(10)
756
turtle.refuel(1)
757
turtle.select(11)
758
turtle.refuel(1)
759
turtle.select(12)
760
turtle.refuel(1)
761
turtle.select(13)
762
turtle.refuel(1)
763
 
764
turtle.select(1)
765
supermans = supermans + 1
766
print("I tried to consume some coal to keep my fuel level up")
767
print(supermans)
768
end
769
 
770
if turtle.getFuelLevel() == 5 then
771
turtle.select(1)
772
turtle.refuel(1)
773
turtle.select(2)
774
turtle.refuel(1)
775
turtle.select(3)
776
turtle.refuel(1)
777
turtle.select(4)
778
turtle.refuel(1)
779
turtle.select(5)
780
turtle.refuel(1)
781
turtle.select(6)
782
turtle.refuel(1)
783
turtle.select(7)
784
turtle.refuel(1)
785
turtle.select(8)
786
turtle.refuel(1)
787
turtle.select(9)
788
turtle.refuel(1)
789
turtle.select(10)
790
turtle.refuel(1)
791
turtle.select(11)
792
turtle.refuel(1)
793
turtle.select(12)
794
turtle.refuel(1)
795
turtle.select(13)
796
turtle.refuel(1)
797
 
798
turtle.select(1)
799
supermans = supermans + 1
800
print("I tried to consume some coal to keep my fuel level up")
801
print(supermans)
802
end
803
 
804
if turtle.getFuelLevel() == 0 then
805
EndFuel()
806
turtle.select(1)
807
turtle.refuel(1)
808
turtle.select(2)
809
turtle.refuel(1)
810
turtle.select(3)
811
turtle.refuel(1)
812
turtle.select(4)
813
turtle.refuel(1)
814
turtle.select(5)
815
turtle.refuel(1)
816
turtle.select(6)
817
turtle.refuel(1)
818
turtle.select(7)
819
turtle.refuel(1)
820
turtle.select(8)
821
turtle.refuel(1)
822
turtle.select(9)
823
turtle.refuel(1)
824
turtle.select(10)
825
turtle.refuel(1)
826
turtle.select(11)
827
turtle.refuel(1)
828
turtle.select(12)
829
turtle.refuel(1)
830
turtle.select(13)
831
turtle.refuel(1)
832
 
833
turtle.select(1)
834
supermans = supermans + 1
835
print("I tried to consume some coal to keep my fuel level up")
836
print(supermans)
837
end
838
 
839
if turtle.getFuelLevel() == 0 then
840
print("I am gonna rest here, resupply me with fuel to reboot me!")
841
end
842
while turtle.getFuelLevel() == 0 do
843
rednet.open("right")
844
rednet.broadcast("I am out of fuel!!!")
845
EndFuel()
846
turtle.select(1)
847
turtle.refuel(1)
848
turtle.select(2)
849
turtle.refuel(1)
850
turtle.select(3)
851
turtle.refuel(1)
852
turtle.select(4)
853
turtle.refuel(1)
854
turtle.select(5)
855
turtle.refuel(1)
856
turtle.select(6)
857
turtle.refuel(1)
858
turtle.select(7)
859
turtle.refuel(1)
860
turtle.select(8)
861
turtle.refuel(1)
862
turtle.select(9)
863
turtle.refuel(1)
864
turtle.select(10)
865
turtle.refuel(1)
866
turtle.select(11)
867
turtle.refuel(1)
868
turtle.select(12)
869
turtle.refuel(1)
870
turtle.select(13)
871
turtle.refuel(1)
872
 
873
turtle.select(1)
874
 
875
end
876
end
877
 
878
function DigX()
879
 
880
checkBlock()
881
AntiJam()
882
 
883
end
884
 
885
function DigX2()
886
for i = 1, tArgs[1] do
887
 
888
 
889
checkBlock()
890
AntiJam()
891
 
892
end
893
end
894
 
895
function DigX3()
896
for i = 1, tArgs[1] do
897
 
898
 
899
CheckFuel()
900
MoveBack()
901
 
902
end
903
end
904
 
905
function CheckXYZ()
906
for i = 1, tArgs[3] do
907
 
908
 
909
DigX2()
910
DigX3()
911
DigZ1()
912
 
913
end
914
DigX2()
915
DigX3()
916
end
917
 
918
function CheckZ()
919
 
920
turtle.turnRight()
921
 
922
for i = 1, tArgs[3] do
923
 
924
CheckFuel()
925
MoveBack()
926
 
927
end
928
 
929
turtle.turnLeft()
930
 
931
end
932
 
933
function DigY()
934
 
935
inv = -1
936
ChestCheck()
937
CheckFuel()
938
checkBlockUp()
939
turtle.up()
940
checkBlockUp()
941
 
942
end
943
 
944
function DigZ()
945
for i = 1, tArgs[3] do
946
 
947
turtle.turnRight()
948
checkBlock()
949
AntiJam()
950
turtle.turnLeft()
951
 
952
end
953
end
954
 
955
function DigZ1()
956
 
957
turtle.turnRight()
958
checkBlock()
959
AntiJam()
960
turtle.turnLeft()
961
 
962
end
963
 
964
function Dig1()
965
AntiJam()
966
for i = 1, tArgs[3] do
967
 
968
 
969
DigX2()
970
DigX3()
971
DigZ1()
972
 
973
end
974
 
975
DigX2()
976
DigX3()
977
CheckZ()
978
 
979
for i = 1, tArgs[2] do
980
 
981
 
982
DigY()
983
CheckXYZ()
984
CheckZ()
985
 
986
end
987
 
988
for i = 1, tArgs[2] do
989
 
990
turtle.digDown()
991
CheckFuel()
992
turtle.down()
993
 
994
end
995
MoveBack()
996
end
997
 
998
stringA1 = "down"
999
stringB1 = "up"
1000
shell.run("clear")
1001
print("type <down> or <up>")
1002
term.write("Which Room mode to use?>")
1003
YO10 = read()
1004
 
1005
if YO10 == "down" then
1006
loppy = loppy+2
1007
Dig2()
1008
print("I mined a: "..x.."x"..y.."x"..z.." Cube for you master! ")
1009
print("I tried to consume fuel this many times:")
1010
print(supermans)
1011
end
1012
 
1013
stringA = "yes"
1014
stringB = "no"
1015
 
1016
if YO10 == "up" then
1017
loppy = loppy+1
1018
shell.run("clear")
1019
print("type <yes> or <no>")
1020
print("Please note, if this is a new version or you havent used the program before, it is highly recommended that you check the info!")
1021
term.write("Do you want to skip the info?>")
1022
YO1 = read()
1023
end
1024
 
1025
if YO1 == "yes" then
1026
loppy = loppy+2
1027
shell.run("clear")
1028
print("x: "..x.." y: "..y.." z: "..z.." ")
1029
print("_______________________________________")
1030
print("Clearing a: "..x.."x"..y.."x"..z.." Cube ")
1031
print("_______________________________________")
1032
f = turtle.getFuelLevel()
1033
print("My fuel level is : "..f.." ")
1034
print("_______________________________________")
1035
print("Optionally put an item/buffer in slot#16 and the same block down on the ground Behind the turtle!!!, and the turtle will drop its loot there")
1036
print("_______________________________________")
1037
ChestCheck()
1038
Dig1()
1039
ChestCheck1()
1040
A = 0
1041
B = 0
1042
print("I mined a: "..x.."x"..y.."x"..z.." Cube for you master! ")
1043
print("I tried to consume fuel this many times:")
1044
print(supermans)
1045
end
1046
 
1047
if YO1 == "no" then
1048
 
1049
loppy = loppy+2
1050
shell.run("clear")
1051
print("x: "..x.." y: "..y.." z: "..z.." ")
1052
print("_______________________________________")
1053
print("Clearing a: "..x.."x"..y.."x"..z.." Cube ")
1054
print("_______________________________________")
1055
f = turtle.getFuelLevel()
1056
print("My fuel level is : "..f.." ")
1057
print("_______________________________________")
1058
print("Please put an Ender chest in slot #14")
1059
print("_______________________________________")
1060
sleep(7.5)
1061
shell.run("clear")
1062
print("_______________________________________")
1063
print("Put coal in slot #13")
1064
print("_______________________________________")
1065
print("Slot #11,12,13,14,15 and 16 wont get dropped out of the turtles inventory")
1066
print("_______________________________________")
1067
sleep(7.5)
1068
shell.run("clear")
1069
print("_______________________________________")
1070
print("Optionally put a 2nd Ender chest in slot #15 to make the turtle take fuel out of it")
1071
print("_______________________________________")
1072
print("for torch placment put torches in slot 12 and an ender chest in slot 11 the ender chest is not required")
1073
print("_______________________________________")
1074
sleep(5)
1075
shell.run("clear")
1076
print("_______________________________________")
1077
print("Optionally put an item/buffer in slot#16 and the same block down on the ground Behind the turtle!!!, and the turtle will drop its loot there or put an Ender-chest in slot #14")
1078
print("_______________________________________")
1079
print("WARNING: If you DONT do that, you will loose your stuff!")
1080
print("_______________________________________")
1081
sleep(20)
1082
 
1083
shell.run("clear")
1084
 
1085
print("_______________________________________")
1086
print("You can have as many turtles with this program running at the same time, with the same Ender chest, without loosing your stuff, also it dosnt matter how fast your extraction system for your ender chest is (you could practically use redstone engines for even 10 turtles on the same ender-chest)")
1087
print("_______________________________________")
1088
sleep(7.5)
1089
ChestCheck()
1090
Dig1()
1091
ChestCheck1()
1092
A = 0
1093
B = 0
1094
print("I mined a: "..x.."x"..y.."x"..z.." Cube for you master! ")
1095
print("I tried to consume fuel this many times:")
1096
print(supermans)
1097
end
1098
if loppy == 0 then
1099
print("What you typed in, wasn't a command!")
1100
end
1101
if loppy == 1 then
1102
print("What you typed in, wasn't a command!")
1103
end