Guías

How to Turn On Keep Inventory on Your Minecraft Server

Keep inventory is a gamerule. Once it is on, players keep their items and experience when they die.

From the console

Open Console while the world is online and type, without the slash:

  1. gamerule keepInventory true
  2. If the console says the gamerule is unknown, your version uses the newer snake_case name: gamerule keep_inventory true.

In game

As an operator, type the same command with a slash. See How to OP players.

Good to know

Gamerules are saved with the world, so it stays on after restarts. Turn it off with false. On modded worlds, some mods add graves or their own death rules.

Want to try this on a real server? Campfire is free and runs Vanilla. Village adds plugins, Kingdom adds mods and modpacks.