Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function start()
- term.clear()
- os.pullEvent = os.pullEventRaw
- term.setTextColor(colors.green)
- term.setCursorPos(15, 1)
- print("Admin Monitor System")
- term.setTextColor(colors.white)
- term.setCursorPos(1, 2)
- end
- -- Change the right to any direction on the pc
- monitor = peripheral.wrap("top")
- --Sets the input of what the monitors going to say
- function input()
- term.clear()
- monitor.clear()
- start()
- term.setCursorPos(1, 2)
- print("What do you want to type in the Monitor:")
- input3 = read()
- monitor.setCursorPos(1, 1)
- monitor.write(input3)
- term.clear()
- term.setCursorPos(1, 1)
- end
- x, y = mon.getCursorPos()
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("Please Enter Password:")
- input = read("*")
- if input == "butts" then
- redstone.setOutput("back", true)
- sleep(5)
- redstone.setOutput("back", false)
- else print("You didn't say the magic word!")
- end
- end
- --Function calls
- start()
- os.sleep(1)
- input()
- os.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement