SHOW:
|
|
- or go back to the newest paste.
1 | start=true | |
2 | digUp=false | |
3 | digDown=false | |
4 | firstTime=false | |
5 | plant=false | |
6 | turtle.select(1) | |
7 | - | turtle.forward() |
7 | + | |
8 | - | turtle.select(1) |
8 | + | if turtle.getFuelLevel()<1 then |
9 | - | if start==true then |
9 | + | turtle.select(1) |
10 | - | turtle.select(1) |
10 | + | turtle.refuel(10) |
11 | - | if turtle.compare() then |
11 | + | |
12 | - | turtle.dig() |
12 | + | |
13 | - | turtle.forward() |
13 | + | if turtle.getItemCount(2)<1 then |
14 | - | start=false |
14 | + | digUp=false |
15 | - | digUp=true |
15 | + | firstTime=false |
16 | - | end |
16 | + | print "place:Slot1-Fir Log, Slot2-Dirt, Slot3-64 Fir Saplings, Slot4-64 Bone Meal and restart 'fir. No Blocks at north western corner'" |
17 | - | end |
17 | + | turtle.reboot() |
18 | end | |
19 | - | if turtle.getItemCount(2)<1 then |
19 | + | |
20 | - | digUp=false |
20 | + | if start==true and turtle.compare() then |
21 | - | firstTime=false |
21 | + | turtle.select(1) |
22 | - | print "Terminate(T+ctrl) then place:Slot1-Fir Log, Slot2-Dirt, Slot3-Cobblestone, Slot4-64 Fir Saplings and restart 'fir'" |
22 | + | |
23 | turtle.forward() | |
24 | start=false | |
25 | - | if turtle.compareUp() then |
25 | + | digUp=true |
26 | end | |
27 | - | turtle.select(1) |
27 | + | |
28 | - | turtle.dig() |
28 | + | |
29 | - | turtle.digUp() |
29 | + | |
30 | - | firstTime=true |
30 | + | turtle.digUp() |
31 | - | turtle.up() |
31 | + | |
32 | firstTime=true | |
33 | end | |
34 | ||
35 | if digDown==true and start==false then | |
36 | - | turtle.dig() |
36 | + | |
37 | - | turtle.digDown() |
37 | + | turtle.digDown() |
38 | - | turtle.down() |
38 | + | |
39 | - | turtle.select(2) |
39 | + | turtle.select(2) |
40 | plant=true | |
41 | - | if turtle.compareUp()==false and firstTime==true then |
41 | + | |
42 | - | digUp=false |
42 | + | |
43 | - | turtle.dig() |
43 | + | if turtle.detectUp()==false and firstTime==true then |
44 | - | turtle.turnLeft() |
44 | + | digUp=false |
45 | - | turtle.dig() |
45 | + | |
46 | - | turtle.forward() |
46 | + | |
47 | - | turtle.turnRight() |
47 | + | |
48 | - | firstTime=false |
48 | + | |
49 | - | digDown=true |
49 | + | |
50 | firstTime=false | |
51 | digDown=true | |
52 | - | if turtle.compareDown(2) then |
52 | + | |
53 | ||
54 | if turtle.compareDown(2) and plant==true then | |
55 | digDown=false | |
56 | turtle.dig() | |
57 | turtle.select(3) | |
58 | - | turtle.drop() |
58 | + | |
59 | turtle.placeDown() | |
60 | turtle.forward() | |
61 | - | turtle.select(4) |
61 | + | |
62 | - | turtle.place() |
62 | + | |
63 | turtle.forward() | |
64 | - | turtle.place() |
64 | + | |
65 | turtle.turnRight() | |
66 | turtle.forward() | |
67 | turtle.placeDown() | |
68 | turtle.dig() | |
69 | turtle.forward() | |
70 | turtle.down() | |
71 | turtle.turnRight() | |
72 | turtle.turnRight() | |
73 | print "Scyther used Cut ... It was Super Effective." | |
74 | for i=5,16 do | |
75 | turtle.select(i) | |
76 | - | for f=1,3 do |
76 | + | turtle.dropDown() |
77 | - | turtle.forward() |
77 | + | |
78 | - | start=true |
78 | + | if turtle.getItemCount(3)<8 then |
79 | turtle.select(3) | |
80 | - | if turtle.compare(3) then |
80 | + | turtle.turnLeft() |
81 | turtle.suck() | |
82 | - | turtle.forward() |
82 | + | |
83 | end | |
84 | - | for h=1,100 do |
84 | + | plant=false |
85 | - | turtle.forward() |
85 | + | start=true |
86 | end | |
87 | - | if turtle.detectDown() then |
87 | + | if start==true then |
88 | turtle.select(3) | |
89 | - | turtle.forward() |
89 | + | if turtle.compare() then |
90 | turtle.select(4) | |
91 | - | for i=5,16 do |
91 | + | turtle.place() |
92 | - | turtle.select(i) |
92 | + | if turtle.getItemCount(4)<2 then |
93 | - | turtle.dropDown() |
93 | + | turtle.turnRight() |
94 | - | start=true |
94 | + | turtle.suck() |
95 | turtle.turnLeft() | |
96 | end | |
97 | - | end |
97 | + | |
98 | turtle.select(1) | |
99 | end | |
100 | end |