Cookie04DE / Digital-Items-2

MIT License
1 stars 0 forks source link

Digital Items 2.0

GitHub page

Curseforge page

This project is the successor to the original Digital Items mod. These are the main differences:

This forge mod allows you to turn your items into numbers (called IDs), which you can store or send to your friends and then turn them back into their item form. Every ID is unique, can't be guessed, and can only be used once.

No duplication or cloning of items is possible. The process of turning an item into an ID is called 'digitization' and turning it back is called 'rematerialization'.

Items that are digitized begin to 'decay'. If they are left digitized for too long, they are gone. You can reset their 'decay countdown' by 'refreshing' an item ID or partially rematerializing it.

You can retrieve information about digitized items via their ID and items inside the digitizer itself. All of these operations are performed inside the 'digitizer', and require a configurable amount of energy.

These operations are exposed in the form of a peripheral for the CC: Tweaked mod.

Q. & A.

How do I use this mod?

Place a digitizer and computer (either directly next to one another or connected with network cables and modems). From left to right side by side: An active advanced computer from CC: Tweaked, an active digitizer, a creative energy cube from Mekanism

Place the item you want to digitize inside the digitizer.

The gui of the digitizer. The player inventory and a single slot above it containing 64 stone.
On the right side is an energy indicator in the form of a bar with red and green color indicating the stored energy.
The cursor is hovering above the bar and the Tooltip "173400/480000FE" is shown.

Now you can interact with the digitizer with lua.

The open gui of an advanced computer. It reads:
CraftOS 1.8
Please report bugs at
https://github.com/cc-tweaked/CC-Tweaked. Thanks!
\> lua
Interactive Lua prompt.
Call exit() to exit.
lua\> digitizer = peripheral.find("digitizer")
lua\> id = digitizer.digitize()
lua\> id
"<32 random characters>"
lua\> _

Use digitizer = peripheral.find("digitizer") to find the peripheral and bind it to the digitizer variable. The following methods are available to call on the digitizer peripheral:

Is it compatible with the original mod?

No it is not compatible because of the minecraft version difference and compatibility breaking features. It's not impossible to make the two compatible, but I am simply lacking the time to do so. Pull requests to change this however are of course welcome.