I'm playing minecraft 1.7.2 and I type /gamerule keepinventory true, and it says that there's no keepinventory rule. How do I keep inventory on death? I'm fighting the Ender Dragon and keep dying.


1 Answer 1


The /gamerule command is case-sensitive. A quick check on the Minecraft Wiki indicates that the correct casing would be /gamerule keepInventory true, with a capital 'I'.

  • THANK YOU!! I have been trying to figure it out. I dint even think about going on the Wiki.
    – josh
    Dec 2, 2013 at 3:58
  • 1
    @josh If this works for you, you should accept the answer.
    – RavenM
    Dec 4, 2013 at 14:09
  • 3
    @Josh Hint: After you've typed the first few characters of a command, hit the [TAB] key for auto-completion. If auto completion doesn't work, you've probably already typed the command wrong.
    – user22078
    Jan 24, 2014 at 22:04
  • One thing that I ran into is that if you type /gamerule keepInventory 1, it will save, but will not work. Be sure to use true and false exactly! Aug 1, 2014 at 3:19

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