printer.getInkLevel

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

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

Returns the amount of ink.

ExampleExampleGet ink level
Get ink level and print it.
Code
local printer = peripheral.find("printer")
print(printer.getInkLeve())
Output
5