View difference between Paste ID: MM2eAAJu and XQA7EWVX
SHOW: | | - or go back to the newest paste.
1-
r=1
1+
print "Place a Sapling in slot 16 to begin."
2
while true do
3-
 if r<16 and turtle.getItemCount(r)<1 then
3+
  if turtle.getItemCount(r)<1 then
4-
  r=r+1
4+
  turtle.turnLeft()
5-
  turtle.select(r)
5+
  turtle.suck()
6
  turtle.turnRight()
7
 end
8
 if turtle.compare(16) then
9
  turtle.place()
10
 end
11
end