Advertisement
Liktorn

Untitled

Jun 13th, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. while true do
  2. if rs.getInput("back", true) then
  3.  
  4. sleep(1)
  5. --send signal to fertilize the plant
  6. rs.setOutput("right", true)
  7. sleep(1)
  8. rs.setOutput("right", false)
  9. sleep(1)
  10. rs.setOutput("right", true)
  11. sleep(1)
  12. rs.setOutput("right", false)
  13.  
  14. --harvest plant
  15. turtle.dig()
  16.  
  17. --plant new seed
  18. turtle.drop(1)
  19.  
  20. else
  21. turtle.suck()
  22. sleep(20)
  23. print("Waiting for input")
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement