SHOW:
|
|
- or go back to the newest paste.
1 | ||
2 | function drop_coal() | |
3 | - | if(coal==0) then |
3 | + | |
4 | - | turtle.select(turtle.getSelectedSlot()+1) |
4 | + | if(coal<10) then |
5 | - | drop_coal() |
5 | + | turtle.suckUp(55) |
6 | turtle.drop(1) | |
7 | - | turtle.drop(1) |
7 | + | else |
8 | turtle.drop(1) | |
9 | end | |
10 | end | |
11 | ||
12 | while true do | |
13 | - | drop_coal() |
13 | + | |
14 | - | os.sleep(0.3) |
14 | + | drop_coal() |
15 | os.sleep(0.1) | |
16 | - | os.sleep(5) |
16 | + | |
17 | os.sleep(0.3) | |
18 | print("wait 1") | |
19 | end | |
20 | end |