SHOW:
|
|
- or go back to the newest paste.
1 | while true do | |
2 | - | rs.setOutput('left',true) |
2 | + | sleep(1) |
3 | - | sleep(1) |
3 | + | rs.setBundledOutput('right',colors.green) |
4 | - | rs.setOutput('left',false) |
4 | + | sleep(1) |
5 | - | for i=5,1,-1 do |
5 | + | rs.setBundledOutput('right',0) |
6 | - | print(i) |
6 | + | for i=10,1,-1 do |
7 | - | sleep(1) |
7 | + | print(i) |
8 | - | end |
8 | + | sleep(1) |
9 | - | rs.setOutput('right',true) |
9 | + | end |
10 | - | sleep(1) |
10 | + | chest = peripheral.wrap('left') |
11 | - | rs.setOutput('right',false) |
11 | + | print('sleep') |
12 | - | print('retrying!') |
12 | + | while not chest.getStackInSlot(1) do |
13 | - | sleep(1) |
13 | + | sleep(5) |
14 | end | |
15 | rs.setBundledOutput('right',colors.red) | |
16 | sleep(1) | |
17 | rs.setBundledOutput('right',0) | |
18 | print('retrying!') | |
19 | end |