SHOW:
|
|
- or go back to the newest paste.
1 | - | I want to stop the loop at "until robot.durability()" if slot 1 on the robot is empty. |
1 | + | |
2 | - | Can I do 'until robot.durability() or if not getStackInInternalSlot()' ? |
2 | + | if robot.durability() < 0.2 then |
3 | - | Also, is there an easier way to select and drop the content of slot 2 to 11 ? |
3 | + | repeat |
4 | - | Thank you so much for your help. Almost done with this program. |
4 | + | robot.select(2) |
5 | - | |
5 | + | robot.drop() |
6 | robot.select(3) | |
7 | - | if not robot.durability() then |
7 | + | robot.drop() |
8 | - | robot.select(2) |
8 | + | robot.select(4) |
9 | - | robot.drop() |
9 | + | robot.drop() |
10 | - | robot.select(3) |
10 | + | robot.select(5) |
11 | - | robot.drop() |
11 | + | robot.drop() |
12 | - | robot.select(4) |
12 | + | robot.select(6) |
13 | - | robot.drop() |
13 | + | robot.drop() |
14 | - | robot.select(5) |
14 | + | robot.select(7) |
15 | - | robot.drop() |
15 | + | robot.drop() |
16 | - | robot.select(6) |
16 | + | robot.select(8) |
17 | - | robot.drop() |
17 | + | robot.drop() |
18 | - | robot.select(7) |
18 | + | robot.select(9) |
19 | - | robot.drop() |
19 | + | robot.drop() |
20 | - | robot.select(8) |
20 | + | robot.select(10) |
21 | - | robot.drop() |
21 | + | robot.drop() |
22 | - | robot.select(9) |
22 | + | robot.select(11) |
23 | - | robot.drop() |
23 | + | robot.drop() |
24 | - | robot.select(10) |
24 | + | robot.select(17) |
25 | - | robot.drop() |
25 | + | robot.transferTo(2) |
26 | - | robot.select(11) |
26 | + | c.craft(1) |
27 | - | robot.drop() |
27 | + | until robot.durability() == 1 |
28 | - | robot.select(17) |
28 | + | end |
29 | - | robot.transferTo(2) |
29 | + | end |