Advertisement
TechManDylan

command receiver

Jun 20th, 2023 (edited)
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. rednet.open("top")
  2. rednet.channel = 1
  3.  
  4.  
  5. while true do
  6. local senderId, message = rednet.receive("1")
  7.  
  8. if message == "on" then
  9. rs.setOutput("bottom", true)
  10. elseif message == "off" then
  11. rs.setOutput("bottom", false)
  12. end
  13. end
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement