printer.getPaperLevel

printer.getPaperLevel
Function
Syntax
printer.getPaperLevel()
Returns number paperAmount
API printer
Source CC:Tweaked (source)

Returns the amount of paper in the printer.

ExampleGet paper level
Get the paper level and print it.
Code
<nowiki>
local printer = peripheral.find("printer")
print(printer.getPaperLevel())
    </nowiki>
Output
5
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.