Gamerules in Minecraft "Unknown Command" [duplicate]
I'm a newbie to Minecraft, and not a computer whiz, so I fully expect I'm going something wrong here.
I've been trying to use the keepInventory cheat in Minecraft but it always says "Unknown Command" and no options come up when I put in /gamerules (all that comes up is /gamemode). I've been having a streak of getting killed with some awesome stuff in my inventory and I desperately want to keep this from happening again!
I have cheats enabled. Is there something I'm missing? How so I solve this?
52 Answers
From here:
/gameruleSets or queries a game rule value.
Syntax
Computer
gamerule <rule name> [value]
Pocket Edition
gamerule <rule: string> <value: bool>
gamerule <rule: string> <value: int>
gamerule [rule: string]-
Additionally, issuing /gamerule by itself will list available game rules.
The particular gamerule you are seeking is called keepInventory.
Issue the following command:
/gamerule keepInventory true You seem to use /gamerules instead of the correct one /gamerule. It is without the s on the end.