Advertisement
MagmaLP

Lycodon-Grün

Dec 17th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. local printer = peripheral.wrap("bottom")
  2.  
  3. if printer.getPaperLevel() == 0 then
  4. error("There is no paper in the printer!")
  5. end
  6. if printer.getInkLevel() == 0 then
  7. error("There is no ink in the printer!")
  8. end
  9.  
  10. if printer.newPage() then
  11.  
  12. printer.setCursorPos(10, 9)
  13. printer.write("Lycodon")
  14. printer.setCursorPos(9, 10)
  15. printer.write("Quest Book")
  16.  
  17. printer.setPageTitle("Lycodon")
  18. printer.endPage()
  19. else
  20. error("Page could not be created.")
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement