Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. term.clear()
  2. print('Welcome to the Obsidian Miner 2000')
  3. print('Place an empty bucket in the first slot. This will be used by the turtle to refuel itself.')
  4. print('It will finish a row, and turn to the right one. Place the turtle correctly.')
  5. print('How far do you want it to go per row? [It will do 4 rows]')
  6. length = read()
  7.  
  8. function RotationRight()
  9. for i = 1,length do
  10. turtle.placeDown()
  11. turtle.refuel()
  12. turtle.dig()
  13. turtle.forward()
  14. end
  15. turtle.turnRight()
  16. turtle.dig()
  17. turtle.forward()
  18. turtle.turnRight()
  19. end
  20.  
  21. function RotationLeft()
  22. for i = 1,length do
  23. turtle.placeDown()
  24. turtle.refuel()
  25. turtle.dig()
  26. turtle.forward()
  27. end
  28. turtle.turnLeft()
  29. turtle.dig()
  30. turtle.forward()
  31. turtle.turnLeft()
  32. end
  33.  
  34. function Platform()
  35. turtle.up()
  36. turtle.select(2)
  37. turtle.placeDown()
  38. turtle.select(1)
  39. end
  40.  
  41. turtle.digDown()
  42. turtle.down()
  43.  
  44. RotationRight()
  45. RotationLeft()
  46. RotationRight()
  47. RotationLeft()
  48. Platform()
  49.  
  50. term.clear()
  51. print('Thank you for using the Obsidian Miner 2000!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement