Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("bottom")
- modem.open(1)
- while true do
- local e, ms, sc, rc, msg, sd = os.pullEvent("modem_message")
- if (msg == "stop") then modem.closeAll()
- elseif (msg == "open_outside_door") then redstone.setOutput("back", true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement