LITTLEJAMO

Untitled

Oct 3rd, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. torchDist = 10
  2.  
  3. --Start of Torch stuff
  4. function placeTorch()
  5. print("Placing torch...")
  6. if turtle.getItemCount(3) == 1 then
  7. turtle.select(4) --Considering adding a method of returning home if no torches present in second slot
  8. turtle.place()
  9. else
  10. turtle.select(3)
  11. turtle.place()
  12. turtle.select(1)
  13. end
  14. torchDist = 1
  15. end
  16.  
  17. function needTorch()
  18. if torchDist == 10 then
  19. placeTorch()
  20. end
  21. end
  22. end
  23.  
  24. print("torchs in slot 15")
  25. local x = 0
  26. term.write("How long?:")
  27. x = read()
  28. for i = 1, x do
  29. for i = 1, 5 do
  30. turtle.dig()
  31. turtle.digDown()
  32. turtle.digUp()
  33. turtle.forward()
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment