Advertisement
Rusettsten

RailClient

May 2nd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. --RailClient Version 1.0 5/2/2017
  2.  
  3. rednet.open("bottom")
  4. servID, command = rednet.receive();
  5.  
  6. if command == "open" then
  7.     redstone.setOutput("back", true)
  8. end
  9. if command == "close" then
  10.     redstone.setOutput("back",false)
  11. end
  12. if command == "status" then
  13.     rednet.send(servID,online);
  14. end
  15.  
  16. shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement