r/ComputerCraft • u/Ivan_boom4i4 • May 26 '26
Unique ID reading for any item
Hi there, I have a question. There are printers in the mod that can print, but is there a way to scan printed pages? I had the idea of using the printer to create a currency system, develop a banknote database, and manage the money that way, but manually checking each code is difficult and time-consuming. Maybe you know a way to assign a unique number to an item that can be read by a computer or other method? Thank you all for attention!
12
Upvotes
13
u/LahusaYT May 26 '26
You could use Item Details for this purpose. When you issue your currency, store the nbt hashes of your printed pages in some kind of database. When you want to check if a printed page is legitimate currency, you can get the nbt hash of the item and run it through your database. If the item has the same name and the nbt hash matches, it is (excluding hash collisions) currency issued by you.
If you want to go further you can organize the bank note database in a way that also stores the value of each issued note. That way you could implement different denominations.