Minecraft keepInventory error?

Pa
10

Somehow it already shows me if I just enter / g that it doesn't work, I've tried it several times now.

I play single player on 1.16.5 and entered it exactly like this:
/ gamerule keepInventory true
/ gamerule keepInventory

But it just doesn't want what I'm doing wrong

Sy

You have probably disabled the cheats.

[Java]

Go to Esc and then to "open in LAN". Then go to Allow cheats so that it says "on". Then click on "Start LAN World".

And then try again

Pa

Where can I activate it

Sy

I added above.

Pa

Thank-you

Po

Go into the world
Take a break where you can also set your profile and such
Go to the settings
Then you see your world name there and you scroll down until you see Cheats
Then go to deactivate

Sy

This is then intended for the Bedrock version.

Cu

You should have done generation with the world

Sy

No, you can edit this later in Java.

Po

No, he plays the Java Edition. It can also be done retrospectively.

Cu

Ik

Script Error Message? Sh Shockbakery71
What is this message? St StephanieItchy
Minecraft crashes (Opengl)? tu turtlebrayan