Glitchies

buckkit

Dec 5th, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. peripheral.wrap("right")
  2.  
  3. local tArgs = {...}
  4.  
  5. function buckkit()
  6.    turtle.select(1)
  7.    for i = 1, 15 do
  8.       if turtle.detectDown() == true then
  9.          turtle.forward()
  10.       else
  11.       turtle.placeDown()
  12.       turtle.forward()
  13.       end
  14.    end
  15. end
  16.  
  17.  
  18. function cleanup()
  19.    turtle.select(16)
  20.    turtle.placeDown()
  21.    for i = 1,15 do
  22.       turtle.select(i)
  23.       turtle.dropDown()
  24.    end
  25.    sleep(20)
  26.    turtle.select(1)
  27.    turtle.suckDown()
  28.    turtle.select(16)
  29.    turtle.digDown()
  30. end
  31.  
  32. if tArgs[1] == nil then tArgs[1] = 1 end
  33.  
  34. for i = 1,tArgs[1] do
  35.    buckkit()
  36.    cleanup()
  37. end
Advertisement
Add Comment
Please, Sign In to add comment