Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- n = nil
- rednet.open("right")
- modem = peripheral.wrap("right")
- function digg()
- turtle.dig()
- turtle.digUp()
- turtle.forward()
- if rs.getInput("bottom") == true then
- n = 1
- end
- end
- function getMsg()
- ID, msg = rednet.receive()
- if msg == "stop" then
- n = 1
- print("Waiting ...")
- end
- end
- while n == nil do
- parallel.waitForAny(digg,getMsg)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement