Advertisement
Guest User

startup

a guest
Oct 21st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. rednet.open("left")
  2.  
  3. while true do
  4. local id,command,pos = rednet.receive()
  5.   if command == "on" then
  6.     rs.setOutput("top", true)
  7.   end
  8.   if command == "off" then
  9.     rs.setOutput("top", false)
  10.   end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement