printer.getPaperLevel

From ComputerCraft
Jump to navigation Jump to search

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