View difference between Paste ID: q73Ueg13 and aH9YXTCG
SHOW: | | - or go back to the newest paste.
1-
findtrain = function()
1+
local findtrain = function()
2
turtle.select(16)
3
for i=1, 4 do
4
if turtle.compare() then
5
turtle.turnLeft()
6
end
7
end
8
turtle.select(1)
9
end
10
11
findtrain()
12
print("how many stacks")
13
stacks = read()
14-
for i=1, stacks do
14+
for o=1, stacks do
15
p=0
16-
while turtle.suck(64)==false&&p<4 do
16+
turtle.turnRight()
17-
p += 1
17+
while turtle.suck()==false do
18
p = p+1
19
if p==4 then
20
break
21
end
22
turtle.Right()
23
end
24
findtrain()
25
turtle.drop()
26
end