Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PORT = 47842
- local modem = peripheral.wrap("left") -- wireless modem side
- local reader = "top" -- thermal monitor side
- modem.open(PORT)
- while true do
- term.clear()
- if redstone.getInput(reader) then
- modem.transmit(PORT, PORT, "WARNING")
- print("WARNING")
- else
- modem.transmit(PORT, PORT, "CLEAR")
- print("CLEAR")
- end
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment