Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local printer = peripheral.wrap("right")
- if printer.getPaperLevel() == 0 then -- If there is no paper in the printer
- error("There is no paper in the printer!")
- end
- if printer.getInkLevel() == 0 then -- If there is no ink in the printer
- error("There is no ink in the printer!")
- end
- -- There is paper and ink in the printer, we can now print a page
- if printer.newPage() then
- printer.write("Ahoj TrithCZ :) :)")
- printer.setCursorPos(1, 3)
- printer.write("Tady Scherry,")
- printer.setCursorPos(1, 4)
- printer.write("Doufam, ze se ti dnes")
- printer.setCursorPos(1, 5)
- printer.write("dari skvele v Minecraftu!")
- printer.setCursorPos(1, 6)
- printer.write("Preji ti spoustu zabavy a kreativity.")
- printer.setCursorPos(1, 7)
- printer.write("Mej se skvele a")
- printer.setCursorPos(1, 7)
- printer.write("uzivej si hrani!")
- printer.setPageTitle("Prani")
- printer.endPage()
- else
- error("Page could not be created.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement