Minecraft Java and Bedrock gamerules: list and commands
Practical list of Minecraft Java Edition and Bedrock Edition gamerules: /gamerule syntax, new snake_case names (1.21.11+), camelCase equivalents, exclusive rules and ready packs for SMP, creative and events.

In RoxyCloud, open your server Console, enter the command without / and press Enter. Java 1.21.11 uses names such as gamerule minecraft:keep_inventory true. The Java table below uses that version; earlier releases use different names. Check the edition before copying.
Gamerules adjust inventory on death, mob griefing, the day cycle, spawn and PvP with /gamerule, without plugins. This guide covers Java Edition and Bedrock in 2026, including the Java 1.21.11+ name change.
How to use /gamerule
/gamerule <rule_name> # query
/gamerule <rule_name> <value> # setThey apply per world (they do not reset on restart), need OP/cheats/console and names change between editions. On Paper or Purpur, it works like vanilla.
- Java: panel console or chat with OP 2+. Confirm if it is 1.21.11+ (snake_case) or older (camelCase).
- Bedrock: cheats on or console. Lowercase names; in the console, often without /.
- Test with /gamerule <name> with no value to confirm the rule exists in that version.
Java rename (camelCase → snake_case)
| Before (≤ 1.21.10) | Now (1.21.11+) | What it does |
|---|---|---|
| keepInventory | keep_inventory | Keeps inventory and XP on death |
| doDaylightCycle | advance_time | Day/night cycle |
| doWeatherCycle | advance_weather | Natural weather change |
| doMobSpawning | spawn_mobs | Natural mob spawn |
| mobGriefing | mob_griefing | Mobs change blocks / pick up items |
| naturalRegeneration | natural_health_regeneration | Hunger regeneration |
| doImmediateRespawn | immediate_respawn | Respawn without the death screen |
| playersSleepingPercentage | players_sleeping_percentage | % to skip the night |
| randomTickSpeed | random_tick_speed | Random tick speed |
| disableRaids | raids (inverted) | true = raids active |
Essential gamerules
| Java (1.21.11+) | Bedrock | Default | Typical use |
|---|---|---|---|
| keep_inventory (keepInventory) | keepinventory | false | Casual SMP |
| mob_griefing (mobGriefing) | mobgriefing | true | false = protects builds |
| advance_time (doDaylightCycle) | dodaylightcycle | true | false = fixed day |
| spawn_mobs (doMobSpawning) | domobspawning | true | false = adventure without spawn |
| players_sleeping_percentage | playerssleepingpercentage | 100 | e.g. 50 = half sleep |
| random_tick_speed | randomtickspeed | 3 (JE) / 1 (BE) | farms (CPU cost) |
| pvp | pvp | true | false = peaceful SMP |
# Java 1.21.11+
/gamerule minecraft:keep_inventory true
/gamerule minecraft:mob_griefing false
/gamerule minecraft:advance_time false
/time set day
# Java ≤ 1.21.10
/gamerule keepInventory true
/gamerule mobGriefing false
# Bedrock
/gamerule keepinventory true
/gamerule mobgriefing falseBedrock exclusives
| Bedrock rule | Default | What it is for |
|---|---|---|
| showcoordinates | true | Shows XYZ on the HUD |
| dofiretick | true | Fire spreads naturally |
| recipesunlock | true | Recipes need to be unlocked |
| respawnblocksexplode | true | Bed/anchor explode outside the dimension |
Ready packs
/gamerule minecraft:keep_inventory true
/gamerule minecraft:mob_griefing false
/gamerule minecraft:players_sleeping_percentage 50/gamerule minecraft:advance_time false
/gamerule minecraft:advance_weather false
/gamerule minecraft:spawn_mobs false
/gamerule minecraft:mob_griefing false
/gamerule minecraft:immediate_respawn true
/time set noonCautions and myths
- spawn_mobs false does not disable spawners, eggs or /summon.
- mob_griefing false does not make creepers harmless to players.
- A high random_tick_speed drops TPS. Combine it with performance practices.
- On proxy networks, apply gamerules on each backend world.
On Java 1.21.11+, use snake_case (keep_inventory, advance_time). On Bedrock, lowercase (keepinventory, showcoordinates). Set up the server, apply the pack and adjust from the panel console.
Frequently asked questions
Straight answers before you order
You may also like
How to create a Java Minecraft server on RoxyCloud
Pay, open the panel, install Paper, accept the EULA, start and send the IP. No SSH.
Samuel Akires
Paper, Spigot or Purpur: which one should you pick?
Want plugins? Install Paper. Want mods? That is Forge, not Paper. Leave Spigot behind.
Samuel Akires
How to configure Simple Voice Chat on a Minecraft server
Complete guide to install and configure Simple Voice Chat on a Minecraft server: mod or plugin, UDP port 24454, config file, in-game tests and the most common proximity voice errors.
Samuel Akires
Minecraft server mods and optimization for performance
Complete Minecraft server performance guide: optimization mods, JVM flags, view-distance, entity limits, Spark profiler and practices to keep TPS stable on vanilla, Paper and modpacks.
Samuel Akires
