View difference between Paste ID: ddicUEEA and TDH0Sube
SHOW: | | - or go back to the newest paste.
1
function placeleft()
2-
 turtle.select(16)
2+
  turtle.turnRight()
3-
 if turtle.compare() == true then
3+
  turtle.forward()
4
  turtle.turnLeft()
5
  turtle.place()
6-
  turtle.dropDown()
6+
7-
  turtle.suckDown()
7+
8
function placeright()
9-
  sleep(0.1)
9+
  turtle.turnLeft()
10-
else
10+
  turtle.forward()
11-
  turtle.select(1)  
11+
  turtle.turnRight()
12
  turtle.place()
13
end
14-
  sleep(0.1)
14+
15
function goto()
16
  turtle.turnLeft()
17
  turtle.turnLeft()
18
  turtle.forward()
19
  turtle.forward()
20
  turtle.forward()
21
  turtle.turnRight()
22
  turtle.forward()
23
  turtle.forward()
24
  turtle.forward()
25
  turtle.forward()
26
  turtle.turnLeft()
27
  turtle.place()
28
end
29
30
function rowleft()
31
  placeleft()
32
  placeleft()
33
  placeleft()
34
  placeleft()
35
  placeleft()
36
  placeleft()
37
  placeleft()
38
  placeleft()
39
  placeleft()
40
  placeleft()
41
end
42
43
function rowright()
44
  placeright()
45
  placeright()
46
  placeright()
47
  placeright()
48
  placeright()
49
  placeright()
50
  placeright()
51
  placeright()
52
  placeright()
53
  placeright()
54
end
55
56
function rowup()
57
  turtle.up()
58
  turtle.place()
59
end
60
61
function rowdown()
62
  turtle.down()
63
end
64
65
function returnto()
66
  turtle.turnRight()
67
  turtle.turnRight()
68
  turtle.turnRight()
69
  turtle.forward()
70
  turtle.forward()
71
  turtle.forward()
72
  turtle.forward()
73
  turtle.forward()
74
  turtle.forward()
75
  turtle.forward()
76
  turtle.forward()
77
  turtle.forward()
78
  turtle.forward()
79
  turtle.forward()
80
  turtle.forward()
81
  turtle.forward()
82
  turtle.forward()
83
  turtle.turnLeft()
84
  turtle.forward()
85
  turtle.forward()
86
  turtle.forward()
87
end
88
89
while true do
90
  if rs.getInput("bottom") then
91
  turtle.select(1)
92
  turtle.dig()
93
94
  goto()
95
  rowleft()
96
  rowup()
97
  rowright()
98
  rowup()
99
  rowleft()
100
  rowdown()
101
  rowdown()
102
103
  returnto()
104
  
105
  sleep(2)
106
107
end
108
  sleep(2)
109
end