Advertisement
Guest User

TurtleCC

a guest
Aug 19th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. road = 0
  2. tunnel = 0
  3. torch_in_tunnel = 0
  4.  
  5. for road=1, 15 do
  6. for j=1, road do
  7. turtle.forward()
  8. end
  9. turtle.turnLeft()
  10. for tunnel=1, 30 do
  11. turtle.digUp()
  12. turtle.dig()
  13. turtle.digDown()
  14. while turtle.detectUp() do
  15. turtle.digUp()
  16. end
  17. if ((road == 1) or (road == 5) or (road == 10) or (road == 14)) then
  18. if ((torch_in_tunnel == 5) or (torch_in_tunnel == 10) or (torch_in_tunnel == 15) or (torch_in_tunnel == 20) or (torch_in_tunnel == 25)) then
  19. turtle.select(16)
  20. turtle.placeDown()
  21. end
  22. end
  23. torch_in_tunnel = torch_in_tunnel + 1
  24. turtle.forward()
  25. end
  26. turtle.turnLeft()
  27. turtle.turnLeft()
  28. turtle.select(15)
  29. while turtle.compare() == false do
  30. while turtle.detect() == true do
  31. turtle.dig()
  32. end
  33. turtle.forward()
  34. end
  35. turtle.turnRight()
  36. while turtle.detect() == false do
  37. turtle.forward()
  38. end
  39. for l=1 ,14 do
  40. turtle.select(l)
  41. turtle.drop()
  42. end
  43. turtle.turnRight()
  44. turtle.turnRight()
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement