Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local room = "1"
- local diskloaded = disk.isPresent("top")
- term.clear()
- term.setCursorPos(1,1)
- print("Awaiting Access Key")
- while true do
- if diskloaded=="true" then
- print("Loading Key")
- os.loadAPI( "disk/accesscode" )
- if room==accesscode.roomnumber then
- print("Key Correct")
- disk.eject("top")
- redstone.setOutput("right", true)
- sleep(2)
- redstone.setOutput("right", false)
- os.reboot()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement