Minecraft game rules list

By the ChunkScan Team · Updated October 2026

Quick answer: To look up a game rule, search the list: in Java 1.21.4, keep finds keepInventory (true or false, false by default), which Java 26.3 renamed keep_inventory (/gamerules?v=1.21.4&q=keep).

Every Java and Bedrock game rule with its type, default and category, plus a /gamerule command builder.

Sponsored

What game rules are

Game rules are switches and numbers saved with each Minecraft world. They decide whether you keep your items when you die, how fast crops and trees grow, whether mobs can break blocks, how many players must sleep to skip the night and much more. Java Edition 26.3 has 59 of them and Java 1.21.4 has 53. Each rule is either true or false, or a whole number, and every world starts on the defaults in the table above. The list comes straight from the game's own files, so the names, defaults and limits are the ones your game uses.

How to change a game rule

Type /gamerule, the rule's name and the new value in chat, for example /gamerule keep_inventory true. You need cheats turned on in single player, or operator rights on a server; command blocks and the server console work too. Type the name without a value to see what the world is set to now. A rule only changes the world you are in, and the change stays saved with that world. Use the table to set the values you want: the builder writes one command per rule that differs from its default, and Copy all puts them on your clipboard to paste into a command block chain or a data pack function.

Why the names changed

Java 1.21.4 used camelCase names like keepInventory and randomTickSpeed. In the 26.x releases game rules became a registry with snake_case names such as keep_inventory and random_tick_speed, and some got new names: doDaylightCycle is now advance_time, doInsomnia is spawn_phantoms and spawnRadius is respawn_radius. Rules that used to start with disable were turned around, so disableRaids false became raids true. The game upgrades old worlds itself; only commands, command blocks and data packs need the new names. Pick a version above to see its rules, and a note under each rule shows what it was called in the other version.

Sponsored

Rules players change most

keep_inventory is false by default: set it to true and you keep your inventory and experience when you die. random_tick_speed is 3, which means three random blocks per chunk section get a random tick each game tick; higher values make crops, saplings and grass grow faster, and 0 stops that growth and leaf decay. players_sleeping_percentage is 100, so every player must sleep to skip the night; at 0 one sleeping player is enough. mob_griefing false stops creepers from blowing up blocks and endermen from picking them up, and advance_time false freezes the time of day.

Java and Bedrock

Pick Java or Bedrock above. Java Edition rules come from each version's game files. Bedrock Edition has its own set of 38 rules with its own names, written as one lowercase word: keepinventory, randomtickspeed, dodaylightcycle. We list them with type and default as minecraft.wiki's Game rule page states them, because Bedrock has no game file we can read them from. Some defaults differ between the editions: randomtickspeed is 1 in Bedrock and random_tick_speed is 3 in Java. On Bedrock the builder writes the Bedrock names. Rules are never matched across editions, because the two sets don't line up one to one.

Open the seed search