Plazter

Spawners

Mar 30th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local rec = 1724
  2. rednet.open("right")
  3. print(os.getComputerID())
  4. while true do
  5.     local id, msg, dist = rednet.receive()
  6.  
  7.         if id == 1724 then
  8.             if msg == "on" then
  9.             rs.setOutput("bottom", true)
  10.             print("on")
  11.             elseif msg == "off" then
  12.             rs.setOutput("bottom", false)
  13.             print("off")
  14.         end
  15.         end
  16. sleep(.5)
  17. end
Add Comment
Please, Sign In to add comment