Keep Inventory Gamerule
When true, players keep items on death. Java uses keepInventory; Bedrock may use keepinventory — check edition.
Syntax
/gamerule keepInventory trueJava & BedrockGamerules
Examples
- /gamerule keepInventory true
- /gamerule keepInventory false
Related commands
- Peaceful Difficulty Command/difficulty peaceful
Updated 2026-06-10 · Syntax verified against official Minecraft Wiki command documentation.