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