MagmaLP

Untitled

May 2nd, 2022 (edited)
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     for i = 2,6 do
  12.         printer.setCursorPos(11,i)
  13.         printer.write("#")
  14.     end
  15.     printer.setCursorPos(11,7)
  16.     printer.write("######")
  17.  
  18.     printer.setCursorPos(10,9)
  19.     printer.write("Lycodon")
  20.     printer.setCursorPos(2,10)
  21.     printer.write("Infonachricht hier hin")
  22.  
  23.     printer.setCursorPos(9,12)
  24.     printer.write("-Deutsch-")
  25.  
  26.     printer.setCursorPos(3,15)
  27.     printer.write("Zum BlΓ€ttern scrollen")
  28.     printer.setCursorPos(6,16)
  29.     printer.write("oder <-- und -->")
  30.  
  31.     printer.setPageTitle("Page 0")
  32.     printer.endPage()
  33. else
  34.     error("Page could not be created.")
  35. end
Add Comment
Please, Sign In to add comment