Turn the rule on
- Input
- /gamerule keep_inventory true
- Expected output
- Você mantém itens e experiência ao morrer.
It applies to the whole world.
minecraft keep inventory command
The Gamerules tab of the tool, already filtered to keep_inventory: choose true or false and copy the complete /gamerule. The rule has a new name in 26.1, and that is what breaks most old tutorials.
It applies to the whole world.
This is the game default.
With no value, it only queries.
Default false.
Default true.
Type /gamemode creative in chat. For another player, add the name or a selector: /gamemode creative Steve or /gamemode creative @a. The four modes are survival, creative, adventure and spectator, spelled out: Java does not accept the s, c and a abbreviations. The command needs level 2, so in a local world the game must have cheats on.
Not in 26.1: the game only recognizes snake_case names, so /gamerule keepInventory true returns an unknown rule. Swap it for /gamerule keep_inventory true. In old versions of the game the opposite holds.
Yes. With keep_inventory on, you keep the items and also the experience levels, leaving no experience orbs where you died.
Yes, because /gamerule needs level 2. In a local world, enable cheats when creating the world; on a server, only operators change gamerules.
No, it is a world rule. A per-player effect would need a data pack that gives the items back on respawn; the game rules apply to everyone.
Minecraft Java Edition 26.1. Bedrock has its own syntax and is not in this list.
20 commands
Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.