Advertisement
Mowmaster

FZ SortClusters and Put in Crystalizer

Aug 31st, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. t=peripheral.wrap("right")
  2.  
  3. local slot=0
  4. local time=0
  5.  
  6. function sortItems()
  7. for count=1,5 do
  8. turtle.select(count)
  9. while turtle.getItemCount(count)~=0 do
  10. if slot==0 then
  11.     turtle.transferTo(16,1)
  12.     slot=slot+1
  13.   elseif slot==1 then
  14.     turtle.transferTo(15,1)
  15.     slot=slot+1
  16.   elseif slot==2 then
  17.     turtle.transferTo(14,1)
  18.     slot=slot+1
  19.   elseif slot==3 then
  20.     turtle.transferTo(13,1)
  21.     slot=slot+1
  22.   elseif slot==4 then
  23.     turtle.transferTo(12,1)
  24.     slot=0
  25.   end
  26.   time=time+1
  27. end
  28. count=count+1
  29. end
  30. end
  31.  
  32. function dropItems()
  33. for c=0,4 do
  34.   turtle.select(12+c)
  35.   t.drop(1+c)
  36.   c=c+1
  37. end
  38. end
  39.  
  40. function suckItems()
  41. sleep(1260)
  42. turtle.select(6)
  43. t.suckSneaky(0)
  44. end
  45.  
  46. sortItems()
  47. dropItems()
  48. for timer=0,time do
  49. suckItems()
  50. timer=timer+1
  51. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement