Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Reciver
- --Wirelessmodem (currently at the top)
- rednet.open("top")
- --startmode (true = on; false = off)
- starton=false
- if starton == true then
- redstone.setOutput("back", true)
- end
- while true do
- event, id, message, distance = os.pullEvent("rednet_message")
- if message == "on" then
- redstone.setOutput("back", true)
- elseif message == "off" then
- redstone.setOutput("back", false)
- elseif message == "question" then
- if redstone.getOutput("back") == true then
- rednet.send(id,"on")
- else
- rednet.send(id,"off")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement