Advertisement
Nicba1010

Test

Apr 21st, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local function wait30()
  2.     sleep(30)
  3.     print("Couldn't craft, not enough ingredients!");
  4. end
  5.  
  6. local function getBlocks()
  7.     local temporary = turtle.suck(64 - turtle.getItemCount())
  8.     while temporary == false do
  9.         sleep(1)
  10.         temporary = turtle.suck(64 - turtle.getItemCount())
  11.     end
  12. end
  13.  
  14. while true do
  15.   for i=1,3 do
  16.     for j=1,3 do
  17.       print((i-1)*4 + j)
  18.       turtle.select((i-1)*4 + j)
  19.       while turtle.getItemCount() < 64 do
  20.         parallel.waitForAny(wait30, getBlocks)
  21.       end
  22.     end
  23.   end
  24.   turtle.craft()
  25.   turtle.select(11)
  26.   turtle.dropUp()
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement