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

14 Answers

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

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

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.

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 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.

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

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

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

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.

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.

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.

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.

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

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

1