Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monSide
- for _, side in ipairs(rs.getSides()) do
- if peripheral.isPresent(side) and peripheral.getType(side) == "mon" then
- mon = side
- break
- end
- end
- if monSide then
- -- do stuff with the disk drive
- else
- error("No monitor found.")
- computer.turnOn()
- end
Advertisement
Add Comment
Please, Sign In to add comment