Advertisement
Guest User

startup

a guest
Apr 24th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. while true do
  2.   modem = peripheral.wrap("bottom")
  3.   rednet.open("bottom")
  4.   id, message = rednet.receive()
  5.   if message == "open" then
  6.     redstone.setOutput("top",false)
  7.   elseif message == "close" then
  8.     redstone.setOutput("top",true)
  9.   end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement