Nicba1010 icon

Test

Nicba1010 | PRO | 04/21/15 03:35:57 PM UTC | 0 ⭐ | 454 👁️ | Never ⏰ | []
Lua |

590 B

|

None

|

0 👍

/

0 👎

local function wait30()
    sleep(30)
    print("Couldn't craft, not enough ingredients!");
end
 
local function getBlocks()
    local temporary = turtle.suck(64 - turtle.getItemCount())
    while temporary == false do
        sleep(1)
        temporary = turtle.suck(64 - turtle.getItemCount())
    end
end
 
while true do
  for i=1,3 do
    for j=1,3 do
      print((i-1)*4 + j)
      turtle.select((i-1)*4 + j)
      while turtle.getItemCount() < 64 do
        parallel.waitForAny(wait30, getBlocks)
      end
    end
  end
  turtle.craft()
  turtle.select(11)
  turtle.dropUp()
end

Comments