Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- monitor = peripheral.wrap("left")
- while true do
- id,message = rednet,receive()
- if id == 6 then
- if message == "on" then
- redstone.setOutput("back", true)
- monitor.clear
- monitor.setCursorPos(1,1)
- monitor.setTextScale(2)
- monitor.write("It is now ON")
- end
- if message == "off" then
- redstone.setOutput("back", false)
- monitor.clear
- monitor.setCursorPos(1,1)
- monitor.setTextScale(2)
- monitor.write("It is now OFF")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement