LITTLEJAMO

Turtle test

Oct 3rd, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. fuction dig()
  2. turtle.dig()
  3. turtle.digDown()
  4. turtle.digUp()
  5. end
  6.  
  7. function torch()
  8. turtle.select(15)
  9. turtle.placeDown()
  10. turtle.select(1)
  11.  
  12. print("torchs in slot 15")
  13. local x = 0
  14. term.write("How long?:")
  15. x = read()
  16. for i = 1, x do
  17. for i = 1, 5 do
  18. dig()
  19. end
  20. torch()
  21. end
Advertisement
Add Comment
Please, Sign In to add comment