Download ArticleDownload Article

Dying in Minecraft is a common and frustrating occurrence for any player, whether they are experienced or new to the game. One of the most frustrating aspects about death in Minecraft is losing all of your items, and although you have some time to get them back after death, they may be lost forever. However, you can avoid losing them all together using features built into the game itself.

Method 1
Method 1 of 4:

Changing The Gamerule In An Existing World

Download Article
  1. How.com.vn English: Keep your items when you die in minecraft step 1.png
    1
    Open your world. Open up the world that you want to keep your items on.
    • Don't open a server unless you are the owner, a moderator, or have the OP status, otherwise it will not work.
    • This method will not work if your existing world has cheats turned off. You can test if cheats are on or off by typing it any command and pressing enter. The command will not work in a world with cheats off.
  2. 2
    How.com.vn English: Keep your items when you die in minecraft step 2.png
    Press / or T. This will open the chat box for you.
    Advertisement
  3. How.com.vn English: Keep your items when you die in minecraft step 3.png
    3
    Type /gamerule keepInventory true. The I in inventory has to be capitalized for this to work.
    • You can also type in /g, Down Arrow, space,Tab , then space, k Tab , and space, t Tab . This should also give you the command above.
  4. How.com.vn English: Keep your items when you die in minecraft step 4.png
    4
    Press Enter after typing the command. If done correctly, you should see a message in chat that says "Gamerule keepInventory is now set to: true."
  5. Advertisement
Method 2
Method 2 of 4:

Changing the Gamerule In A New World

Download Article
  1. How.com.vn English: Keep your items when you die in minecraft step 5.png
    1
    Click on the Create New World button while in Singleplayer. This button should be right under the world list.
  2. How.com.vn English: Keep your items when you die in minecraft step 6.png
    2
    Click on the Game Rules button. This button should be right under the Allow Cheats button.
  3. How.com.vn English: Keep your items when you die in minecraft step 7.png
    3
    Scroll down until you see the "keep inventory after death" option. Click on the button next to it that says off to turn it to true.
  4. How.com.vn English: Keep your items when you die in minecraft step 8.png
    4
    (Optional) Go back to the main create a world screen and click on the Allow Cheats button. Click on it until it says Allow Cheats: On. This will make it so that you can change the game rules while in the world.
  5. How.com.vn English: Keep your items when you die in minecraft step 9.png
    5
    Click the Create New World button. This will begin the process of creating your new world where you can keep your items after death.
  6. Advertisement
Method 3
Method 3 of 4:

Using LAN (PC Only)

Download Article
  1. How.com.vn English: Keep your items when you die in minecraft.png
    1
    Open your world. Open the world you want to keep your items on.
    • This can be a world with Allow Cheats turned off.
  2. 2
    How.com.vn English: Keep your items when you die in minecraft step 10.png
    Press Esc and click on Open to LAN.
  3. How.com.vn English: Keep your items when you die in minecraft step 11.png
    3
    Click the Game Mode: Survival button until it is on the gamemode you want. Ignore this step if you want it to be on survival.
  4. How.com.vn English: Keep your items when you die in minecraft step 12.png
    4
    Click the Allow Cheats: Off button until it says Allow Cheats: On.
  5. How.com.vn English: Keep your items when you die in minecraft step 13.png
    5
    Click the Start LAN World button. This will open your world to LAN. You should see a message in chat that says "Local game hosted on port (numbers)."
    • Hosting a world in LAN makes it function like a multiplayer world, time will not stop if you press Escape. This also means that players on the same wifi network as you can join your world.
  6. 6
    How.com.vn English: Keep your items when you die in minecraft step 2.png
    Press / or T to open up the chat.
  7. How.com.vn English: Keep your items when you die in minecraft step 3.png
    7
    Type /gamerule keepInventory true. The 'I' in inventory has to be capitalized for this to work.
    • You can also type in /g, Down Arrow, space,Tab , then space, k Tab , and space, t Tab . This should also give you the command above.
  8. How.com.vn English: Keep your items when you die in minecraft step 4.png
    8
    Press Enter after typing the command. If done correctly, you should see a message in chat that says "Gamerule keepInventory is now set to: true."
    • You will have to repeat this process every time you enter the world after exiting it. Exiting the world will stop hosting it on LAN, and therefore make it so that cheats are disabled and you can lose inventory items.
  9. Advertisement
Method 4
Method 4 of 4:

Xbox/Playstation

Download Article
  1. 1
    If in the Console Edition, open "Host Options" and scroll down to "Keep Inventory" and press A or X on it.

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      Warnings

      • If you are playing on a bedrock edition of Minecraft, enabling cheats will disable to ability to earn achievements on worlds that use cheats.
      Advertisement

      About This Article

      How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 17 people, some anonymous, worked to edit and improve it over time. This article has been viewed 23,044 times.
      7 votes - 74%
      Co-authors: 17
      Updated: March 12, 2021
      Views: 23,044
      Thanks to all authors for creating a page that has been read 23,044 times.

      Did this article help you?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement