Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem = peripheral.wrap("bottom")
- modem.open(1)
- while true do
- event, p1, p2, p3, p4 = os.pullEvent()
- if (p4 == "offDoor") then
- os.shutdown()
- end
- if (p4 == "open") then
- rs.setOutput("top", true)
- sleep(5)
- rs.setOutput("top", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement