Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Program:
- -- startup
- -- Original program by Direwolf20
- -- Description
- -- Used to break and replace the keystone
- -- on the uberminer's AM2 gateway
- -- Hardware requirements
- -- 1 mining turtle
- -- Wait 1 second
- sleep(1)
- -- loop forever doing the following
- while true do
- -- see if there is any block below the turtle
- if turtle.detectDown() then
- -- if there is, ignore it and wait 5 seconds
- sleep(5)
- else
- -- if there is not, move forward 1 step
- turtle.forward()
- -- break the block under the turtle
- turtle.digDown()
- -- wait 1 second
- sleep(1)
- -- put the block back under the turtle
- turtle.placeDown()
- end -- if..else
- end -- while
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement