Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Computer at the door.
- Requires:
- Computer
- Monitor on top, 2 wide
- Disk drive behind
- Optional hopper
- Name 'startup' and reboot computer.
- ]]--
- mon = peripheral.wrap('monitor_1')
- mon.clear()
- mon.setCursorPos(1,1)
- if fs.exists('disk/password') then
- mon.write('Access Granted')
- disk.eject('right')
- redstone.setOutput('left', true)
- elseif fs.isDir('disk') then
- mon.write('Access Denied')
- disk.eject('right')
- end
- sleep(4)
- redstone.setOutput('left', false)
- mon.clear()
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement