yzrhnd

yoko_hori

Dec 16th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. local num=3
  2. local lim=100
  3. local count=0
  4.  
  5. while 1==1 do
  6. for j=1,num do
  7. for i=1,num do
  8. turtle.dig()
  9. if i ~= num then
  10. turtle.up()
  11. end
  12. end
  13.  
  14. for i=1,num-1 do
  15. turtle.down()
  16. end
  17. if j ~=num then
  18. turtle.turnRight()
  19. turtle.forward()
  20. turtle.turnLeft()
  21. end
  22.  
  23. if j==num then
  24. turtle.turnLeft()
  25. for i=1,num-1 do
  26. turtle.forward()
  27. end
  28. turtle.turnRight()
  29. turtle.forward()
  30. end
  31. end
  32. count = count+1
  33.  
  34. end
Advertisement
Add Comment
Please, Sign In to add comment