Advertisement
Plazter

exploo

Sep 15th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. rednet.open("top")
  2. local args = {...}
  3.  
  4. local nr = tonumber(args[1])
  5. local side = "bottom"
  6.  
  7. while true do
  8. local id, msg = rednet.receive()
  9.  
  10. if id == nr then
  11. if msg == "spawner on" then
  12. rs.setOutput(side, true)
  13. end
  14.  
  15. if msg == "spawner off" then
  16. rs.setOutput(side, false)
  17. end
  18. end
  19. sleep(0.4)
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement