Forgot password
Enter the email address you used when you joined and we'll send you instructions to reset your password.
If you used Apple or Google to create your account, this process will create a password for your existing account.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Reset password instructions sent. If you have an account with us, you will receive an email within a few minutes.
Something went wrong. Try again or contact support if the problem persists.
Image via Mojang

What is the Keep Inventory Command in Minecraft?

Hold on to your things.

Console commands in Minecraft can be a handy tool to improve the experience. Players can use it to alter the game quickly without needing to weed through settings or find in-game means to do what they want. If you are not looking to lose your inventory on death, you can use the console command to always retain everything without dropping it when you die. Here is how to do the Keep Inventory command in Minecraft.

Recommended Videos

Related: How to set up the Minecraft Jenny mod

How to use the Keep Inventory command in Minecraft

To quickly change your game to allow you to keep your inventory on death in Minecraft, first, you need to bring up the chat option. On PC, press T. On console, press right on the d-pad. From there, input /gamerule keepInventorytrue on either the Java or Bedrock Edition of Minecraft and hit enter. You will get a message confirming the rule change.

If you ever want to revert the rule to having you drop items upon death, open the chat window and input /gamerule keepInventory false, and hit enter to get another confirmation about the rule reverting to its original form.

There are many console commands available in Minecraft besides the Keep Inventory one. From interacting with other players, teleporting, server, player and world interaction, and other useful tools, these cheats can change the game positively if you don’t care about playing the standard experience. If you are having trouble getting the console commands to work, go into your settings and make sure that the cheats are turned on; otherwise, these will not work. For most players, Keep Inventory is a nice thing to have in place to make the experience a little more friendly.


Gamepur is supported by our audience. When you purchase through links on our site, we may earn a small affiliate commission. Learn more about our Affiliate Policy
Author
Image of John Hansen
John Hansen
John Hansen is a Full-time Staff Writer for Gamepur as well as a host for the YouTube channel Pixel Street Videos where he co-hosts a weekly gaming podcast and more. His favorite games include Super Mario 64, The Legend of Zelda: Ocarina of Time, Breath of the Wild, Left 4 Dead 2, and Overwatch. He covers Overwatch 2 and other FPS titles, Minecraft, Sonic the Hedgehog, Legend of Zelda, and whatever zombie games are placed in front of him.