SHOW:
|
|
- or go back to the newest paste.
| 1 | - | os.loadAPI("tillapi")
|
| 1 | + | |
| 2 | - | tillapi.craftRefuel() |
| 2 | + | print("waiting for input signal")
|
| 3 | - | tillapi.homePositionDialog() |
| 3 | + | |
| 4 | - | |
| 4 | + | |
| 5 | - | |
| 5 | + | print("crafting...")
|
| 6 | - | tillapi.offsetGoTo(0,0,0) |
| 6 | + | for i=1,16 do |
| 7 | - | tillapi.craftRefuel() |
| 7 | + | turtle.select(i) |
| 8 | - | |
| 8 | + | turtle.dropDown() |
| 9 | end | |
| 10 | turtle.select(1) | |
| 11 | while turtle.getItemCount(1)==0 do | |
| 12 | - | shell.run("craft")
|
| 12 | + | redstone.setOutput("top",true)
|
| 13 | sleep(1) | |
| 14 | redstone.setOutput("top",false)
| |
| 15 | sleep(1) | |
| 16 | end | |
| 17 | turtle.select(16) | |
| 18 | turtle.craft() | |
| 19 | for i=1,16 do | |
| 20 | turtle.select(i) | |
| 21 | turtle.dropDown() | |
| 22 | end | |
| 23 | end | |
| 24 | end |