SHOW:
|
|
- or go back to the newest paste.
1 | local function wait30() | |
2 | sleep(30) | |
3 | print("Couldn't craft, not enough ingredients!"); | |
4 | end | |
5 | ||
6 | local function getBlocks() | |
7 | - | turtle.suck(64 - turtle.getItemCount()) |
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 |