Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local printer = peripheral.wrap("bottom")
- if printer.getPaperLevel() == 0 then
- error("There is no paper in the printer!")
- end
- if printer.getInkLevel() == 0 then
- error("There is no ink in the printer!")
- end
- if printer.newPage() then
- printer.setCursorPos(11, 2)
- printer.write("#")
- printer.setCursorPos(11, 3)
- printer.write("#")
- printer.setCursorPos(11, 4)
- printer.write("#")
- printer.setCursorPos(11, 5)
- printer.write("#")
- printer.setCursorPos(11, 6)
- printer.write("#")
- printer.setCursorPos(11, 7)
- printer.write("######")
- printer.setPageTitle("Lycodon")
- printer.endPage()
- else
- error("Page could not be created.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement