Guest User

startup

a guest
Aug 27th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. function deploy()
  2.    turtle.select(1)
  3.    turtle.place()
  4. end
  5.  
  6. function clearInv()
  7.    for i = 1,10 do
  8.       turtle.select(i)
  9.       turtle.dropDown()
  10.    end
  11.    turtle.select(1)
  12. end
  13.  
  14. function getMiner()
  15.    turtle.select(1)
  16.    while turtle.getItemCount(1) > 0 do
  17.       clearInv()
  18.       sleep(1)
  19.    end
  20.    turtle.dig()
  21. end
  22.  
  23. deploy()
  24. for i = 1,6 do
  25.    sleep(2)
  26.    clearInv()
  27. end
  28. clearInv()
  29. getMiner()
  30. while true do
  31.   if redstone.getInput("back") == true then
  32.     print("Reset called!")
  33.    os.reboot()
  34.   end
  35.   sleep(1)
  36. end
Advertisement
Add Comment
Please, Sign In to add comment