Minecraft Java and Bedrock gamerules: list and commands

Minecraft Java and Bedrock gamerule list with /gamerule commands: keepInventory, mobGriefing, daylight cycle, 1.21.11+ names and server presets. RoxyCloud guide.

How do I use the /gamerule command in Minecraft?

Syntax: /gamerule <name> <value>. Without a value, it shows the current one. On a Java server, use the panel console or chat with OP 2+. On Bedrock, enable cheats or use the console (often without the leading slash).

Why does keepInventory no longer work on Java?

On Java 1.21.11+, the name became keep_inventory (optionally minecraft:keep_inventory). On older versions, use keepInventory. Check the server version before copying.

What is the difference between Java and Bedrock gamerules?

Modern Java uses snake_case; Bedrock uses lowercase without underscores (keepinventory, dodaylightcycle). Some rules exist only on Java (raids, spawn_wardens) and only on Bedrock (showcoordinates, dofiretick).

How do I turn off the day cycle on the server?

Java 1.21.11+: /gamerule advance_time false. Older Java: /gamerule doDaylightCycle false. Bedrock: /gamerule dodaylightcycle false. Then use /time set day.

Does mobGriefing false stop creepers from killing players?

No. With mob_griefing false, creepers stop destroying blocks, but damage to players continues. It is build protection, not PvE protection.

Does a high randomTickSpeed slow the server?

Yes. High values increase random ticks and CPU use. Default: 3 on Java, 1 on Bedrock. On SMP, avoid extreme numbers.

Frequently asked questions: Minecraft Java and Bedrock gamerules: list and commands

How do I use the /gamerule command in Minecraft?

Syntax: /gamerule <name> <value>. Without a value, it shows the current one. On a Java server, use the panel console or chat with OP 2+. On Bedrock, enable cheats or use the console (often without the leading slash).

Why does keepInventory no longer work on Java?

On Java 1.21.11+, the name became keep_inventory (optionally minecraft:keep_inventory). On older versions, use keepInventory. Check the server version before copying.

What is the difference between Java and Bedrock gamerules?

Modern Java uses snake_case; Bedrock uses lowercase without underscores (keepinventory, dodaylightcycle). Some rules exist only on Java (raids, spawn_wardens) and only on Bedrock (showcoordinates, dofiretick).

How do I turn off the day cycle on the server?

Java 1.21.11+: /gamerule advance_time false. Older Java: /gamerule doDaylightCycle false. Bedrock: /gamerule dodaylightcycle false. Then use /time set day.

Does mobGriefing false stop creepers from killing players?

No. With mob_griefing false, creepers stop destroying blocks, but damage to players continues. It is build protection, not PvE protection.

Does a high randomTickSpeed slow the server?

Yes. High values increase random ticks and CPU use. Default: 3 on Java, 1 on Bedrock. On SMP, avoid extreme numbers.

Minecraft Java and Bedrock gamerules: list and commands | RoxyCloud