Advertisement
DustinRosebery

switch_listener

Nov 25th, 2016
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. function listen()
  2. senderID, message, protocol = rednet.recieve()
  3. if message == "on" then
  4. redstone.setAnalogOutput("bottom", 0)
  5. else message == "off" then
  6. redstone.setAnalogOutput("bottom", 15)
  7. end
  8. end
  9.  
  10. while true do
  11. listen()
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement