I used the /clear command, and I accidentally got rid of a very important book. Is there a way to get it back without having to rewrite it?

  • Have you made any attempt to solve this yourself? Arqade works better when askers show effort to solve their own problems; we see that you have a problem you've worked on, and answerers respond to that. You also get a more specific answer that's tailored exactly to the part you're stuck, and Arqade gets a very specific question. Everybody wins! – Frank Nov 16 '17 at 0:41

Without any mods, it's not possible. You'll have to rewrite the book then

If you have very specific or important items in your inventory, you should temporarily throw them on the ground or put them in a chest before using /clear.

| improve this answer | |
  • I forgot the book was in my inventory. I should be more careful... I'm a noob – Urgence Nov 18 '17 at 19:02

You can try crashing/killing Minecraft as soon as possible after that happens by either holding down F3+C for 10 seconds or stopping javaw.exe in the task manager. Do not use the "X" icon or Alt+F4, since that triggers saving.

If you're really lucky, no autosave happened between your command and the exiting, that would mean that your inventory (and everything else in the world) resets to the state it was a few seconds ago.

| improve this answer | |
  • Or flicking the power off on your computer? Both 10 secs f3+c and locating and quitting javaw seem very slow – theonlygusti Nov 16 '17 at 2:10
  • 1
    That is funny. I had the same thought. Who knew, crash the game, could ever actually be a solution. – IronAnvil Nov 16 '17 at 3:31
  • Shutting down stuff is often a good reaction in panic situations. If I mess up a Minecraft world, I immediately exit Minecraft, turn off internet, turn my laptop on, which has no internet by default, copy the old version of the synchronised file and turn internet on on it to synchronise that. If you have a virus that either copies itself or deletes/encrypts your files, you should immediately turn your computer off and disconnect all storage mediums. If a robot, production line or other machine does something unwanted, you stop it. If a program has a really bad error, it should crash. – Fabian Röling Nov 16 '17 at 8:12
  • I wouldn't. Mine usually autosaves, so all that'll do is just waste time. – Urgence Nov 18 '17 at 19:01
  • You mean Minecraft? And yes, it autosaves, but only every few seconds, so if you immediately kill the process without giving it the chance to save (through task manager or F3+C, not the cross or the ingame button), you might be lucky. – Fabian Röling Nov 19 '17 at 11:45

In addition to the previous answers, I'd like to give you a preventive measure:

Make use of the saved hotbars if you have an important item you don't want to loose. You can get back your saved hotbars at any time while in creative mode. Just make sure you don't override the important one.

To access saved hotbars, use X+number (load) or C+number (save) respectively.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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