Advertisement
szymski

Light Control

Jan 1st, 2014
98
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.  
  3. while true do
  4.     event, param1, msg, param3 = os.pullEvent()
  5.     if event=="rednet_message" then
  6.         if msg=="LIGHT ON" then
  7.             redstone.setOutput("back",true)
  8.         elseif msg=="LIGHT OFF" then
  9.             redstone.setOutput("back",false)
  10.         end
  11.     end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement