Skip to main content

New Page

Guide: How to Enable Keep Inventory on Your Minecraft Server

Enabling the Keep Inventory feature allows players to retain their items and experience levels after dying. This is done through a game rule that you can configure using in-game commands or the server console. Follow the steps below to enable Keep Inventory on your Minecraft server.


Method 1: Enable Keep Inventory Using In-Game Commands

Step 1: Use the Game Rule Command

  1. Ensure you are logged into the game with operator permissions. (Note: Operator permissions are required to use this command.)
  2. Open the in-game chat by pressing the T key.
  3. Type the following command:
    /gamerule keepInventory true
    
    This command enables the Keep Inventory rule for all players on the server.

In some cases, you may need to run the command separately while in each dimension (Overworld, Nether, and End).

Step 2: Verify the Change

  1. Test the change by dying in-game.
  2. Ensure your items and experience levels are still with you after respawning.

Method 2: Enable Keep Inventory Using the Server Console

Step 1: Run the Command in the Console

  1. Open the Ridgeline Servers Control Panel at https://panel.ridgelineservers.com/.
  2. Navigate to the Console tab.
  3. Enter the following command and press Enter:
    gamerule keepInventory true
    

Step 2: Verify the Change

Test the change by dying in-game to ensure the Keep Inventory rule is working as intended.

In some cases, you may need to run the command separately for each dimension (Overworld, Nether, and End). Use the below commands in the server console.

execute in minecraft:overworld run gamerule keepInventory true
execute in minecraft:the_nether run gamerule keepInventory true
execute in minecraft:the_end run gamerule keepInventory true

This ensures the Keep Inventory rule applies globally across all dimensions.


Additional Help
If you encounter any issues or need further assistance, open a support ticket via the Billing Area. Our support team is ready to assist you.