Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local h = fs.open("modemside", "r")
- modemside = h.readLine()
- print(modemside)
- h.close()
- local h = fs.open("lightid", "r")
- lightid = h.readLine()
- print(lightid)
- h.close()
- rednet.open(modemside)
- myid = lightid
- while true do
- id, message = rednet.receive("lighton")
- if message == myid then
- redstone.setOutput("front",true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement