View difference between Paste ID: r5y6BJWW and Zda25PmL
SHOW: | | - or go back to the newest paste.
1
function craft()
2
   turtle.craft(1)
3
end
4
5
function getwheat()
6
turtle.suckDown(10)
7
end
8
9-
function range()
9+
10
function drop()
11
turtle.select(2) 
12
turtle.dropUp(2) 
13
turtle.select(1)
14
end
15
16
17
function finish()
18
turtle.select(1)
19
turtle.dropUp(1)
20
end
21
22
23
while (true) do
24
  craft()
25
  drop()
26-
if(turtle.getItemDetail(1) == 4367:2) then
26+
27-
range()
27+
28
end
29
30-
drop()
30+
if(turtle.getItemCount(1) <= 1) then
31
finish()
32
end
33
34
35
36
37
38
39
end