Advertisement
Guest User

startup

a guest
Jan 24th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. function up()
  2.   for i=1,8,1 do
  3.     turtle.digUp()
  4.     turtle.up()
  5.     sleep(0.5)
  6.   end
  7. end
  8.  
  9. function down()
  10.   for i=1,8,1 do
  11.     turtle.digDown()
  12.     turtle.down()
  13.   end
  14. end
  15.  
  16. function
  17.  
  18. while true do
  19.   up()
  20.   turtle.dig()
  21.   turtle.forward()
  22.   sleep(.1)
  23.   down()
  24.   turtle.dig()
  25.   turtle.forward()
  26.   sleep(.1)
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement