Advertisement
mack29446

Lighting System WIS ON

Jan 11th, 2020
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. local h = fs.open("modemside", "r")
  2. modemside = h.readLine()
  3. print(modemside)
  4. h.close()
  5. local h = fs.open("lightid", "r")
  6. lightid = h.readLine()
  7. print(lightid)
  8. h.close()
  9.  
  10. rednet.open(modemside)
  11. myid = lightid
  12. while true do
  13.   id, message = rednet.receive("lighton")
  14.   if message == myid then
  15.     redstone.setOutput("front",true)
  16.   end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement