Me and my friend were playing Minecraft, and I created a world with cheats de-activated. When I opened it to LAN, I activated cheats, and changed the two game rules keepInventory (True) and mobGriefing (false). But, my items dropped when I died, and a Creeper blew up part of my Mineshaft.

Later, my friend started up a Singleplayer world (with cheats), enabled those two gamerules (to the same as on our LAN), and the same results happened.

I am pretty sure I put the command in right, seeing as I did:

/gamerule [hit tab until I got to the rule I wanted to change] [hit tab until I got to the way I wanted to change it] and hit enter. 

How do I get them to work?

  • 1
    That is puzzling. Can you use an NBT reader to open the save's level.dat to see what the gamerules are set to now? Commented Feb 16, 2015 at 22:34
  • What's the version?
    – 54D
    Commented Feb 17, 2015 at 3:42
  • Are you running EXACTLY /gamerule keepInventory true?
    – Chris
    Commented Feb 17, 2015 at 3:53
  • 1
    pretty sure, I typed /gamerule, then used the tab button to cycle through modifiers for it
    – The Man
    Commented Feb 17, 2015 at 4:10
  • Maybe it has something to do with the fact that the world originally had cheats off, maybe try copy and pasting this commands into your chat: /gamerule keepInventory true and /gamerule mobGriefing false
    – alixey999
    Commented Feb 18, 2015 at 10:15

2 Answers 2


You must ensure that the following standards are met:

  1. Cheats are ON
  2. You made sure that the 'g' in gamerule is lowercase
  3. The I in keepInventory is capital
  4. true is not capitalized.

If all else fails, you might have to re-install Minecraft. If that doesn't work, I have no idea what will. Happy Crafting!

  • As I stated in the first segment of the question, the first world does not have cheats enabled (it did enable them with LAN), but the second world does meet all of those requirements.
    – The Man
    Commented Feb 24, 2015 at 1:54
  • Very strange. I'll have to look into this more.
    – Jim Bob
    Commented Feb 24, 2015 at 13:38

For some reason, if you do /gamerule set (example gamerule) then it will of claimed to of done the gamerule when it has actually not, but if you just put /gamerule (example gamerule) then it will work fine.

You must log in to answer this question.

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