Minecraft KeepInventory: keep your inventory after death

The correct command depends on the version: in modern Java, use /gamerule minecraft:keep_inventory true. On Bedrock, use /gamerule keepinventory true. On older Java versions, the rule is written as keepInventory. Check autocomplete and permissions before testing.

You love exploring, but losing your gear after a fall can sometimes turn your evening into a race against the clock. KeepInventory allows you to keep your inventory after death and continue the adventure with a less severe consequence. This setting changes the world rules; it does not replace armor, health care, or the choice of a good spawn point.

Here is how to activate it, verify it, and decide with your group if this way of playing suits you. Our Minecraft commands section rounds out the practical side. To put this choice into a broader progression, also browse our Minecraft survival guides.

What KeepInventory keeps after death

In a standard game where the rule works normally, you keep the items in your inventory and the gear you are wearing instead of dropping them at the location of your death. Experience is also retained. You therefore respawn with your belongings, without having to immediately return to a dangerous cave to recover a pickaxe and supplies.

On the other hand, your character can still die. The setting does not grant invulnerability, does not repair tools, and does not automatically refill reserves already consumed. A worn sword remains worn; a meal eaten before death does not reappear in your pack. Damage, hunger, and travel therefore retain their importance in the game.

Imagine an expedition that ends in a fall near a ravine. You find your equipment at the respawn point, but you still need to organize the journey back to your friends. Our article on useful survival foods remains relevant, just like the Minecraft shield guide to avoid dying too often.

The rule does not automatically protect objects you have already dropped on the ground or placed elsewhere. Always distinguish between what is in your inventory at the moment of death and what already belongs to the world, a chest, or another entity.

Activating the rule in Java with the name suited to your version

In recent Java versions, specifically the 1.20+ series, the explicit form is /gamerule minecraft:keep_inventory true. The rules have adopted identifiers with words separated by underscores. An old example with a capital letter in the middle may therefore be rejected even if you have used this rule in the past.

On Java versions prior to the name change, the common example is /gamerule keepInventory true. Do not mix the two spellings in the same command. Type the beginning of /gamerule, then choose the name suggested by the autocomplete. It reflects what your game or server actually recognizes.

You must have the necessary permissions. In Java 1.20.3+, the pause menu gives access to World Options, with a general section allowing you to manage command access and game rules. Older menus are not organized the same way. On a server, ask the administrator to change the rule in the correct place.

The Minecraft games and editions folder helps identify your environment. If you play in a separate installation, our article on installing a Modrinth modpack explains why the version number may differ between two profiles on the same computer.

Activating KeepInventory on Bedrock and checking achievements

On Bedrock, the reference command is /gamerule keepinventory true. It can be typed in the chat by a player with the required rights, after enabling commands or cheats according to the world settings. The name does not automatically use the Java identifier with minecraft: and underscores.

You can also look for the inventory conservation setting in the game settings when the interface offers it. The location and labeling depend on the platform and version. Look at the confirmation message regarding achievements before modifying your main world: activating cheats may disable them for that world.

If you want to compare the two experiences, make a copy of your game. Name it clearly "inventory kept test" and keep the original separate. Our guide on backing up a Realms world explains how to keep distinct versions. For a group on multiple devices, playing between Switch and PC allows you to verify that you are sharing the same Bedrock environment.

A physical chest can extend the organization theme into your gaming corner. Browse the Minecraft toys to imagine organizing small accessories around your gaming area.

Checking the value before a real expedition

After activation, read the game output. In modern Java, /gamerule minecraft:keep_inventory, without a final value, allows you to check the status of the rule. On Bedrock, use /gamerule keepinventory. A value of true indicates that it is active in the context concerned; false indicates it is not.

Then run a test on a copy or in a test world with a few items of no particular value. For example, place three dirt blocks, a common tool, and food in separate slots, then note your experience. Verify after a test death that you find what you expected. Avoid using your best gear to discover the behavior of a modified server.

A test must also check where you respawn. Keeping your items and returning to the right place are two different questions. Note the starting point and plan a simple return path. Our guide on teleporting to a player or coordinates helps you understand movement when commands are part of your test world rules.

You can record these results in a set of Minecraft notebooks. Minecraft accessories offer other ideas to help track your worlds without mixing in account IDs and passwords.

What the rule does not retrieve retroactively

Activating KeepInventory after a death does not automatically make items already lost reappear in your inventory. The setting acts on deaths that occur afterward, once the rule is active. For a past incident, you must examine items still present in the world or available backups, depending on the situation.

Likewise, an item consumed, broken, or intentionally thrown is not protected simply because the rule is enabled. If you deposit your resources in a chest that is then destroyed, keeping your inventory does not save that chest. It therefore does not constitute a general insurance against all possible losses in the game.

A custom world can add tomb systems, death scripts, or rules specific to a minigame. In this case, the result may differ from a standard game. Test the installed configuration and consult its settings instead of stacking several systems without knowing which one preserves items.

To organize your resources, our Java item sorter guide rounds out this setting. A yellow chest pattern cushion cover and Minecraft cushion covers incorporate the world of storage into your everyday decor.

Choosing this rule based on the type of game

For a group that has an hour to play, keeping your inventory can prevent one mistake from consuming the entire session. Players resume their objective instead of crafting several pieces of backup equipment. It is particularly practical when the main desire is to build together, discover biomes, or learn how to move around.

Conversely, some groups enjoy the preparation and tension associated with retrieving gear. In this case, you can keep the rule disabled and organize shorter expeditions. No setting replaces a clear discussion on what you want to experience together. The right choice is the one the participants know about before starting.

Avoid changing the rule in the middle of a challenge without warning. A player who has taken precautions might not understand why the consequences suddenly change. Instead, choose a specific period: "this construction adventure keeps items" or "this exploration world uses standard losses." Note the choice in the world presentation.

The Minecraft parents' guide helps organize these conversations. To accompany an adventure less focused on equipment loss, Minecraft keychains offer several iconic items.

Keeping good habits even with your inventory saved

Continue to drop unnecessary resources before going out. A readable inventory facilitates combat and construction, even when it stays with you after death. Keep your most used tools in a stable place, separate supplies from materials, and provide a few blocks to get past an obstacle or take cover.

Tool maintenance remains important. The Mending enchantment guide helps understand how to repair equipment with experience, while using the anvil explains operations that require preparation. KeepInventory does not eliminate costs or wear associated with these uses.

For a trip to the Nether, also prepare for the return and appropriate protections. Our article on the fire resistance potion rounds out these preparations. The Minecraft enchantments and potions folder allows you to choose tools that make exploration more comfortable without relying solely on respawning.

The Minecraft lamps feature several objects linked to these adventures. They can complement a desk or shelf dedicated to memories of your games.

Understanding why KeepInventory seems not to work

If the command is unknown, first check the edition and the rule name. An error on keepInventory, keep_inventory, or keepinventory may come from an example meant for another version. Then verify that the permissions are actually available in this world, and not just in another save.

If the value is correct but items disappear, look at the context: have you returned to the correct server, in the correct world, and with the same configuration? Some servers manage several worlds separately or add custom behaviors. Do not generalize a successful test in the main world to all minigames in a network.

Reproduce the issue with a few simple items, then note the version, location, and any active modifications. Our article on Minecraft mod incompatibilities presents a step-by-step method for isolating a change. The Minecraft mousepad collection and a diamond ore pattern mousepad allow you to extend the atmosphere of your tests to your desk.

Avoid resetting everything for a syntax error. Consulting the rule and running a quick test usually yields more useful information than a series of changes made without verifying their effect.

Disable keep inventory and notify the group

To revert to the usual behavior, replace true with false in the command appropriate for your edition. In modern Java: /gamerule minecraft:keep_inventory false. On Bedrock: /gamerule keepinventory false. Then check the value to confirm the change.

Announce the new rule before the next departure. Suggest that players store their rare items, check their equipment, and note their route. The change does not remove items currently in inventories; it modifies what will happen upon future deaths. A test on a copy allows the group to understand this difference concretely.

To pair items with your play space, our Minecraft buying guides section and Minecraft decorations provide ideas based on your favorite characters and blocks.

Do I have to retype the command every time I log in?

The rule is saved with the world during normal operation. Check it especially after a world change, restoration, or configuration modification.

Does KeepInventory give extra items?

No. It preserves what is covered by the rule at the time of death. It does not automatically create new resources.

Can we continue playing in survival mode?

Yes. Inventory preservation is a separate setting from the game mode. You can keep the other constraints of survival mode and choose a different consequence for death.

What choice should be made for a new adventure?

Define the goal of the game together, choose the rule before setting out, and run a quick test. You can then play with clear expectations, without discovering the consequences at the first accident.

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.