yzrhnd

Untitled

Oct 24th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. local num=4
  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.  
  31. if i == num then
  32. turtle.turnRight()
  33. end
  34. end
  35. end
  36.  
  37. turtle.back()
  38. turtle.turnLeft()
  39. turtle.forward()
  40. turtle.turnRight()
  41. num = num + 2
  42.  
  43. end
Advertisement
Add Comment
Please, Sign In to add comment