MinecraftSide
Guide

How Do You Keep Inventory After Death in Minecraft?

Keep your items and XP after death in Java, Bedrock, or a Minecraft server.

How Do You Keep Inventory After Death in Minecraft?

Why keep inventory can make survival easier

The keep inventory gamerule lets you keep your carried items and experience points after death. It can make caves, long trips, and tough fights less costly. You can focus on exploring instead of racing back to collect dropped gear.

This rule suits players who want a more forgiving survival world. It can also help new players learn the game without losing hard-won tools. The trade-off is less risk when you die. Some players prefer that balance, while others enjoy the challenge of recovering their gear.

  • Keep your carried items after death.
  • Retain the experience points you have earned.
  • Avoid a risky trip back to your death spot.

The rule does not stop death or prevent all setbacks. It only changes what happens to your items and experience. Decide whether that fits your world before you turn it on.

Safe block cave entrance with neatly arranged gear and cool cyan rim lighting
A safer path through a block cave

How to enable keep inventory in Minecraft Java

You can set the rule while making a new world or change it later. In Java Edition, the command is /gamerule keepInventory true. Note the capital letter I in keepInventory. The command must match that spelling.

For a new world, open the world creation screen and find its game rules. Turn on Allow Cheats if needed, then set Keep Inventory to true. The menu can look different across versions. Look for the game rules section if its location has changed.

For an existing world, join the world and open chat. Enter the command, then press Enter. If it works, the rule applies in that world right away. You do not need to restart the game.

Cheats must be available for the command to work. In a single-player world with cheats off, pause the game and choose Open to LAN. Set Allow Cheats to On, then start the session. Enter the command in chat. This grants cheats for the current session, not as a permanent change to the world.

These steps explain how to enable keep inventory in Minecraft Java for a world you control. If you do not own the world, ask its owner for help. A regular player cannot change the rule without the right access.

Glowing geometric tools beside a voxel workbench in a quiet indigo shelter
Tools kept safe in a voxel shelter

How to enable keep inventory in Minecraft Bedrock

Bedrock Edition offers a world setting for this rule. Open the world settings and choose Game. Find Keep Inventory and switch it on. Return to the world when you are ready to play.

You can also use a command if cheats are on and you have permission. Open chat and enter /gamerule keepinventory true. Bedrock uses a lowercase rule name. This differs from Java, where the I is capitalized.

Check the warning before you turn on cheats in a Bedrock world. Cheats can disable achievements for that world. In many cases, you cannot restore those achievements later. If achievements matter to you, weigh that cost before changing the setting.

On a Realm or hosted world, ask the owner to change the setting or grant the needed permissions. The exact options may vary by world and host. A regular player may not have access to game settings or commands.

Bedrock settings can be the simplest choice when you own the world. The command is useful when you have permission and prefer chat. Either way, check the rule before putting valuable gear at risk.

Unmarked voxel portal arch on a floating platform with soft cyan and pink light
A softly lit portal on a floating platform

How to enable keep inventory on a Minecraft server

Server players usually need an operator to change gamerules. If you run the server, join the game and enter the Java or Bedrock command that matches your edition. An operator can also run the command from the server console.

In the console, leave off the opening slash. For Java, enter gamerule keepInventory true. For Bedrock, enter gamerule keepinventory true. The rule affects the world tied to that server process.

This covers how to enable keep inventory in Minecraft server play when you have control or operator rights. If you are a regular player, ask an operator to set it. Do not expect the command to work without permission.

Some servers use add-ons or plugins that change death and item drops. If the gamerule appears active but items still drop, ask the owner to check those tools. A server may also run more than one world, so confirm the rule was set in the world where you play.

Orderly voxel storage hall with blank chests around a softly glowing central block
Shared storage in a quiet voxel hall

Common problems and quick fixes

If the command gives an error, check your access first. Cheats must be enabled in a world you own. On a server, you need operator rights or help from someone who has them. A correct command still fails when your account lacks permission.

Next, check the edition and spelling. Java uses keepInventory, with a capital I. Bedrock uses keepinventory, all lowercase. Include true after the rule name and use one space between each part.

If the command worked but you still dropped items, make sure it ran in the right world. On a server, ask an operator to check the active world. The rule may have been changed on another server or world by mistake.

Custom server tools can also override the usual behavior. Ask the owner whether a plugin or add-on changes death drops. Test the setting in a safe area before you rely on it during a difficult trip.

  • Check cheats or operator access.
  • Use the command spelling for your edition.
  • Confirm you changed the right world.
  • Ask about add-ons or server plugins.

How to turn keep inventory off again

To restore normal item drops, change the rule to false. In Java, enter /gamerule keepInventory false. In Bedrock, enter /gamerule keepinventory false. You need the same access you needed to turn it on.

In Bedrock, you can also switch off Keep Inventory in the world’s Game settings. Once the rule is off, later deaths will drop items and experience as usual. Changing the setting does not remove items you kept after earlier deaths.

On a server, change the rule in the same world where you enabled it. An operator can use chat or the server console. Tell other players before you switch it off. Their next death will follow the new rule.

Choose the right setting for your world

Keep inventory is a small setting with a clear effect: your items and experience stay with you after death. Java and Bedrock use different command spelling, and Bedrock also has a world setting. Server players need an operator to make the change.

Check your edition, access, and achievement needs before you act. Then test the rule in a safe spot. You can turn it off later if you want item drops and recovery trips back in your game.

Frequently asked questions

How do I enable keep inventory in Minecraft?
Use /gamerule keepInventory true in Java or /gamerule keepinventory true in Bedrock. You need cheats or operator permission.
How do I enable keep inventory in Minecraft Java?
Open chat in your world and enter /gamerule keepInventory true. Cheats must be enabled, or you must have permission to run commands.
How do I enable keep inventory in a Minecraft server?
Ask an operator to run the gamerule command for your server edition. Operators can enter it in chat or use the server console.
Does keep inventory save experience points?
Yes. The gamerule keeps your carried items and experience points after death.
Does turning on cheats disable Bedrock achievements?
Cheats can disable achievements for that Bedrock world. Check the warning before confirming the change.
Why is the keep inventory command not working?
Check your cheats or operator access, then verify the command spelling for your edition. Also confirm that you changed the right world.
keep inventory gameruleMinecraft Java commandsBedrock world settingsserver operator permissionsitems after death

Related reading