Advertisement
NanoBob

turtle tree farm

Mar 18th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function checkTree()
  2.   turtle.select(1)
  3.   if turtle.compare()==true then
  4.     redstone.setOutput("left",true)
  5.     sleep(3.5)
  6.     redstone.setOutput("left",false)
  7.     plantTree()
  8.   end
  9. end
  10.  
  11. function plantTree()
  12.   turtle.select(2)
  13.   turtle.turnRight()
  14.   turtle.suck(4)
  15.   turtle.turnLeft()
  16.   turtle.forward()
  17.   turtle.forward()
  18.   turtle.turnLeft()
  19.   turtle.digDown()
  20.   turtle.down()
  21.   turtle.dig()
  22.   turtle.place()
  23.   turtle.turnLeft()
  24.   turtle.dig()
  25.   turtle.forward()
  26.   turtle.turnRight()
  27.   turtle.dig()
  28.   turtle.place()
  29.   turtle.turnRight()
  30.   turtle.place()
  31.   turtle.up()
  32.   turtle.placeDown()
  33.   turtle.back()
  34. end
  35.  
  36. while true do
  37.   checkTree()
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement