Advertisement
Guest User

listen

a guest
Jun 1st, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. rednet.open("top")
  2. while true do
  3.   local sender, msg, prot = rednet.receive("music")
  4.   if msg == os.getComputerLabel() then
  5.     print("message received")
  6.     redstone.setOutput("back", true)
  7.     sleep(0.1)
  8.     redstone.setOutput("back", false)
  9.   end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement