13

I'm playing the Minecraft Feed the Beast modpack.

During a lengthy mining session, I made a dumb mistake and fell into lava (not for the first time).

I rage-quit the game before I died, and now I would like to know if there is any way of rescuing my inventory.

I know about the /gamerule command, but I won't have enough time to enter it before I die. I also do not have a bucket of water with me.

Is there a way to disable item drop on death without being ingame? I would prefer if I do not have to use external tools.

8
  • 3
    A possible solution is to directly mod your save file, that is, get an editor (such as NBTEdit) that can change your gamemode. That way, when you log back in to your map, you'll be automatically in creative, preventing damage to you.
    – childe
    Commented Jan 26, 2013 at 19:13
  • @Ullallulloo I guess i did not find that question because i concentrated on keeping my inventory. I thought that dying was inevitable
    – Ranayna
    Commented Jan 26, 2013 at 19:51
  • /gamerule keepinventory true
    – Alvin Wong
    Commented Jan 27, 2013 at 5:48
  • This question should be re-opened as there are mod specific ways in FTB of saving your inventory upon death.
    – user9983
    Commented Mar 21, 2013 at 1:23
  • 1
    @Zommuter The scope of this question is much broader than the vanilla question. They are distinct.
    – user9983
    Commented May 31, 2013 at 15:48

14 Answers 14

9

One option is to use MCEdit to load up the world you were playing in and move your character out of the lava. You will still die from the burning when you log back in, but your items will not fall in the lava, so you will be able to pick them back up.

Even better, as Robotnik suggested, you could move yourself into water to put the fire out.

3
  • 1
    I used this to move me back to the surface. This solved my issue, though it's not exactly the answer to my question ;)
    – Ranayna
    Commented Jan 26, 2013 at 19:48
  • 11
    Of course, you could move yourself into a body of water, making you stop burning as well
    – Robotnik
    Commented Mar 21, 2013 at 4:08
  • @Robotnik Even better! Not sure why I didn't think of that
    – SaintWacko
    Commented Mar 21, 2013 at 13:19
22

There is a solution that does not require mods, you just need a way to track the location where you are going to die. So you're about to die... I was falling into lava and hit escape before I bit the big one. I didn't know what to do, I was literally a block away from lava.

  1. Save and Exit.
  2. Find your level.dat folder in your .minecraft/saves folder. Now back up those files to a different location.
  3. Load up your game and die.
    • IMPORTANT NOTE: REMEMBER THE LOCATION WHERE YOUR CHARACTER IS WHEN YOUR GAME LOADS.
  4. Set to peaceful and locate where you died. Now make that location safe. If its lava and in the over world just throw some water down. If its nether you will probably need to build a platform over the lava.
  5. Save and exit.
  6. Go back to the .minecraft/saves folder and delete the level.dat folder. Copy your back-up level.dat folder that you made earlier to the saves folder where you deleted the level.dat folder. Now load up your game.

The alterations you have made in your world are now changed but your character will be reverted to right before you died. Good luck, I hope this helps.

5
  • Welcome to the ArQAde! At what point does this require a zip file reader?
    – Zommuter
    Commented May 31, 2013 at 6:43
  • I just realized it doesn't really need the zip file reader. since you never really dig into any zip files. I was using 7zip when I did this. I went back and did it again without using 7zip and produced the same result. Commented May 31, 2013 at 7:04
  • I see :) Anyway, good answer, especially since it doesn't require any external tools
    – Zommuter
    Commented Jun 1, 2013 at 6:32
  • And for any Windows 7 users you can restore previous versions of your character data as well. Im not sure if its only windows 7 users but that is the OS I have installed. So if you right click your level.dat file you can restore to previous restore points. I didn't add that into the hint because I'm not quite sure how it decides to set up its restore points, however I speculate the level.dat file sets up a restore point every time you completely exit out of minecraft. Commented Jun 1, 2013 at 8:08
  • +1 for a completely Vanilla answer (no nods or external programs).
    – Timtech
    Commented Aug 15, 2013 at 1:20
5

An easy way to save your inventory is simple, but it'll require 3rd party tools.

InVedit is an inventory editor that allows you to access your inventory without launching Minecraft. Simply put, finding your world save, and loading it should give your inventory.

Once you have opened InvEdit and loaded your world Save (you should see your items in your backpack so far), open up Minecraft, got to your original world, then die. When you respawn, save and quit. Now go back to your InvEdit screen, click "Save as", and save it under the same name in the world you were playing on. This will restore your items before death back to you.

Optionally, you could try NBTEdit. From here, you can directly modify your save file and change your gameMode to creative.

4

There is an item in the Twilight Forest mod called the Charm of Keeping. It can be found in Hollow Hills and Labyrinths. There are three tiers of this item and each tier will save a part of your inventory upon death.

  • Charm of Keeping I will save your armor and the item you are holding
  • Charm of Keeping II will save your armor and your entire hotbar
  • Charm of Keeping III will save your entire inventory

A tier one charm can be upgraded to tier two by crafting four tier ones in a square. The same can be done to turn tier two into tier three.

2
  • You could also inventory-edit in a Charm of Life II, which will revive you when you "die" and make you immune to lava for a short time, allowing you to swim out. Commented Mar 21, 2013 at 4:29
  • Too bad in order to obtain it one has to be out of lava for a while, or one has to use an external tool in which case a vanilla solution works just as well...
    – Zommuter
    Commented May 31, 2013 at 6:40
4

You can use an NBT editing tool such as NBTEdit or NEINEdit to edit the level.dat of your world, located in the appropriate folder in your saves directory (typically ./minecraft/saves/[worldName]).

Go to Data -> GameRules -> keepInventory. Change the value to true. Then save the level.dat and return to your game. You will die from the lava, but you will still have your inventory when you respawn.

1

If mods are not a problem, try installing TooManyItems. Clicking the "C" icon in the toolbar will switch the game to Creative mode, and you can just fly out.

3
  • 1
    FTB already includes NEI, which has the same feature. Commented Mar 22, 2013 at 19:06
  • Yes but TMI is easier to install Commented Mar 23, 2013 at 16:00
  • @SevenSidedDie Oh wow i just read the question again and it seems i missed that it said he had FTB sorry :P Commented Apr 12, 2013 at 16:32
1

I'll give you a simpler answer. If you're willing to use external methods to save your inventory, why don't you simply let everything burn, and then give yourself your stuff back in creative mode, and the turn it off again? External tools are really unnecessary in this case.

5
  • While very true, this is not an answer. Other answers have discussed using inventory mods and world edit mods to keep the items in the game.
    – au revoir
    Commented Mar 22, 2013 at 20:42
  • 1
    Giving yourself your stuff back requires a lot more work than moving your character, enabling creative mode etc. You have to manually add back each item.
    – Zelda
    Commented Mar 22, 2013 at 20:43
  • Not really a LOT more work, honestly, it's less work than installing a mod. But hey, it's just a suggestion , really, do as you wish.
    – Shinra
    Commented Mar 22, 2013 at 20:48
  • 1
    Enchanted items
    – badp
    Commented Mar 23, 2013 at 0:04
  • @badp The diamond of truth.
    – Timtech
    Commented Aug 15, 2013 at 1:23
1

Out of the game,write /gamerule keepInventory true on any text box and copy it with CTRL+C, Now enter your game and when in the world quickly press T (or your chat button) and hit CTRL+V to copy your clipboard (which was /gamerule keepInventory true) and keep your inventory when dying,You will still die but you will keep everything you had before.

(Note:Only do this if you have enough health to quickly press T and then CTRL+V or you will die and lose everything)

1
  • Prehaps, but you could just use /gamemode c. Also, both solutions would require cheats to be on.
    – peper757
    Commented Apr 13, 2014 at 21:48
0

If you have a mouse or keyboard that support macros, you could have made one that types out /gamerule keepinventory true for you in under a second. You would die but keep your inventory.

0

if its a single player world just go in the game options before loading the game and change it to creative mode fly out of the lava and save and exit and change the mode back. Done.

-1

If you have REI's minimap in your FTB modpack then just hit = (by default) to see your waypoints and teleport to a waypoint where you know there is water nearby.

-1

log out and log back in. this way, you will be immune to lava for a short time beacuase of spawn protection. spawn protection lasts for 10 seconds. keep doing this over and over again and keep swimming up until you are out of the lava.

-2

Really quickly build a chest and put it in there, exit and restart without saving, or save exit and go to creative mode.

-3

Take a screenshot of your inventory and then spawn the items back in when you respawn.

1
  • 2
    This does not answer the question, as the initial inventory is still lost. Would this work for maps or written books? Commented Jun 25, 2013 at 17:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .