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.

Error creating thumbnail: Unable to save thumbnail to destination
ExampleGet ink level
Get ink level and print it.
Code
local printer = peripheral.find("printer")
print(printer.getInkLeve())
Output
5