views
Changing The Gamerule In An Existing World
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.
Keep your items when you die in minecraft step 2.png Press / or T. This will open the chat box for you.
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.
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."
Changing the Gamerule In A New World
Click on the Create New World button while in Singleplayer. This button should be right under the world list.
Click on the Game Rules button. This button should be right under the Allow Cheats button.
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.
(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.
Click the Create New World button. This will begin the process of creating your new world where you can keep your items after death.
Using LAN (PC Only)
Open your world. Open the world you want to keep your items on. This can be a world with Allow Cheats turned off.
Keep your items when you die in minecraft step 10.png Press Esc and click on Open to LAN.
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.
Click the Allow Cheats: Off button until it says Allow Cheats: On.
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.
Keep your items when you die in minecraft step 2.png Press / or T to open up the chat.
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.
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.
Comments
0 comment