Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local printer = peripheral.wrap("left")
- if printer.getPaperLevel() == 0 then -- If there is no paper in the printer
- error("There is no paper in the printer!")
- end
- if printer.getInkLevel() == 0 then -- If there is no ink in the printer
- error("There is no ink in the printer!")
- end
- -- There is paper and ink in the printer, we can now print a page
- if printer.newPage() then
- printer.setCursorPos(1, 3)
- printer.write("Monolith1 -184,64,175,")
- printer.endPage()
- else
- error("Page could not be created.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement