Posted 20 December 2014 - 02:21 AM
I present to you, the most ugly, shoddily-textured peripheral of all time… CCBarcodes!
Yeah, whatever, right? Not quite; this peripheral allows you to plop an item into the scanner block (conveniently provided) and scan away!
But let's get some documentation. And some pictures. And probably some downloads. Maybe even the source.
Documentation
Screenshots
Downloads and source code
Source code: https://github.com/Tiin57/ccbarcodes
Credits
shadekiller666 and terraflops on #minecraftforge for walking me through the newer Forge conventions and features
Please, for the love of all things update-y, tell me if it crashes or if it doesn't work or if you want something different. I'll do my best to accommodate any requests and fix any bugs.
Yeah, whatever, right? Not quite; this peripheral allows you to plop an item into the scanner block (conveniently provided) and scan away!
But let's get some documentation. And some pictures. And probably some downloads. Maybe even the source.
Documentation
Spoiler
local scanner = peripheral.wrap("right")
local itemName, itemCount = scanner.scan()
The itemName return value is simply the "unlocalized" item name, as seen in the internal code of Minecraft. For instance, calling scan() with a computer in the scanner returns
"tile.computercraft:computer", 1
Screenshots
Spoiler
Downloads and source code
Spoiler
1.0 for MC 1.7.10 and CC 1.65: http://dl.tiin57.net...arcodes-1.0.jarSource code: https://github.com/Tiin57/ccbarcodes
Credits
Spoiler
Lyqyd and theoriginalbit on #computercraft for being patient with my NBT idiocyshadekiller666 and terraflops on #minecraftforge for walking me through the newer Forge conventions and features
Please, for the love of all things update-y, tell me if it crashes or if it doesn't work or if you want something different. I'll do my best to accommodate any requests and fix any bugs.
Edited on 20 December 2014 - 01:01 PM