SHOW:
|
|
- or go back to the newest paste.
1 | local function drop() | |
2 | - | turtle.drop(1) |
2 | + | turtle.drop(4) |
3 | - | turtle.turnLeft() |
3 | + | turtle.turnLeft() |
4 | end | |
5 | local function pick() | |
6 | - | turtle.suck() |
6 | + | turtle.suck() |
7 | - | turtle.turnLeft() |
7 | + | turtle.turnLeft() |
8 | end | |
9 | - | while true do |
9 | + | |
10 | - | if turtle.suckDown(4) then |
10 | + | while true do |
11 | - | drop() |
11 | + | if redstone.getInput("top") == false then |
12 | - | drop() |
12 | + | if turtle.suckDown(16) then |
13 | - | drop() |
13 | + | drop() |
14 | - | drop() |
14 | + | drop() |
15 | - | sleep(3) |
15 | + | drop() |
16 | - | pick() |
16 | + | drop() |
17 | - | pick() |
17 | + | sleep(3) |
18 | - | pick() |
18 | + | pick() |
19 | - | pick() |
19 | + | pick() |
20 | - | turtle.dropDown(4) |
20 | + | pick() |
21 | - | else |
21 | + | pick() |
22 | - | sleep(30) |
22 | + | turtle.dropDown(16) |
23 | sleep(100) | |
24 | else | |
25 | sleep(300) | |
26 | end | |
27 | end | |
28 | end |