--spinds and check for ajcencent tree
--if it finds one it move up while
--chopping. It expects uppon moving
--down it goes to the bottom, 1 up
--and sucks, to enable collection of
--saplings via water transport.
--replants after gathering

local noop = function() end

rednet.open("right")

local function fell()
 while turtle.dig() do 
  turtle.digUp()
  turtle.up()
 end
 while turtle.down() do
   noop()
 end  
 turtle.up()
end

while true do
 turtle.select(1)
 if turtle.compare() then
  fell()
  turtle.select(2)
  turtle.place()
rednet.broadcast(os.clock()..":"..math.floor(turtle.getFuelLevel()/10)..";"..turtle.getItemCount(2)..";"..turtle.getItemCount(16))
  turtle.select(16)
  turtle.place()
 end
 sleep(10)
 turtle.turnRight()
 turtle.suck()
 turtle.suckUp()
 turtle.suckDown()
end
