Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- local open = rednet.send(3,"Open")
- local close = rednet.send(3, "Close")
- term.clear()
- term.setTextColor(colors.white)
- term.setCursorPos(4,1)
- print("!Vault Door Control!")
- term.setCursorPos(5,3)
- term.setBackgroundColor(colors.lime)
- print("Open")
- term.setCursorPos(18,3)
- term.setBackgroundColor(colors.red)
- print("Close")
- while true do
- event, parm1, x, y = os.pullEvent("mouse_click")
- print(x..y)
- if x > 5 and x < 8 and y == 2 then
- term.write("hello")
- rednet.send(3,"Open")
- term.print("open")
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement