SHOW:
|
|
- or go back to the newest paste.
1 | local component = require("component") | |
2 | local sides = require("sides") | |
3 | local os = require("os") | |
4 | local robot = require("robot") | |
5 | local inv = component.inventory_controller | |
6 | local red = component.redstone | |
7 | local pulsetime = 0.1 | |
8 | ||
9 | local function drop(slot) | |
10 | robot.select(slot) | |
11 | robot.dropDown() | |
12 | ||
13 | end | |
14 | ||
15 | ||
16 | while true do | |
17 | - | robot.select(1) |
17 | + | |
18 | robot.select(1) | |
19 | ||
20 | robot.use(sides.front,false) | |
21 | ||
22 | ||
23 | ||
24 | robot.dropDown() | |
25 | if robot.count(2)>0 or robot.count(3)>0 or robot.count(4) > 0 then | |
26 | os.sleep(0.1) | |
27 | for i = 1, 16 do --dropping all items | |
28 | drop(i) | |
29 | end | |
30 | ||
31 | ||
32 | ||
33 | os.sleep(0.1) | |
34 | ||
35 | ||
36 | end | |
37 | ||
38 | end | |
39 | ||
40 | ||
41 | os.sleep(1) | |
42 | ||
43 | ||
44 | end |