Gamerules: full list and examples
Minecraft game rules: keepInventory, mobGriefing, doDaylightCycle, and their names as of 1.21.11 (keep_inventory and others) — what they do and how to set them on a server.
Updated September 28, 2026
Gamerules are toggles for world behavior. They are set with a command and stored in the world itself, not in the config: each world has its own.
gamerule keepInventory true
gamerule mobGriefing false
Without a value, the command shows the current one: gamerule keepInventory.
As of Java 1.21.11, all rules have been renamed to underscore style, and on servers 1.21.11 and 26.x the command is written like this: gamerule keep_inventory true, gamerule mob_griefing false. Both names are in the table below.
Most useful
| Rule before 1.21.10 | Since 1.21.11 | What it does |
|---|---|---|
keepInventory | keep_inventory | Items stay after death — |
mobGriefing | mob_griefing | Creepers and endermen break blocks |
doDaylightCycle | advance_time | Day and night cycle |
doWeatherCycle | advance_weather | Weather cycle |
doFireTick | fire_spread_radius_around_player (0 — fire does not spread) | Fire spread |
doMobSpawning | spawn_mobs | Natural mob spawning |
doInsomnia | spawn_phantoms | Phantom spawning |
doImmediateRespawn | immediate_respawn | Respawn without the death screen |
showDeathMessages | show_death_messages | Death messages in chat |
announceAdvancements | show_advancement_messages | Advancement messages |
naturalRegeneration | natural_health_regeneration | Health regeneration from saturation |
fallDamage, fireDamage, drowningDamage | fall_damage, fire_damage, drowning_damage | Damage types |
randomTickSpeed | random_tick_speed | Plant growth speed (default 3) |
spawnRadius | respawn_radius | Respawn point spread |
playersSleepingPercentage | players_sleeping_percentage | Percentage of sleeping players required to skip the night — Sleep |
maxEntityCramming | max_entity_cramming | Entity cramming threshold |
disableElytraMovementCheck | elytra_movement_check (value is inverted) | Disable elytra flight check |
commandBlockOutput | command_block_output | Command block output to console |
sendCommandFeedback | send_command_feedback | Command responses in chat |
reducedDebugInfo | reduced_debug_info | Reduced F3 for players |
Caution
randomTickSpeed above 20 turns the server into a slideshow: each tick processes three times as many blocks. This is the most common way to “accidentally” drop TPS — Common causes of lag.
doFireTick false (since 1.21.11 — fire_spread_radius_around_player 0) is often set together with anti-grief: a lightning fire can destroy a wooden structure entirely.
Different worlds
In a world network, the rule is set separately for each one: /execute in minecraft:the_nether run gamerule ... or from the corresponding world.
