Keep Inventory On Death
Keep your items when you die instead of dropping them
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Stops you and all players from dropping inventory and experience on death. Items stay in your hotbar and inventory, eliminating the scramble to recover them. Run /gamerule keepInventory false to restore death penalties and re-enable the standard 5-minute despawn timer on dropped items.
/gamerule keepInventory true28 characters
- Java: yes
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock).
- Paste the command.
- Press Enter — the rule applies world-wide to all players immediately.
- Your death message appears but no items drop; respawn and find yourself with full inventory.
Related commands
Always Day / Stop Time
Freeze time so it's permanently daytime
Clear Weather / Always Sunny
Stop rain and keep the weather clear
Stop Mob Griefing
Stop creepers +2 more
Disable Fall Damage
Turn off fall damage
Turn Off Fire Spread
Stop fire from spreading to nearby blocks
Instant Respawn (Skip Death Screen)
Respawn immediately on death without clicking the button