Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- digtime = 40
- recovertime = 5
- while true do
- if redstone.getInput("left") then
- -- dig first
- redstone.setOutput("back", true)
- sleep(digtime)
- -- stop digging and recover miners
- redstone.setOutput("back", false)
- sleep(recovertime)
- -- Move frame machine
- redstone.setOutput("right", true)
- sleep(0.4)
- redstone.setOutput("right", false)
- sleep(0.8)
- -- Check if still on and enable digging if so
- if redstone.getInput("left") then
- redstone.setOutput("back", true)
- end
- -- Inchworm second motor
- redstone.setOutput("front", true)
- sleep(0.4)
- redstone.setOutput("front", false)
- sleep(0.4)
- end
- sleep(0.4)
- end
Advertisement
Add Comment
Please, Sign In to add comment