Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- mon = peripheral.wrap("top")
- p = peripheral.wrap("bottom")
- print("Please right click the Player Detector.")
- mon.clear()
- mon.setCursorPos(6,2)
- mon.write("Please right click the Player Detector.")
- mon.setCursorPos(8,3)
- mon.write("(The box below the computer)")
- a, b = os.pullEvent()
- if b == "Shivy011" then
- print("Welcome "..b.."!")
- mon.clear()
- mon.setCursorPos(18,2)
- mon.write("Welcome "..b.."!")
- redstone.setOutput("left", true)
- sleep (5)
- mon.clear()
- redstone.setOutput("left", false)
- else
- mon.clear()
- mon.setCursorPos(8,2)
- mon.write("Unauthorised Player - Go away "..b)
- print("Wrong Player - GO AWAY "..b)
- sleep(10)
- end
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement