SHOW:
|
|
- or go back to the newest paste.
1 | rednet.open("right") | |
2 | turtle.drop() | |
3 | while true do | |
4 | if(turtle.getItemCount(1)==9) then | |
5 | i = 11 | |
6 | while(i > 1) do | |
7 | if(i == 4) then | |
8 | i=3 | |
9 | end | |
10 | if(i == 8) then | |
11 | i=7 | |
12 | end | |
13 | turtle.transferTo(i,1) | |
14 | i = i-1 | |
15 | - | turtle.craft() |
15 | + | |
16 | if(turtle.craft())then | |
17 | rednet.broadcast("crafted!") | |
18 | end | |
19 | while(turtle.getItemCount(1)>0) do | |
20 | - | if(turtle.getItemCount(1) > 9) then |
20 | + | |
21 | - | turtle.dropUp(64) |
21 | + | rs.setRedstoneOutput("top",true) |
22 | end | |
23 | rs.setRedstoneOutput("top",false) | |
24 | end | |
25 | end | |
26 | sleep(0.1) | |
27 | end |