Changing the Gamerule KeepInventory

Apologies if this is blindingly obvious.

I would like to add the gamerule KeepInventory to my Minecraft server. If I just type /gamerule KeepInventory true in the console, I get “Incorrect argument for command”

How to I go about changing this setting?

Many thanks

Don’t put a slash in front, that’s only needed in-game.

I tried without the slash - same result.

This is what I typed:
gamerule KeepInventory true

On a Java 1.20 server.

Does the exact same command work in-game as an op user?

My mistake - should have been lower camel-case for the command:


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.