yzrhnd

Untitled

Oct 22nd, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. local num=8
  2. local lim=100
  3. local count=0
  4. local selectnum=0
  5.  
  6. num = num-1
  7.  
  8. turtle.select(1)
  9.  
  10.  
  11. while 1==1 do
  12.  
  13. turtle.up()
  14.  
  15. for j=1,4 do
  16. for i=1,num do
  17.  
  18.  
  19.  
  20. if turtle.getItemCount() == 0 then
  21. selectNum = turtle.getSelectedSlot()
  22. if selectNum == 16 then
  23. selectNum = 0
  24. end
  25. turtle.select(selectNum+1)
  26. end
  27. turtle.placeDown()
  28. turtle.forward()
  29.  
  30. if i * 2 == num + 1 then
  31. if j == 1 or j == 2 then
  32. turtle.up()
  33. elseif j == 3 or j == 4 then
  34. turtle.down()
  35. end
  36. end
  37.  
  38.  
  39. if i == num then
  40. turtle.turnRight()
  41. end
  42. end
  43. end
  44.  
  45. selectNum = turtle.getSelectedSlot()
  46. if selectNum == 16 then
  47. selectNum = 0
  48. end
  49. turtle.select(selectNum+1)
  50. turtle.forward()
  51. turtle.forward()
  52. turtle.forward()
  53. turtle.turnRight()
  54.  
  55. end
Advertisement
Add Comment
Please, Sign In to add comment