How-to

How to Enable Keep Inventory in Minecraft

The Keep Inventory game rule lets you retain your items and experience after dying, available in both Java and Bedrock editions.

Minecraft News

Dying in Minecraft normally means losing everything. Your items scatter across the ground and vanish after five minutes, and any experience points you've accumulated disappear with them. The Keep Inventory game rule changes this entirely, letting you respawn with your equipment, tools, and experience intact. According to Sportskeeda, this feature transforms the survival experience from punishing to manageable, especially for newer players or those pursuing specific goals without constant item loss slowing them down.

The mechanic works identically across both Java and Bedrock editions, though the setup process differs slightly between them. Apex Minecraft Hosting notes that Keep Inventory preserves not just your items but also your enchanting levels, making it valuable for both casual survival and server administration. Players sometimes deliberately die to reset their hunger bar while keeping everything else, turning the rule into a utility beyond simple convenience.

Enabling Keep Inventory in Java Edition

Java players need cheats enabled before running any gamerule commands. If your world was created without cheats, you can temporarily activate them by opening the pause menu and selecting 'Open to LAN', then toggling 'Allow Cheats' on. This grants command access for your current session, though the Keep Inventory setting persists after you close and reopen the world.

Once cheats are active, open the chat with the T key and type the command. XGaming Server emphasises that the syntax is case-sensitive: the rule name must be keepInventory with a capital I. Type exactly: /gamerule keepInventory true

Important note from Apex Minecraft Hosting: Java Edition 1.21.11 and later changed how gamerules are referenced. On these newer versions, use /gamerule minecraft:keep_inventory true instead. If you're running an older version, the original keepInventory syntax still works. To disable the rule and return to normal survival, simply replace 'true' with 'false'.

The Keep Inventory command must be typed exactly as shown, with proper capitalisation in Java Edition.
The Keep Inventory command must be typed exactly as shown, with proper capitalisation in Java Edition.

Enabling Keep Inventory in Bedrock Edition

Bedrock players have two straightforward options. The easiest method is navigating to your world settings and toggling Keep Inventory directly in the Cheats section—no command typing required. Alternatively, you can use the command /gamerule keepinventory true (note the lowercase formatting, which differs from Java).

Stealthy Gaming points out that enabling cheats on Bedrock worlds disables achievements for that save, so casual players should weigh this trade-off. Java Edition avoids this issue entirely, using advancements instead of achievement systems, and commands are standard in worlds where cheats are enabled.

Multiplayer and Server Setup

On multiplayer servers, only operators or the server owner can change game rules. If you're not in control of the server, ask an administrator to run the command. Server owners can execute the gamerule from their console without the leading slash: gamerule keepInventory true. After making changes, Apex Minecraft Hosting recommends running /save-all on Java or restarting the Bedrock server to ensure the setting takes effect.

Game rules are stored per world, meaning you must enable Keep Inventory separately in each save file or server. Turning it on in one world doesn't affect any others.

Troubleshooting

  • Command not working? Check that cheats are actually enabled. Java players can verify by opening to LAN again; Bedrock players should confirm 'Allow Cheats' is set to Enabled in server settings.
  • Capitalization errors are the most common issue in Java Edition. The rule must be keepInventory, not keepinventory or Keepinventory.
  • If the command runs but items still drop on death, force a save with /save-all (Java) or restart the server (Bedrock).
  • Check the current setting by typing the command with no value: /gamerule keepInventory will display whether it's true or false.

What Players Are Saying

The community views Keep Inventory as a quality-of-life feature rather than a strict cheat. Casual players and beginners embrace it for reducing frustration during dangerous mining trips or boss fights. Some veterans use it to focus on building and exploration without survival penalties. However, purists argue that item loss creates meaningful stakes and that Keep Inventory removes the tension that makes survival mode engaging. Server administrators often toggle it based on their community's playstyle—some hardcore servers disable it entirely, whilst others make it optional per player. The general consensus is that Minecraft's sandbox nature means every world can have its own rules, and using Keep Inventory is a valid choice rather than a shortcut.

You May Also Like