Advertisement
Guest User

Untitled

a guest
May 4th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. rednet.open("left")
  2. monitor = peripheral.wrap("left")
  3.  
  4. while true do
  5. id,message = rednet,receive()
  6. if id == 6 then
  7. if message == "on" then
  8. redstone.setOutput("back", true)
  9. monitor.clear
  10. monitor.setCursorPos(1,1)
  11. monitor.setTextScale(2)
  12. monitor.write("It is now ON")
  13. end
  14. if message == "off" then
  15. redstone.setOutput("back", false)
  16. monitor.clear
  17. monitor.setCursorPos(1,1)
  18. monitor.setTextScale(2)
  19. monitor.write("It is now OFF")
  20. end
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement