printer.getInkLevel

printer.getInkLevel
Function
Syntax
printer.getInkLevel()
Returns number inkAmount
API printer
Source CC:Tweaked (source)

Returns the amount of ink.

ExampleGet ink level
Get ink level and print it.
Code
<nowiki>
local printer = peripheral.find("printer")
print(printer.getInkLeve())
    </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.