SHOW:
|
|
- or go back to the newest paste.
1 | - | function DROP(dropslot, top_bottom) |
1 | + | Creation = fs.open("disk/turt_answer", "w") |
2 | - | turtle.select(dropslot) |
2 | + | Creation.writeLine(0) |
3 | - | if top_bottom == 1 then |
3 | + | Creation.close() |
4 | - | turtle.dropUp(1) |
4 | + | TurtState = fs.open("disk/turt_state", "w") |
5 | - | else |
5 | + | TurtState.writeLine(0) |
6 | - | turtle.dropDown(1) |
6 | + | TurtState.close() |
7 | - | end |
7 | + | TurtAsk = fs.open("disk/turt_ask", "w") |
8 | TurtAsk.writeLine(0) | |
9 | - | function SUCK(top_bottom) |
9 | + | TurtAsk.close() |
10 | - | for slot=1,4 do |
10 | + | Creation = fs.open("disk/reactor_data", "w") |
11 | - | turtle.select(slot) |
11 | + | Creation.writeLine(6) |
12 | - | if top_bottom == 1 then |
12 | + | for i=1,6 do |
13 | - | turtle.suckUp() |
13 | + | Creation.writeLine(9999) |
14 | - | else |
14 | + | Creation.writeLine(0) |
15 | - | turtle.suckDown() |
15 | + | Creation.writeLine(1) |
16 | - | end |
16 | + | Creation.writeLine(0) |
17 | - | end |
17 | + | Creation.writeLine(1) |
18 | end | |
19 | - | function GET_RID_OF() |
19 | + | Creation.close() |