DrFair

Furnace bot

Aug 5th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. nFurnaces = 8
  2. SmeltTime = 10
  3. x = 0
  4.  
  5.  
  6. function moveFor()
  7. if turtle.forward() then
  8. x = x + 1
  9. return true
  10. else
  11. return false
  12. end
  13. end
  14.  
  15. function moveBack()
  16. if turtle.back() then
  17. x = x - 1
  18. return true
  19. else
  20. return false
  21. end
  22. end
  23.  
  24. while true do
  25. os.sleep(0.1)
  26. print(tostring(os.time()))
  27. end
Advertisement
Add Comment
Please, Sign In to add comment