nomnuggetnom

Mining Age

Sep 7th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.82 KB | None | 0 0
  1. function goForward()
  2.     while not turtle.forward() do
  3.         print("get out of my WAAAAAAAAY!")
  4.         turtle.dig()
  5.         turtle.attack()
  6.     end
  7.     if turtle.getItemCount(1) == 1 then
  8.         sleep(10000000)
  9.     end
  10. end
  11.  
  12. --[[
  13. -- Get to the first block
  14. for i=1,62 do   goForward() end
  15. ]]--
  16. function markQuarry()
  17.     print("Marking")
  18.  
  19.     turtle.digDown()
  20.     turtle.placeDown()
  21.     turtle.turnLeft()
  22.    
  23.     -- Get to the far block
  24.     for i=1,63 do   goForward() end
  25.  
  26.     turtle.digDown()
  27.     turtle.placeDown()
  28.     turtle.turnLeft()
  29.     turtle.turnLeft()
  30.  
  31.     -- Get back to the first
  32.     for i=1,63 do   goForward() end
  33.     turtle.turnLeft()
  34.  
  35.     -- Get to the last
  36.     for i=1,63 do   goForward() end
  37.     turtle.digDown()
  38.     turtle.placeDown()
  39.  
  40.     -- Get to the next spot
  41.     for i=1,4 do    goForward() end
  42. end
  43.  
  44. -------------
  45. while true do
  46. -------------
  47. markQuarry()
  48.  
  49. ---
  50. end
  51. ---
Advertisement
Add Comment
Please, Sign In to add comment