Advertisement
Guest User

acraft9

a guest
Nov 27th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. function autoCraft()
  2.   count=math.floor(turtle.getItemCount(1) / 9)
  3.   print(count)
  4.  
  5.   turtle.select(1)
  6.   turtle.transferTo(2,count)
  7.   turtle.transferTo(3,count)
  8.   turtle.transferTo(5,count)
  9.   turtle.transferTo(6,count)
  10.   turtle.transferTo(7,count)
  11.   turtle.transferTo(9,count)
  12.   turtle.transferTo(10,count)
  13.   turtle.transferTo(11,count)
  14.   turtle.craft()
  15. end
  16.  
  17. while true do
  18.   turtle.select(1)
  19.   turtle.suck()
  20.   if turtle.getItemCount(1)>9 then
  21.     autoCraft()
  22.     for c=2,2 do
  23.       turtle.select(c)
  24.       turtle.dropDown()
  25.     end
  26.    
  27.   end
  28.   turtle.turnLeft()
  29.   turtle.turnRight()
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement