Advertisement
Overcontrol1

Door Client

Jan 8th, 2023 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. local SERVER_ID = 6
  2.  
  3. rednet.open("back")
  4.  
  5. function Main()
  6. term.clear()
  7. print("Open or close")
  8.  
  9. local Input = string.lower(read());
  10. if Input == "open" then
  11. rednet.send(SERVER_ID, {"door", true})
  12. elseif Input == "close" then
  13. rednet.send(SERVER_ID, {"door", false})
  14. end
  15.  
  16. Main()
  17. end
  18.  
  19. Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement