r/ComputerCraft • u/HerShes-Kiss • Jul 07 '25
Reset computer id?
I looked around, but I can't even seem to find anyone asking the same question, so sorry if this has been asked before.
Is there a way to reset a computer's id after you make it back into an item? I have a few computers in my storage and I just grabbed one to test something, but now I wanna just throw it back on the stack in my storage, but it can't because it generated the computer's ID. Most mods let you craft something back into its base form with no nbt data, but I can't do that with a computer. Is there a way or will I just have to cope with the computer not stacking?
6
u/SquidgeyBear Jul 07 '25
I wondered this also, i have yet to craft a computer because I collected a lot from villages while adventuring but they all seem to have ID 11
As a bonus though, they all share the programs I write, as a draw back they share the startup prompt too so not that useful for different purposes
2
u/feldim2425 Jul 07 '25 edited Jul 07 '25
Probably no.
I've just tried and it seems to have changed at some point, as previously you'd just have to reset the label. Without a label the computer didn't retain it's id, but now it does.
In this case I can see this being avoided intentionally since computers with an ID don't just have NBT data but once written to also a directory in your world save data which is the filesystem the computer will use. Deleting the item will not delete the data so you'd run into a issue with orphan files that will never be used again.
PS: I found the pull request in CC:Tweaked where this was implemented: https://github.com/cc-tweaked/CC-Tweaked/pull/437
It might be worth opening a new issue to ask whether it is a intentional side effect that removing the ID is now impossible or not.
1
u/TechRunner_ Jul 07 '25
As computer are linked to a specific folder in your save data you will probably have to delete the ingame item and the folder and restart your game. That is my assumption at least haven't tested it
1
u/JohnnyHotshot Jul 07 '25 edited Jul 07 '25
Try giving it alabel:label set <name>Should keep all of the data and everything when you break it.EDIT: Reading comprehension.