Advertisement
Guest User

test

a guest
Nov 1st, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.82 KB | None | 0 0
  1. print("Please Insert an Ender Chest in the 16th slot")
  2. sleep(5)
  3. print("Now enter a length:")
  4. local x = read()
  5. print("Mining has started!")
  6.  
  7. function  tryForward()
  8.   if turtle.forward() == false then
  9.     turtle.dig()
  10.    end
  11. end
  12.  
  13. function refuel()
  14.     if turtle.getFuelLevel() < 100 then
  15.       for i = 1,16 do
  16.         turtle.select(i)
  17.         turtle.refuel(64)
  18.         turtle.select(1)
  19.       end
  20.    end
  21. end
  22.  
  23. function depositItems()
  24.    turnAround()
  25.    turtle.select(16)
  26.    turtle.place()
  27.      for i = 1,15 do
  28.        turtle.select(i)
  29.        turtle.drop()
  30.      end
  31.    turtle.select(16)
  32.    turtle.dig()
  33.    turtle.select(1)
  34.    turnAround()
  35. end
  36.  
  37. function turnAround()
  38.   turtle.turnRight()
  39.   turtle.turnRight()
  40. end
  41.  
  42. function right()
  43.   turtle.turnRight()
  44. end
  45.  
  46. function mainDig()
  47.   turtle.dig()
  48.   right()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement