Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- i = 1
- function moveFrame()
- if not rs.getInput("bottom") then
- rs.setOutput("top", true)
- sleep(0.5)
- rs.setOutput("top", false)
- end
- end
- function mine()
- if not rs.getInput("bottom") then
- rs.setOutput("left", true)
- sleep(20)
- rs.setOutput("left", false)
- end
- end
- while true do
- if rs.getInput("right") then
- moveFrame()
- mine()
- print("Durchgang ".. i)
- i = i + 1
- else
- sleep(3)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement