Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

If I destroy my computer, will the programs on it remain if I replace it somewhere else?

share|improve this question
10  
I almost flagged this as nonsense, then I saw the game tags. Sneaky... –  deutschZuid Feb 9 '13 at 22:11
    
Only one way to find out... smashes laptop. –  Jeffrey Lin Feb 9 '13 at 22:47

3 Answers 3

up vote 9 down vote accepted

It will lose its programs. A CC computer considers itself "new" when it's placed and will have a new computer ID. (CC stores filesystem contents by computer ID, so having its ID change makes it "lose" its files, even though they're still in your world's save folder if you go looking in Windows Explorer or equivalent.)

However, there's an easy fix. Any computer (including turtles) that has a label keep their computer ID and therefore remember their contents. You can set the label with the command:

label set namegoeshere

Computers forgetting their programs had been giving me a lot of headaches until I learned about labels, since I was using a turtle and a custom tunnel program. Now I have two turtles, Cricket and Grasshopper, and they keep their custom programs when I break and move them. I set their labels with:

label set cricket

and

label set grasshopper

No more carrying around floppies and disk drives in the mines!

share|improve this answer

You can recover lost data if it's your own world (not server).

Method 1. If you know id of destroyed computer, just change number in file ".minecraft/saves//computer/lastid.txt" to id-1. For example, if you want recover computer #5, you must write 4 into this file. If you don't know id, you can search your files in "computer" directory, name of subdirectory is id. After modyfing "lastid.txt" place new computer into the world. Don't forget to restore lastid after this.

Method 2. If you don'n use id in your programs (don't send rednet messages to it etc.) you can place new computer, get its id by "id" command, then get id of lost computer (read method 1) and copy your files from lost computer directory to new one.

share|improve this answer
    
You can also just look through the folder full of computers by ID and find the programs that are in "lost" computers, then copy them wherever you want. –  SevenSidedDie Jun 9 '13 at 21:07

Nothing official, just a couple of facts found online:

Destroying a computer will wipe out any saved programs on that computer. Source.
Labelled computers do keep their data when destroyed. Source.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.