Advertisement
MagmaLP

2

May 2nd, 2022 (edited)
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.26 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(01,01)
  13.     printer.write("Inhaltsverzeichniss:")
  14.     printer.setCursorPos(01,02)
  15.     printer.write("~~~~~~~~~~~~~~~~~~~~")
  16.  
  17.     printer.setCursorPos(01,03)
  18.     printer.write("Lycodon Befehle.......4-6")
  19.     printer.setCursorPos(01,04)
  20.     printer.write("Reward-Crates...........7")
  21.     printer.setCursorPos(01,05)
  22.     printer.write("Maschinen und Upgrades..8")
  23.     printer.setCursorPos(01,06)
  24.     printer.write("HV-MV-LV-Transformer....9")
  25.     printer.setCursorPos(01,07)
  26.     printer.write("Funktion Transformer...10")
  27.     printer.setCursorPos(01,08)
  28.     printer.write("Slime Chunks/Spawner...11")
  29.     printer.setCursorPos(01,09)
  30.     printer.write(".........................")
  31.     printer.setCursorPos(01,10)
  32.     printer.write(".........................")
  33.     printer.setCursorPos(01,11)
  34.     printer.write(".........................")
  35.  
  36.  
  37.     printer.setCursorPos(17,21)
  38.     printer.write("Seite 02")
  39.  
  40.     printer.setPageTitle("Page 2")
  41.     printer.endPage()
  42. else
  43.     error("Page could not be created.")
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement