←  Peripherals and Turtle Upgrades

ComputerCraft | Programmable Computers for Minecraft

»

printer peripheral [CC 1.48/1.481][MC 1.4....

louitzie's Photo louitzie 28 May 2012

this mod adds a printer wich can print on paper

here are some screenshots

Posted Image
Posted Image
Posted Image
Posted Image

here are the methods
printer.open(side)
printer.drawPixel(x,y[,color(0-55)])
printer.drawChar(x,y,char[,color(0-55)]) see color table
printer.drawText(x,y,text[,color(0-55)]) see characters inclued in api (yellow)
printer.clear(x,y)
printer.getInklevels() returns red,green,blue
printer.getCapacity() returns an ink level when full
printer.eject()
printer.scanPixel(x,y) (if not disabled in config)
printer.scanChar(x,y) (if not disabled in config)
printer.scanText(x,y[,length]) (if not disabled in config)
printer.getContent() (map,paper,printed paper or no content) (if not disabled in config)
printer.close()

scanner.open(side)
scanner.scanPixel(x,y)
scanner.scanChar(x,y)
scanner.scanText(x,y[,length])
scanner.getContent() (map,paper,printed paper or no content)
scanner.close()

scanner recipe

SSS
WLW
SSS

S=stone
W=redstone dust
L=redstone lamp

download

universal

ccPrinter 1.4.6_r1
put in mods folder and extract the ccPrinterApis folder to mods

SSP

CCPrinter_Client 1.6
CCPrinter_Client 1.5
CCPrinter_Client 1.4

SMP

CCPrinter_Server 1.6
CCPrinter_Server 1.5
CCPrinter_Server 1.4

Bukkit

bukkit port 1.4
bukkit port 1.5 thanks to xackerz (make sure you use java 7)


updated version press sneak while clicking on printer with useable item to put
press sneak without held item to get item.
right click while paper use to switch side

i added master39's improved edit in the download it is loaden in /edit
Quote

Pinkishu's Photo Pinkishu 28 May 2012

oh wow i wanted that forever <3

now just to wait for the SMP version
Quote

maxikg's Photo maxikg 28 May 2012

Great idea! I hope for an SMP-Version. :)/>
Quote

Xfel's Photo Xfel 28 May 2012

Great work! Only thing I noticed that the background of the green slot looks more like it needs lime dye than the dark cactus green dye, while the other colors match very well.
Quote

louitzie's Photo louitzie 28 May 2012

maybe i'll fix that when SMP is ready
Quote

Mendax's Photo Mendax 28 May 2012

:)/> OMFG All you need now, is a book version when 1.3 comes out, capitals in the title and to upload to mediafire or something like it. Dropbox's links get frozen after a while.
EDIT: This is gonna be supported in my tex pack :)/>
Quote

Mendax's Photo Mendax 28 May 2012

I made a little screenshot:
Posted Image
Quote

Noodle's Photo Noodle 28 May 2012

WOW! Very nice, I like paper, what other point does this bring besides words and stuff?
Quote

louitzie's Photo louitzie 29 May 2012

nice to see that people use this mod

i'll see for mediafire

unfortunately multiplayer support seems to take longer than i tought
Quote

PixelToast's Photo PixelToast 29 May 2012

oh lol, just made two duplicate sheets with the same damage value and made a program to print scrolling ascii art
Quote

chuiby's Photo chuiby 30 May 2012

Hopefully the SMP version will come soon :)/>
This mod have a lot of potential.
Good job, awesome idea!
Quote

Noodle's Photo Noodle 30 May 2012

I'm actually excited to see it come out for smp, I can now Yell at people, IN SILENCE.
Quote

Kane Hart's Photo Kane Hart 31 May 2012

Very cool, I hope someday this is ported to SMP then ported to bukkit because Godcraft would love a mod like this.
Quote

DerrikeG's Photo DerrikeG 31 May 2012

It'd be nice to have an accompanying scanner block to read sheet contents so that documents could be duplicated at their appropriate expense. If this functionality does come about, it would be insanely useful to have it extend to the vanilla maps.
Quote

louitzie's Photo louitzie 31 May 2012

finaly after 3 days of work I made an SMP Version.
Enjoy it
Quote

Mendax's Photo Mendax 31 May 2012

:)/> SMP And Ideas for a scanner! Downloading...
Quote

kazagistar's Photo kazagistar 01 Jun 2012

This is by far my favorite periphrial so far. Fits the vision for this mod very nicely, and fits a niche that no other tech mod fills

Just wait for 1.3, then port it, when server and client are the same thing. And see if you can't get it to print books instead of papers at that point.

Then you just need to send it off to the tekkit dudes.
Quote

Matthewaj's Photo Matthewaj 01 Jun 2012

Everytime I use printer.drawchar(x,y,char)
it just gives me a sort of squarish "0"

printer.drawchar(5,5,"hi")
Quote

coolblockj's Photo coolblockj 01 Jun 2012

Lol, this may be a stupid question, but what is the point for peripheral.call(side,draw,x,y,color) or where does it go in your program to change text color?

Also, are you limited to printing letter by letter?
Quote

louitzie's Photo louitzie 01 Jun 2012

1 the drawchar function parameters are x,y,(only one character),color(didn't mention that)

2 currently you are but you can write your own algoritm the size is 21x13 chars or 128x119 pixels

3 yoy can add your own characters in the lua.api

for example
char["A"]="(row 1)01110(row 2)10001(row 3)11111(row 4)10001(row 5)10001(row 6)10001(row 7)10001(row 8)00000"

1=pixel
0=transparent
Quote