Advertisement
GooGoo

ComputerCraft Stairs Cleanup Turtle Program

Oct 29th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. -- This program is no longer needed. Just grab the stairs program below.
  2. -- place at the top most face block after you run ComputerCraft Stair Turtle Program
  3. -- pastebin get t6kdBeq0 stairs
  4.  
  5. local tArgs = { ... }
  6.  
  7. if #tArgs ~= 1 then
  8.     print( "Usage: cleanupstairs <amount>" )
  9.     return
  10. end
  11.  
  12. local amount = tonumber(tArgs[1])
  13. local back = amount + 1
  14.  
  15. local torch = 15-- put number of torch slot
  16.  
  17. for i = 1, amount do
  18.         while not turtle.detectDown() do
  19.             turtle.dig()
  20.             turtle.down()
  21.             turtle.forward()
  22.         end
  23. end
  24.  
  25. sleep(2)
  26. turtle.up()
  27. sleep(2)
  28. turtle.turnRight()
  29. sleep(2)
  30. turtle.turnRight()
  31. sleep(2)
  32.  
  33. for i = 1, back do
  34.     turtle.up()
  35.     turtle.forward()
  36.     turtle.up()
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement