Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- function receive()
- id, msg, dis = rednet.receive()
- if msg == "open" then
- d, p, di = rednet.receive()
- if p == "microcorp" then
- redstone.setOutput("left",true)
- sleep(2)
- redstone.setOutput("left", false)
- os.reboot()
- end
- else
- os.reboot()
- end
- end
- while true do
- receive()
- sleep(.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement