Keep inventory is a Minecraft game rule. Open the Settings tab, click Game Rules, switch Keep inventory on and click Save. Players then keep their items and experience when they die, straight away, with no restart.
Turn it on in the panel
- Open your server in the panel and click the Settings tab.
- Under Config files, click Game Rules. On a new server, start it once first so it has a world.
- Type
keepin the search box at the top. - Switch Keep inventory on. Its key is
keep_inventoryon recent versions andkeepInventoryon older ones. - Click Save. The page says
Game rules saved.

To turn it off again, switch it off and click Save.
Or with a command
In the Console, without a slash:
gamerule keep_inventory true
On Minecraft versions before 1.21.11, the rule is written keepInventory. In the game, an operator of level 2 or more types the same command with a slash.
Good to know
- Keep inventory is off by default in a new world.
- It belongs to the world: a new or different world has its own setting. Turn it on again after you reset or switch the world.
- Other rules people change with it: How to change game rules on your Minecraft server.



