Advertisement
Guest User

mine

a guest
Jun 17th, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1. function wells()
  2.   rs.setBundledOutput("bottom", colors.orange)
  3.   for i = 6,1,-1 do
  4.     sleep(1)
  5.     print(i)
  6.   end
  7.   rs.setBundledOutput("bottom", 0)
  8. end
  9.  
  10. function moveQuarry()
  11.   rs.setBundledOutput("bottom", colors.magenta)
  12.   sleep(3)
  13.   rs.setBundledOutput("bottom", 0)
  14.   checkMove()
  15. end
  16.  
  17. function checkMove()
  18.   turtle.turnRight()
  19.   local chest = turtle.detect()
  20.   turtle.turnLeft()
  21.   if chest then
  22.      clearBlockage()
  23.      moveQuarry()
  24.   end
  25. end
  26.  
  27. function clearBlockage()
  28.   rs.setBundledOutput("bottom", colors.lightBlue)
  29.   sleep(5)
  30.   rs.setBundledOutput("bottom", 0)
  31. end
  32.  
  33. function moveTurtle()
  34.   turtle.digDown()
  35.   while not turtle.forward() do
  36.      turtle.dig()
  37.   end
  38. end
  39.  
  40. turtle.placeDown()
  41. wells()
  42. sleep(2)
  43. moveQuarry()
  44. moveTurtle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement