Advertisement
jared314

Elevator Receiver - GalacticCraft

Jul 13th, 2014
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. while true do
  2. rednet.open("top")
  3. ID, msg, distance = rednet.receive()
  4.         if msg == "1" then
  5.         if rs.getOutput("left") then
  6.                     rs.setOutput("left", false)
  7.             else
  8.             rs.setOutput("left", true)
  9.         end
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement