This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Tiin57's profile picture

[MC 1.7.10 / CC 1.65] CCBarcodes - Scan items and get things and stuff!

Started by Tiin57, 20 December 2014 - 01:21 AM
Tiin57 #1
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
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
Spoiler1.0 for MC 1.7.10 and CC 1.65: http://dl.tiin57.net...arcodes-1.0.jar
Source code: https://github.com/Tiin57/ccbarcodes

Credits
SpoilerLyqyd and theoriginalbit on #computercraft for being patient with my NBT idiocy
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.
Edited on 20 December 2014 - 01:01 PM
ByteMe #2
Posted 20 December 2014 - 02:42 AM
Can you make it so it can check things in a chest next to it. :D/> Other then that just a nice, simple peripheral.
Edited on 20 December 2014 - 01:43 AM
austinv11 #3
Posted 29 December 2014 - 09:46 PM
So it's basically this but for computers instead of turtles?
Edited on 29 December 2014 - 08:47 PM
zguystudios #4
Posted 12 January 2015 - 11:11 PM
Hey, sorry to bother you, but it appears the download link is broken. Please fix this for the loving public <3
Kashin #5
Posted 14 January 2015 - 10:29 AM
Reminds me of my item scanner peripheral I made a year ago. http://www.computercraft.info/forums2/index.php?/topic/17031-mc-164-cc-158-item-scanner-find-ids-meta-and-more-build-advanced-sorting/

Although it's fairly useless now with the new turtle functions for scanning.
Tiin57 #6
Posted 14 January 2015 - 09:29 PM
Hey, sorry to bother you, but it appears the download link is broken. Please fix this for the loving public <3

I had a small issue with renewing my domain, it should be fixed now. If it's not fixed in 48 hours (give DNS time) then let me know.

To austin and Kashin, I'm aware of the turtle function, I simply felt like re-implementing it in a block for reasons unknown.
zurbo #7
Posted 06 April 2015 - 01:09 PM
Hello,
I'm working on a public FTB Modpack and I would like to know if I can use this mod ? I will provide a link to this thread.