yzrhnd

Untitled

Oct 22nd, 2016
70
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. if i * 2 == num + 1 then
  19. if j == 1 or j == 2 then
  20. turtle.up()
  21. elseif j == 3 or j == 4 then
  22. turtle.down()
  23. end
  24.  
  25. end
  26.  
  27.  
  28. if turtle.getItemCount() == 0 then
  29. selectNum = turtle.getSelectedSlot()
  30. if selectNum == 16 then
  31. selectNum = 0
  32. end
  33. turtle.select(selectNum+1)
  34. end
  35. turtle.placeDown()
  36. turtle.forward()
  37. if i == num then
  38. turtle.turnRight()
  39. end
  40. end
  41. end
  42.  
  43. selectNum = turtle.getSelectedSlot()
  44. if selectNum == 16 then
  45. selectNum = 0
  46. end
  47. turtle.select(selectNum+1)
  48. turtle.forward()
  49. turtle.forward()
  50. turtle.forward()
  51. turtle.turnRight()
  52.  
  53. end
Advertisement
Add Comment
Please, Sign In to add comment