SHOW:
|
|
- or go back to the newest paste.
| 1 | - | digtime = 40 |
| 1 | + | -- Created by CyaNox |
| 2 | ||
| 3 | digtime = 60 | |
| 4 | recovertime = 5 | |
| 5 | - | if redstone.getInput("left") then
|
| 5 | + | |
| 6 | while true do | |
| 7 | - | redstone.setOutput("back", true)
|
| 7 | + | if redstone.getInput("top") then
|
| 8 | -- dig first | |
| 9 | rs.setOutput("left", true)
| |
| 10 | - | redstone.setOutput("back", false)
|
| 10 | + | |
| 11 | -- stop digging and recover miners | |
| 12 | rs.setOutput("left", false)
| |
| 13 | - | redstone.setOutput("right", true)
|
| 13 | + | |
| 14 | -- Move frame machine | |
| 15 | - | redstone.setOutput("right", false)
|
| 15 | + | rs.setOutput("right", true)
|
| 16 | sleep(0.4) | |
| 17 | rs.setOutput("right", false)
| |
| 18 | - | if redstone.getInput("left") then
|
| 18 | + | |
| 19 | - | redstone.setOutput("back", true)
|
| 19 | + | |
| 20 | if rs.getInput("top") then
| |
| 21 | rs.setOutput("left", true)
| |
| 22 | - | redstone.setOutput("front", true)
|
| 22 | + | |
| 23 | -- Inchworm second motor | |
| 24 | - | redstone.setOutput("front", false)
|
| 24 | + | rs.setOutput("back", true)
|
| 25 | sleep(0.4) | |
| 26 | rs.setOutput("back", false)
| |
| 27 | sleep(0.4) | |
| 28 | end | |
| 29 | sleep(0.4) | |
| 30 | end |