I executed the command /gamerule keepInventory true and when I test this with /gamerule keepInventory, this command returns true. However, sometimes when me or my friends die we lose our stuff and sometimes we don't. No one else is op apart from me. It has lead to us losing our stuff a ton of times. What is wrong?

  • 2
    Does this answer your question? Keep items in inventory on death in Minecraft
    – aphid
    Commented Aug 10, 2020 at 12:26
  • 2
    no, @aphid, it doesn't. he knows the command, the command isn't working.
    – Corsaka
    Commented Aug 10, 2020 at 13:21
  • Maybe gaming.stackexchange.com/questions/144326/… could help, noticing the wrong case-sensitivity of the test command? There's too many duplicates for this; googling finds 5+ results.
    – aphid
    Commented Aug 10, 2020 at 13:44
  • This may not be the solution, but gamerules don't apply across dimensions, so setting keepInventory to true in the overworld doesn't automatically apply to the nether or the end.
    – bubster20
    Commented Aug 26, 2020 at 17:23
  • In case this gets closed, I think the most upvoted answer is valuable, so maybe we can edit the question to reflect that (I know, very much against SE regulations)?
    – Joachim
    Commented Oct 21, 2022 at 22:22

2 Answers 2


If you are running a server like me, and you are using paper, it's because the world file of Overworld, Nether and The End are seperated, which means each world has its own gamerules. So you have to execute the command at each dimension.


In 1.16 this command does not work in the nether. You have to use a respawning anchor. If you don't have one in the nether, you lose all you items.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .