Uploaded June 2026 | Updated September 2026, 2 weeks ago
command - /gamerule keep_inventory true
How to keep your inventory after death in Minecraft.
The first way is during world creation.
Click "More."
And go to the "Game Rules" tab.
Look for the "Player" section here.
And inside it, find "Keep inventory after death."
Then, toggle it so it says "ON."
Now for the second way.
Changing these settings directly while already playing the game.
But for this, you must have commands enabled.
You can enable them during world creation.
Or while already in the world by clicking "Open to LAN."
Then click "Allow Commands."
And all that's left is to click "Start LAN World."
After that, we can type commands.
Press the "T" key.
And type the command that you can find in the description below.
However, in the new version, you don't even have to type a command anymore.
Press the Escape key.
Next, go to "Options."
After that, go to "World Options."
And go into "Edit Game Rules."
Just like before, look for the "Player" section here.
And find "Keep inventory after death" inside it.
Or you can simply type "Keep" into the search bar right here.
Toggle it to the "ON" state as well.
That's all.
Thanks for watching. Goodbye.
command - /gamerule keep_inventory true
How to keep your inventory after death in Minecraft.
The first way is during world creation.
Click "More."
And go to the "Game Rules" tab.
Look for the "Player" section here.
And inside it, find "Keep inventory after death."
Then, toggle it so it says "ON."
Now for the second way.
Changing these settings directly while already playing the game.
But for this, you must have commands enabled.
You can enable them during world creation.
Or while already in the world by clicking "Open to LAN."
Then click "Allow Commands."
And all that's left is to click "Start LAN World."
After that, we can type commands.
Press the "T" key.
And type the command that you can find in the description below.
However, in the new version, you don't even have to type a command anymore.
Press the Escape key.
Next, go to "Options."
After that, go to "World Options."
And go into "Edit Game Rules."
Just like before, look for the "Player" section here.
And find "Keep inventory after death" inside it.
Or you can simply type "Keep" into the search bar right here.
Toggle it to the "ON" state as well.
That's all.
Thanks for watching. Goodbye.










