yzrhnd

Untitled

Oct 22nd, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 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. if turtle.getItemCount() == 0 then
  18. selectNum = turtle.getSelectedSlot()
  19. if selectNum == 16 then
  20. selectNum = 0
  21. end
  22. turtle.select(selectNum+1)
  23. end
  24. turtle.placeDown()
  25. turtle.forward()
  26. if i == num then
  27. turtle.turnRight()
  28. end
  29. end
  30. end
  31.  
  32. selectNum = turtle.getSelectedSlot()
  33. if selectNum == 16 then
  34. selectNum = 0
  35. end
  36. turtle.select(selectNum+1)
  37. turtle.forward()
  38. turtle.forward()
  39. turtle.forward()
  40. turtle.turnRight()
  41.  
  42. end
Advertisement
Add Comment
Please, Sign In to add comment