Difference between revisions of "Printer"

From ComputerCraft Wiki
Jump to: navigation, search
m (Ported to Template:Block)
(Peripheral Functions)
Line 24: Line 24:
 
[[File:PrinterGUI.png|thumb|256px|GUI of the Printer]]
 
[[File:PrinterGUI.png|thumb|256px|GUI of the Printer]]
  
== Peripheral Functions ==
+
== See also ==
'''''printer'' stands for the variable you wrapped the printer to.'''
+
[[Printer (API)]]
''Example:'' printer = peripheral.wrap( "right" )
+
 
+
{| class="wikitable"
+
!style="background:#EEE" width="200px"|Method name
+
!style="background:#EEE" width="*"|Description
+
|-
+
|[[printer.newPage]]()
+
|Starts a new page. Returns true if page got started, false if not.
+
|-
+
|[[printer.endPage]]()
+
|Ends the page and prints the page to the output tray. Returns true if page was ended, false if not.
+
|-
+
|[[printer.write]](text)
+
|Writes text to the paper, works the same way as [[term.write|term.write()]]
+
|-
+
|[[printer.setPageTitle]](text)
+
|Sets the title of the page.
+
|-
+
|[[printer.getPaperLevel]]()
+
|Returns the amount of paper available in the paper tray.
+
|-
+
|[[printer.getInkLevel]]()
+
|Returns the amount of ink in the ink slot.
+
|-
+
|[[printer.getCursorPos]]()
+
|Returns the coordinates of the cursor on the paper, works the same way as [[term.getCursorPos|term.getCursorPos()]]
+
|-
+
|[[printer.setCursorPos]](x, y)
+
|Sets the cursor pos, works the same way as [[term.setCursorPos|term.setCursorPos()]]
+
|-
+
|[[printer.getPageSize]]()
+
|Returns the size of the paper, works the same way as [[term.getSize|term.getSize()]]
+
|}
+
  
 
[[Category:Blocks]][[Category:Peripherals]]
 
[[Category:Blocks]][[Category:Peripherals]]

Revision as of 10:11, 20 January 2013

Grid workbench.png   Printer
Iso Printer.png
Item ID 4094
Damage Value Un-used.
Peripheral? Yes

The printer was added in the ComputerCraft 1.42 update. The printer is placed next to a computer, and allows for printing text onto paper with any color of ink.


Recipe

stone

stone

stone

stone

Redstone

Ink_Sac

stone

stone

stone

printer



Usage

To use a printer, place it adjacently but not diagonally next to a computer (left, right, top, bottom, front, or back side). Place any color ink in the single left slot, and paper in any of the top slots.

If you are using blocks to pull/insert items from the printer the different slots are available from these sides: Paper tray is accessible from the top, output paper tray is accessible from the front or bottom, and the ink slot is accessible from the back or sides.

GUI of the Printer

See also

Printer (API)