printer.getPaperLevel

From ComputerCraft
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

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

Returns the amount of paper in the printer.

ExampleExampleGet paper level
Get the paper level and print it.
Code
local printer = peripheral.find("printer")
print(printer.getPaperLevel())
Output
5