Oebele

Receiver Program

Jul 26th, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. rednet.open("right")
  2. while true do
  3. id,msg = rednet.receive()
  4. print(msg)
  5. if (msg == "up") then
  6. redstone.setOutput("top", true)
  7. redstone.setOutput("bottom", false)
  8. elseif (msg == "down") then
  9. redstone.setOutput("top", false)
  10. redstone.setOutput("bottom", true)
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment