printer.getInkLevel

From ComputerCraft
Jump to navigation Jump to search

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