Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. print" "
  2. print" "
  3. print" "
  4. print"Starting In..."
  5. diameter=7
  6. depth=2
  7. count1=0
  8. count2=0
  9. count3=0
  10. count4=0
  11. count5=0
  12. count6=0
  13. count7=0
  14. tbtacoIsAwesome=true
  15. sleep(1)
  16. print"3..."
  17. sleep(1)
  18. print"2..."
  19. sleep(1)
  20. print"1..."
  21. sleep(1)
  22. print"GO!!!"
  23. while(count5<(depth-1)) do
  24. while(count4<(diameter)) do
  25. while(count1<(diameter-1)) do
  26. if(turtle.getFuelLevel()<7) then
  27. while(turtle.refuel(1)==false) do
  28. print " *Waits For Fuel*"
  29. sleep(1)
  30. end
  31. print " *Refueled*"
  32. end
  33. turtle.dig()
  34. if(turtle.forward()==false) then
  35. while(turtle.forward()==false) do
  36. print "Something Is Blocking Movement..."
  37. sleep(1)
  38. end
  39. end
  40. count1=count1+1
  41. end
  42. count4=count4+1
  43. if(count4>(diameter+1)) then
  44. turtle.turnRight()
  45. turtle.turnRight()
  46. turtle.digDown()
  47. if(turtle.down()==false) then
  48. while(turtle.down==false) do
  49. print "Can't Move Down Any..."
  50. sleep(1)
  51. end
  52. end
  53. count2=2
  54. count3=0
  55. count4=0
  56. count5=count5+1
  57. print "Starting Next Level..."
  58. end
  59. if(count2==0) then
  60. turtle.turnRight()
  61. turtle.dig()
  62. if(turtle.forward()==false) then
  63. while(turtle.forward()==false) do
  64. print "Something Is Blocking Movement..."
  65. sleep(1)
  66. end
  67. end
  68. turtle.turnRight()
  69. count3=1
  70. count4=count4+1
  71. end
  72. if(count2==1) then
  73. turtle.turnLeft()
  74. turtle.dig()
  75. if(turtle.forward()==false) then
  76. while(turtle.forward()==false) do
  77. print "Something Is Blocking Movement..."
  78. sleep(1)
  79. end
  80. end
  81. turtle.turnLeft()
  82. count3=0
  83. end
  84. count1=0
  85. count2=count3
  86. end
  87. end
  88. print "Done!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement