Minecraft how to not lose items on death
Andrew Walker
Published Mar 25, 2026

That’s unfortunate (and if you die in a lava pit you’ll never get that loot back). Let’s fix that now by editing the “keepInventory.”. Pull up the chat window in your game and enter the following command (remembering that it is case sensitive). /gamerule keepInventory true.
There are other answers below:
If you no longer want to lose your items after death, the first thing you should do is create a Minecraft world that supports cheats. It’s a …
If you have cheats enabled, you can use /gamerule keepInventory true to avoid losing items on death. This will cause the items to stay in your inventory on death.
MethodWarnings {“smallUrl”:”https:\/\/
How to Enter the Command 1. Open the Chat Window. The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:. For Java Edition (PC/Mac), press the T key to open the chat window.; For Pocket Edition (PE), tap on the chat button at the top of the screen.; For Xbox One, press the D …
To destroys items, I think you can run “execute if entity @p[scores={score_deathcount_min=1}] run kill @e[type=item,distance=..4]”. Rollback Post to Revision RollBack If you follow your heart, it will only lead to your arteries.
SimplyJeevS. So im working on my server and i kill myself to test suicide commands and such, and i notice i don’t lose my items. So then i try to kill myself by jumping off block still no luck. Then i thought maybe keep inventory is on but no. Then i started dragging out plugins and i narrowed it down to essentialsx.
Gravestone mod like Tomb Many Graves or Corial Tombstone will keep items from disappearing on death if that’s what you’re looking for. You’ll have to go back to your body and retrieve them, and none will be missing.
You lose your inventory by default. If you want the item entities to be killed you need to set up a system that teleports or kills the @e[type=Item] near a dead player. Or you somehow manage to use /clear while a player dies but before he drops his items.
You can use the command /gamerule keepInventory true (case sensitive) to prevent the player from losing items on death. This command will work in Vanilla Minecraft, without using any mods (as long as cheats are enabled). You can also do this on a server as long as you have operator status.
Related Questions
Do you lose everything in Minecraft when you die?
Naturally, Minecraft’s game rules function the same way whether you’re playing it on PC or PE version, and losing your items after death is one of them. Fortunately, there’s a way around it: Open the Minecraft Pocket Edition on your Android phone. Click on the chat icon in the upper part of the screen.
How do you prevent items from disappearing on death in Minecraft?
up vote 43 down vote accepted. You can use the command /gamerule keepInventory true (case sensitive) to prevent the player from losing items on death. This command will work in Vanilla Minecraft, without using any mods (as long as cheats are enabled). You can also do this on a server as long as you have operator status.
How to keep inventory from dying in Minecraft?
You can use the command /gamerule keepInventory true (case sensitive) to prevent the player from losing items on death. This command will work in Vanilla Minecraft, without using any mods (as long as cheats are enabled). You can also do this on a server as long as you have operator status. Use /gamerule keepinventory true.
Is there a way to keep items when you die?
If you have cheats enabled, you can use /gamerule keepInventory true to avoid losing items on death. This will cause the items to stay in your inventory on death. What you want is the Death Chest Mod, which places a chest of your items at the spot you die. Thank you very much it will do it.