-- Mining turtle monitor V1.0.3-- -- To be used alongside StripMine1.7+ -- -- Designed for channels 1 onwards to be used -- -- Config -- Mside = "top" -- set to whatever side the modem is on the turtle Maxt = 7 -- set to number of turtles, have their channels set to their number -- Functions -- function cl() term.clear() term.setCursorPos(1,1) end -- Rednet -- modem = peripheral.wrap(Mside) open = rednet.isOpen() if open == false then cl() print("Opening modem...") rednet.open(Mside) end -- Main code while true do cl() sleep(0.5) print("Listening to channels...") for i = 1,Maxt do cl() print("Listening on channel: " .. i) modem.open(i) local side, Schn, Rchn, null, msg = os.pullEvent("modem_message") if os.pullEvent("modem_message") == true then cl() print(msg) end end end -- Main code