Advertisement
Guest User

startup

a guest
Mar 18th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. -- Program:
  2. --   startup
  3. -- Original program by Direwolf20
  4. -- Description
  5. --   Used to break and replace the keystone
  6. --   on the uberminer's AM2 gateway
  7. -- Hardware requirements
  8. --   1 mining turtle
  9.  
  10. -- Wait 1 second
  11. sleep(1)
  12. -- loop forever doing the following
  13. while true do
  14. -- see if there is any block below the turtle
  15.    if turtle.detectDown() then
  16.       -- if there is, ignore it and wait 5 seconds
  17.       sleep(5)
  18.    else
  19.       -- if there is not, move forward 1 step
  20.       turtle.forward()
  21.       -- break the block under the turtle
  22.       turtle.digDown()
  23.       -- wait 1 second
  24.       sleep(1)
  25.       -- put the block back under the turtle
  26.       turtle.placeDown()
  27.   end -- if..else
  28. end -- while
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement