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("Spawn: ZFXX-O14-9G")
- printer.setCursorPos(1, 2)
- printer.write("Outlands: PE9E-ZWB-O0")
- printer.setCursorPos(1, 4)
- printer.write("tCRoC: P0E6-BZP-B4")
- printer.setCursorPos(1, 6)
- printer.write("Obama Island: DZED-O6H-MD")
- printer.setPageTitle("Stargate Addresses")
- printer.endPage()
- else
- error("Page could not be created.")
- end
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement