Guest User

Untitled

a guest
Aug 10th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. local state
  2. checksteps
  3. while true do
  4. steps()
  5. end
  6.  
  7. function move()
  8. turtle.forward()
  9. end
  10.  
  11. function right()
  12. turtle.turnRight()
  13. end
  14.  
  15. function left()
  16. turtle.turnLeft()
  17. end
  18.  
  19. function place(local dir)
  20. if dir == nil then
  21. turtle.place()
  22. end
  23. if dir == 1then
  24. turtle.placeUp()
  25. end
  26. if dir== 2 then
  27. turtle.placeDown()
  28. end
  29. end
  30.  
  31. function dig(local dir)
  32. if dir == nil then
  33. turtle.dig()
  34. end
  35. if dir == 1 then
  36. turtle.digUp()
  37. end
  38. if dir ==2 then
  39. turtle.digDown()
  40. end
  41. end
  42. function select(local i)
  43. turtle.select(i)
  44. end
Advertisement
Add Comment
Please, Sign In to add comment