SHOW:
|
|
- or go back to the newest paste.
1 | - | --fuel check |
1 | + | --fuel and item check |
2 | - | if turtle.getFuelLevel()<60 then |
2 | + | if turtle.getFuelLevel()<60 then |
3 | - | turtle.select(1) |
3 | + | turtle.select(1) |
4 | - | turtle.refuel(10) |
4 | + | turtle.refuel(10) |
5 | end | |
6 | if turtle.getItemCount(2)<1 then | |
7 | - | if turtle.getItemCount(2)<1 then |
7 | + | print "place:Slot1-Fuel, Slot2-Turtle Ender Chest, Slot3-5 Chests, Slot4-Stone, Slot5-Dirt Slot6-To Sorting Ender Chest and restart" |
8 | - | print "place:Slot1-Fuel, Slot2-Turtle Ender Chest, Slot3-5 Chests, Slot4-Stone, Slot5-Dirt Slot6-To Sorting Ender Chest and restart" |
8 | + | turtle.reboot() |
9 | - | turtle.reboot() |
9 | + | end |
10 | ||
11 | --cycle for collecting turtle and chest | |
12 | - | --start loop for 5x |
12 | + | for d=1,5 do |
13 | turtle.down() | |
14 | turtle.down() | |
15 | ||
16 | --empty chest | |
17 | turtle.select(6) | |
18 | turtle.placeUp() | |
19 | for e=1,27 do | |
20 | turtle.suckDown() | |
21 | turtle.dropUp() | |
22 | end | |
23 | turtle.digUp() | |
24 | turtle.select(3) | |
25 | turtle.digDown() | |
26 | ||
27 | --empty turtle | |
28 | turtle.down() | |
29 | turtle.select(4) | |
30 | turtle.suck() | |
31 | turtle.select(5) | |
32 | turtle.suck() | |
33 | ||
34 | --pick up turtle into ender chest | |
35 | turtle.select(2) | |
36 | turtle.placeUp() | |
37 | turtle.dig() | |
38 | turtle.dropUp() | |
39 | turtle.digUp() | |
40 | end | |
41 | ||
42 | print "Collection Complete. Initiating Setup." | |
43 | ||
44 | --start loop for placing turtles 5x | |
45 | for p=1,5 do | |
46 | --get into position | |
47 | for d=1,3 do | |
48 | turtle.digDown() | |
49 | turtle.down() | |
50 | turtle.dig() | |
51 | end | |
52 | --place Turtles from ender chest | |
53 | turtle.select(2) | |
54 | turtle.placeUp() | |
55 | turtle.suckUp(1) | |
56 | turtle.place() | |
57 | turtle.digUp() | |
58 | --place stone and dirt in turtle | |
59 | turtle.select(4) | |
60 | turtle.drop(1) | |
61 | turtle.select(5) | |
62 | turtle.drop(1) | |
63 | end | |
64 | --place chests | |
65 | turtle.select(3) | |
66 | for u=1,5 do | |
67 | turtle.up() | |
68 | turtle.placeDown() | |
69 | turtle.up() | |
70 | turtle.up() | |
71 | end |