> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.sparkedhost.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Turn on Keep Inventory in Minecraft Server

Turning on keep inventory in your Minecraft server means players won't lose their items when they die. Who has not lost their items while in The End dimension or while exploring your Minecraft world?

This feature makes gameplay less frustrating by letting everyone keep their valuable items, tools, armor, experience points, and resources. In this guide, we'll show you how to easily enable the keep inventory feature quickly so you can have a more forgiving Minecraft experience.

Don't already host with us? 10,000+ server owners trust Sparked Host for lag-free Minecraft worlds. [Claim your server savings](https://sparkedhost.com/minecraft-server-hosting?utm_source=referral&utm_medium=knowledge_base&utm_campaign=kb_redirect&utm_content=intro) to get higher performance at less $ per month.

${youtube}[](7DLFQbugdDc)

## Make Sure You Are OPed

OP grants you operator status on the server, allowing you to run any command in-game chat, including the keep inventory command.

* Go to the console of your server.
    
    ![](https://rhbarber.com/ss/t6l8e.png)
* You will find a chat window at the bottom of the console.
    
    ![](https://rhbarber.com/ss/0jl9e.png)
* Enter the following command `op yourusername`
    
    ![Activate cheats commands.](https://rhbarber.com/ss/ett2l.png)
* Press Enter
    
* You will get a confirmation message letting you know that you got OP.
    
    ![Cheat confirmation](https://rhbarber.com/ss/7ccq9.png)

## Using The Keep Inventory Command on Minecraft Java Edition

You can do this through the console or in-game, whatever works best for you.

### Console:

* Go to your server console.
    
* Enter the following command: `gamerule keepInventory true`
    
    ![Gamerule command in console](https://rhbarber.com/ss/e6dl7.png)
* If done correctly, you will get this message.
    
    ![Setting keepinventory to true](https://rhbarber.com/ss/w9qxq.png)

### In-game:

* Log into your Minecraft server.
    
* Open the chat window by pressing your keyboard's 'T' key, which is the default binding in Java Edition.
    
* Type this command.
    
    ![Command example inside the Minecraft game](https://rhbarber.com/ss/95c33.png =1024x576)
* If done correctly, you will get this message.
    
    ![Inside Minecraft chat confirmation](https://rhbarber.com/ss/jnb19.png)

## Using Keep Inventory On Minecraft Bedrock Edition

### Before we proceed:

* Turn off your Minecraft server.
    
    ![Turning off Minecraft server](https://rhbarber.com/ss/iluf5.png)

* Enable cheats under the Startup tab on the panel.
    
    ![Enable cheats option](https://rhbarber.com/ss/qpduu.png =768x827)
* Start it your Minecraft server again.
    
    ![](https://rhbarber.com/ss/52ueo.png)
* We can now proceed with enabling this gamerule.

### Console:

* Go to your server console.
    
* Enter this command: `gamerule keepInventory true`
    
    ![Gamerule command in console](https://rhbarber.com/ss/e6dl7.png)
* If done correctly, you will get this message.
    
    ![Command working](https://rhbarber.com/ss/yg65o.png)

### In-game:

* Log into your server.
    
* Open the chat window.
    
* Type this command.
    
    ![Bedrock Multiplayer server](https://rhbarber.com/ss/g67tr.png =768x537)
* If done correctly, the game will display this message.
    
    ![Bedrock player message](https://rhbarber.com/ss/4nxpz.png)

## Common Issues

Below are the answers to a few common issues that you might run into when turning on Keep Inventory: 

### Not able to run the command:

* Check that you have the necessary permissions. Double-check that your in-game character is OPed.
    
* Bedrock only: Check that the server has the cheats enabled.
    
* Check that the command is well written.

### I am still losing items or experience points:

* Restart your server.
    
* Run the **/save** (Bedrock) or the **/save-all** (Java) commands to save all changes on the server.
    
* Check that the keep inventory option is enabled by re-running the command.

### I want to disable this rule.

* If you want to disable the Keep Inventory command, you can type '/gamerule keepInventory false'.

## Still have some questions?

Feel free to contact our support team through [here](https://billing.sparkedhost.com/submitticket.php).

By: Esteban M.