MagmaLP

9

May 3rd, 2022 (edited)
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.34 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("HV-MV-LV-Transformer:")
  14.     printer.setCursorPos(01,02)
  15.     printer.write("~~~~~~~~~~~~~~~~~~~~~~~")
  16.  
  17.     printer.setCursorPos(01,03)
  18.     printer.write("MFSU und HV Solarpanel")
  19.     printer.setCursorPos(01,04)
  20.     printer.write("Output = High Voltage")
  21.     printer.setCursorPos(01,06)
  22.     printer.write("MFE und MV Solarpanel")
  23.     printer.setCursorPos(01,07)
  24.     printer.write("Output = Medium Voltage")
  25.     printer.setCursorPos(01,09)
  26.     printer.write("Batbox und LV/Solarpanel")
  27.     printer.setCursorPos(01,10)
  28.     printer.write("Output = Low Voltage")
  29.     printer.setCursorPos(01,12)
  30.     printer.write("Transform. von HV zu MV:")
  31.     printer.setCursorPos(01,13)
  32.     printer.write("-> MV Transformer")
  33.     printer.setCursorPos(01,15)
  34.     printer.write("Transform. von MV zu LV:")
  35.     printer.setCursorPos(01,16)
  36.     printer.write("-> LV Transformer")
  37.  
  38.     printer.setCursorPos(17,21)
  39.     printer.write("Seite 09")
  40.  
  41.     printer.setPageTitle("Page 9")
  42.     printer.endPage()
  43. else
  44.     error("Page could not be created.")
  45. end
Add Comment
Please, Sign In to add comment