Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. modem = peripheral.wrap("top")
  2. modem.open(42)
  3.  
  4. while true do
  5. local event, modemside, senderchannel, replychannel, message, senderdistance = os.pullEvent("modem_message")
  6.  
  7. if message == "left on" then
  8. redstone.setOutput("left", true)
  9. else if message == "left off" then
  10. redstone.setOutput("left", false)
  11. else if message == "right on" then
  12. redstone.setOutput("right", true)
  13. else if message == "right off" then
  14. redstone.setOutput("right", false")
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement