Skip to content
Hosting · Server setup

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.10Since 1.21.11What it does
keepInventorykeep_inventoryItems stay after death —
mobGriefingmob_griefingCreepers and endermen break blocks
doDaylightCycleadvance_timeDay and night cycle
doWeatherCycleadvance_weatherWeather cycle
doFireTickfire_spread_radius_around_player (0 — fire does not spread)Fire spread
doMobSpawningspawn_mobsNatural mob spawning
doInsomniaspawn_phantomsPhantom spawning
doImmediateRespawnimmediate_respawnRespawn without the death screen
showDeathMessagesshow_death_messagesDeath messages in chat
announceAdvancementsshow_advancement_messagesAdvancement messages
naturalRegenerationnatural_health_regenerationHealth regeneration from saturation
fallDamage, fireDamage, drowningDamagefall_damage, fire_damage, drowning_damageDamage types
randomTickSpeedrandom_tick_speedPlant growth speed (default 3)
spawnRadiusrespawn_radiusRespawn point spread
playersSleepingPercentageplayers_sleeping_percentagePercentage of sleeping players required to skip the night — Sleep
maxEntityCrammingmax_entity_crammingEntity cramming threshold
disableElytraMovementCheckelytra_movement_check (value is inverted)Disable elytra flight check
commandBlockOutputcommand_block_outputCommand block output to console
sendCommandFeedbacksend_command_feedbackCommand responses in chat
reducedDebugInforeduced_debug_infoReduced 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.

Minecraft hostingYour server runs while you are offlineCreate server