Advertisement
Guest User

aeg

a guest
Jan 24th, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. function trash()
  2.         turtle.select(1)
  3.         turtle.placeUp()
  4.         turtle.select(2)
  5.         turtle.dropUp()
  6. end
  7.  
  8. function up()
  9.   for i=1,8,1 do
  10.     turtle.digUp()
  11.     turtle.up()
  12.     sleep(0.5)
  13.   end
  14. end
  15.  
  16. function down()
  17.   for i=1,8,1 do
  18.     turtle.digDown()
  19.     turtle.down()
  20.   end
  21. end
  22.  
  23. function cycle()
  24.     up()
  25.     turtle.dig()
  26.     turtle.forward()
  27.     sleep(.1)
  28.     down()
  29.     trash()
  30.     sleep(0.001)
  31.     turtle.dig()
  32.     turtle.forward()
  33.     sleep(.1)
  34. end
  35.        
  36. while true do
  37.   cycle()
  38.   sleep(0.001)
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement