Minecraft game rules: every rule, default and old name

A game rule is a setting you change in a running world with the /gamerule command, for example /gamerule keep_inventory true. Since Java Edition 1.21.11 the names are snake_case, so guides written for 1.21.10 or earlier that say keepInventory use the old name. Below are all 59 rules of Java 26.3 with the default we measured, a copy button for the command, an old-name lookup and our opinion on whether a friends server might want to change each one.

Unofficial reference, not affiliated with Mojang or Microsoft.

Java Edition 26.3. Rule ids MEASURED 4 October 2026, defaults MEASURED 7 October 2026 on the official 26.3 server (58 of 59 defaults); old names VERIFIED FROM PRIMARY SOURCE (Mojang release notes) or INFERRED; effect sentences are our own wording, INFERRED, not tested in a running game. Not Bedrock.

How to change a game rule

Type /gamerule followed by the rule name to see its current value, or add a value to change it, for example /gamerule pvp false. Type the line in the server console without the slash; in game chat, start with /.

Rule values are stored in the world save (MEASURED 7 October 2026: two values set in one run were read back unchanged after a full stop and restart of the server on the same world folder).

The command needs operator rights: in the measured command tree, gamerule is one of the commands for the “gamemasters” level. See how to give someone those rights in the whitelist, op and ban commands guide.

All 59 game rules

The default is the value the official server printed for each rule on a default server (flat world, local run). The type (true/false or whole number) follows from that value. We state no value ranges, because we did not measure any. The explanations are ours. The “Friends server” note and the often/sometimes/rarely flag are our opinion about a small private group, not a measurement and not a Mojang recommendation.

Showing 59 of 59 rules

  • advance_time

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether the time of day moves forward on its own.

    Friends server (our opinion). Leave it on. Turning it off freezes the time of day, which can suit a build contest.

    Show the value/gamerule advance_time
    Change it/gamerule advance_time false
  • advance_weather

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether the weather changes on its own.

    Friends server (our opinion). Leave it on. Turning it off keeps whatever weather is current.

    Show the value/gamerule advance_weather
    Change it/gamerule advance_weather false
  • allow_entering_nether_using_portals

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether players can travel to the Nether through portals.

    Friends server (our opinion). Rarely worth changing. Turning it off keeps the group in the Overworld, which is only useful for a deliberate challenge.

    Show the value/gamerule allow_entering_nether_using_portals
    Change it/gamerule allow_entering_nether_using_portals false
  • block_drops

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether broken blocks drop items.

    Friends server (our opinion). Leave it on. Turned off, mining yields nothing.

    Show the value/gamerule block_drops
    Change it/gamerule block_drops false
  • block_explosion_drop_decay

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Applies the explosion drop decay to blocks destroyed by explosions that a block causes. We have not tested the exact effect.

    Friends server (our opinion). Rarely worth changing on a small server.

    Show the value/gamerule block_explosion_drop_decay
    Change it/gamerule block_explosion_drop_decay false
  • command_block_output

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether command blocks report what they do in chat.

    Friends server (our opinion). Turn it off if your command blocks make the chat noisy; otherwise leave it.

    Show the value/gamerule command_block_output
    Change it/gamerule command_block_output false
  • command_blocks_work

    true or falseSometimes worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether command blocks run at all.

    Friends server (our opinion). Only matters if someone uses command blocks. Turning it off stops them all, which is a quick way to rule them out on a shared world.

    Show the value/gamerule command_blocks_work
    Change it/gamerule command_blocks_work false
  • drowning_damage

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether drowning hurts players and mobs.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule drowning_damage
    Change it/gamerule drowning_damage false
  • elytra_movement_check

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether the server checks how a player moves while gliding with an elytra. Mojang inverted this one when it renamed it.

    Friends server (our opinion). Leave it on. Turning it off removes a check, so it is only for a group you trust and for a reason you can name.

    Show the value/gamerule elytra_movement_check
    Change it/gamerule elytra_movement_check false
  • ender_pearls_vanish_on_death

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether ender pearls a player threw disappear when that player dies.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule ender_pearls_vanish_on_death
    Change it/gamerule ender_pearls_vanish_on_death false
  • entity_drops

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether things that are not mobs, such as vehicles, drop items when destroyed.

    Friends server (our opinion). Leave it on.

    Show the value/gamerule entity_drops
    Change it/gamerule entity_drops false
  • fall_damage

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether falling hurts players and mobs.

    Friends server (our opinion). Rarely worth changing. Turning it off removes a common cause of accidental deaths while building.

    Show the value/gamerule fall_damage
    Change it/gamerule fall_damage false
  • fire_damage

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether fire and lava hurt players and mobs.

    Friends server (our opinion). Rarely worth changing. This does not stop fire from spreading; see fire_spread_radius_around_player for that.

    Show the value/gamerule fire_damage
    Change it/gamerule fire_damage false
  • fire_spread_radius_around_player

    whole numberOften worth changing (our opinion)

    Default (measured)
    128
    Type
    whole number

    The maximum distance in blocks at which fire can spread around a player. 0 turns fire spreading off, and -1 lets fire spread even with no player nearby. It replaces two older rules, doFireTick and allowFireTicksAwayFromPlayer.

    Friends server (our opinion). Some builders set it to 0 (our opinion) so a stray fire does not spread to a base. Keep in mind it also stops fire from spreading in places you might want it.

    Show the value/gamerule fire_spread_radius_around_player
    Change it/gamerule fire_spread_radius_around_player 128
  • forgive_dead_players

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether mobs that were angry at a player calm down when that player dies.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule forgive_dead_players
    Change it/gamerule forgive_dead_players false
  • freeze_damage

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether freezing, such as standing in powder snow, hurts players and mobs.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule freeze_damage
    Change it/gamerule freeze_damage false
  • global_sound_events

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether some world-wide sounds can be heard by every player instead of only those nearby.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule global_sound_events
    Change it/gamerule global_sound_events false
  • immediate_respawn

    true or falseOften worth changing (our opinion)

    Default (measured)
    false
    Type
    true or false

    Whether players respawn at once, skipping the death screen.

    Friends server (our opinion). Suits relaxed servers where dying is a small setback (our opinion). Off keeps the usual death screen.

    Show the value/gamerule immediate_respawn
    Change it/gamerule immediate_respawn true
  • keep_inventory

    true or falseOften worth changing (our opinion)

    Default (measured)
    false
    Type
    true or false

    Whether players keep their items when they die instead of dropping them.

    Friends server (our opinion). A change friends groups often want (our opinion): nobody has to run back to a pile of lost items. Leave it off if you want death to cost something.

    Show the value/gamerule keep_inventory
    Change it/gamerule keep_inventory true
  • lava_source_conversion

    true or falseRarely worth changing (our opinion)

    Default (measured)
    false
    Type
    true or false

    Whether flowing lava can turn into source lava (the way water can).

    Friends server (our opinion). Rarely worth changing. It is off by default.

    Show the value/gamerule lava_source_conversion
    Change it/gamerule lava_source_conversion true
  • limited_crafting

    true or falseRarely worth changing (our opinion)

    Default (measured)
    false
    Type
    true or false

    Whether players can only craft recipes they have already unlocked.

    Friends server (our opinion). Rarely worth changing. Only for a group that wants a progression challenge.

    Show the value/gamerule limited_crafting
    Change it/gamerule limited_crafting true
  • locator_bar

    true or falseSometimes worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether the locator bar, which shows where other players are, is turned on.

    Friends server (our opinion). Some groups turn it off to keep the screen clean or to make finding each other part of the game. Leave it on if you like seeing where friends are.

    Show the value/gamerule locator_bar
    Change it/gamerule locator_bar false
  • log_admin_commands

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether commands run by admins are written to the server log.

    Friends server (our opinion). Leave it on: the log tells you who ran what when something odd happens.

    Show the value/gamerule log_admin_commands
    Change it/gamerule log_admin_commands false
  • max_block_modifications

    whole numberRarely worth changing (our opinion)

    Default (measured)
    32768
    Type
    whole number

    The most blocks a single command (such as a large fill) may change. Mojang renamed it from command_modification_block_limit.

    Friends server (our opinion). Raise it only if a big fill or clone is refused for being too large.

    Show the value/gamerule max_block_modifications
    Change it/gamerule max_block_modifications 32768
  • max_command_forks

    whole numberRarely worth changing (our opinion)

    Default (measured)
    65536
    Type
    whole number

    A limit on how many times a command can branch while it runs.

    Friends server (our opinion). Leave it unless you build elaborate command systems.

    Show the value/gamerule max_command_forks
    Change it/gamerule max_command_forks 65536
  • max_command_sequence_length

    whole numberRarely worth changing (our opinion)

    Default (measured)
    65536
    Type
    whole number

    A limit on how long a chain of commands can be.

    Friends server (our opinion). Leave it unless you build long command block chains.

    Show the value/gamerule max_command_sequence_length
    Change it/gamerule max_command_sequence_length 65536
  • max_entity_cramming

    whole numberRarely worth changing (our opinion)

    Default (measured)
    24
    Type
    whole number

    How many entities can crowd into one spot before they start taking damage.

    Friends server (our opinion). Leave it unless you build a mob farm and know why you need to change it.

    Show the value/gamerule max_entity_cramming
    Change it/gamerule max_entity_cramming 24
  • max_minecart_speed

    not measuredRarely worth changing (our opinion)

    Default (measured)
    not measured
    Type
    not measured

    On a default server the console answered “Incorrect argument for command” for this rule, so we could not read a value. It probably needs an experimental feature to be enabled (INFERRED, untested).

    A cap on minecart speed, judging by its name. We could not read it on a default server (see the note on the default), so we do not describe it further.

    Friends server (our opinion). Not covered here, because we could not read it on a default server.

    Show the value/gamerule max_minecart_speed
    Change it/gamerule max_minecart_speed <value>
  • max_snow_accumulation_height

    whole numberRarely worth changing (our opinion)

    Default (measured)
    1
    Type
    whole number

    How many layers of snow can pile up on the ground during snowfall.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule max_snow_accumulation_height
    Change it/gamerule max_snow_accumulation_height 1
  • mob_drops

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether mobs drop their loot when they die.

    Friends server (our opinion). Leave it on. Turned off, farms give nothing.

    Show the value/gamerule mob_drops
    Change it/gamerule mob_drops false
  • mob_explosion_drop_decay

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Applies the explosion drop decay to blocks destroyed by explosions that a mob causes. We have not tested the exact effect.

    Friends server (our opinion). Rarely worth changing on a small server.

    Show the value/gamerule mob_explosion_drop_decay
    Change it/gamerule mob_explosion_drop_decay false
  • mob_griefing

    true or falseOften worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether mobs are allowed to alter blocks in the world, for example through explosions or by moving blocks around.

    Friends server (our opinion). Some groups turn it off so a creeper cannot damage a base (our opinion). It can also change how some mobs behave, so test your farms after changing it.

    Show the value/gamerule mob_griefing
    Change it/gamerule mob_griefing false
  • natural_health_regeneration

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether players slowly heal on their own when well fed.

    Friends server (our opinion). Leave it on unless you want a harder game.

    Show the value/gamerule natural_health_regeneration
    Change it/gamerule natural_health_regeneration false
  • player_movement_check

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether the server checks how players move. Mojang inverted this one when it renamed it.

    Friends server (our opinion). Leave it on. Turning it off removes a check, so it is only for a group you trust and for a reason you can name.

    Show the value/gamerule player_movement_check
    Change it/gamerule player_movement_check false
  • players_nether_portal_creative_delay

    whole numberRarely worth changing (our opinion)

    Default (measured)
    0
    Type
    whole number

    How long a player in Creative mode must stand in a Nether portal before it takes them through. The unit is not stated by the data we have; it is probably game ticks.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule players_nether_portal_creative_delay
    Change it/gamerule players_nether_portal_creative_delay 0
  • players_nether_portal_default_delay

    whole numberRarely worth changing (our opinion)

    Default (measured)
    80
    Type
    whole number

    How long a player not in Creative mode must stand in a Nether portal before it takes them through. The unit is not stated by the data we have; it is probably game ticks.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule players_nether_portal_default_delay
    Change it/gamerule players_nether_portal_default_delay 80
  • players_sleeping_percentage

    whole numberOften worth changing (our opinion)

    Default (measured)
    100
    Type
    whole number

    The share of players, in percent, that must be sleeping for the night to be skipped.

    Friends server (our opinion). A change worth considering (our opinion): at the default of 100 everyone must be in bed, so one player who is away holds up the night. 50 lets half the group skip it.

    Show the value/gamerule players_sleeping_percentage
    Change it/gamerule players_sleeping_percentage 100
  • projectiles_can_break_blocks

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether projectiles, such as arrows, can break blocks that they hit.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule projectiles_can_break_blocks
    Change it/gamerule projectiles_can_break_blocks false
  • pvp

    true or falseOften worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether players can hurt each other.

    Friends server (our opinion). Some friend groups turn it off so a joke hit never starts an argument (our opinion). Leave it on if fights are part of the fun.

    Show the value/gamerule pvp
    Change it/gamerule pvp false
  • raids

    true or falseSometimes worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether village raids can happen. Mojang inverted this one when it renamed it from disableRaids.

    Friends server (our opinion). Turn it off if a raid on a village you rely on would spoil the evening.

    Show the value/gamerule raids
    Change it/gamerule raids false
  • random_tick_speed

    whole numberOften worth changing (our opinion)

    Default (measured)
    3
    Type
    whole number

    How fast random block updates happen, which is what drives things like crop growth.

    Friends server (our opinion). Some groups raise it to speed up farms. A higher value gives the server more work to do (INFERRED), so raise it a little at a time.

    Show the value/gamerule random_tick_speed
    Change it/gamerule random_tick_speed 3
  • reduced_debug_info

    true or falseRarely worth changing (our opinion)

    Default (measured)
    false
    Type
    true or false

    Whether the F3 debug screen shows less information.

    Friends server (our opinion). Only for a group that wants to hide coordinates for a challenge.

    Show the value/gamerule reduced_debug_info
    Change it/gamerule reduced_debug_info true
  • respawn_radius

    whole numberRarely worth changing (our opinion)

    Default (measured)
    10
    Type
    whole number

    How far from the world spawn point a player can be placed when respawning without a bed. Mojang renamed it from spawnRadius.

    Friends server (our opinion). Rarely worth changing. A smaller value keeps everyone close together after a death.

    Show the value/gamerule respawn_radius
    Change it/gamerule respawn_radius 10
  • send_command_feedback

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether a player sees the result of the commands they run.

    Friends server (our opinion). Turn it off if a command block or script floods your chat with results.

    Show the value/gamerule send_command_feedback
    Change it/gamerule send_command_feedback false
  • show_advancement_messages

    true or falseSometimes worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether the chat announces when someone earns an advancement. Mojang renamed it from announceAdvancements.

    Friends server (our opinion). Some groups turn it off to keep the chat quiet.

    Show the value/gamerule show_advancement_messages
    Change it/gamerule show_advancement_messages false
  • show_death_messages

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether the chat announces when someone dies.

    Friends server (our opinion). Rarely worth changing (our opinion). For some groups it is part of the fun.

    Show the value/gamerule show_death_messages
    Change it/gamerule show_death_messages false
  • spawn_mobs

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether mobs spawn naturally. Mojang renamed it from doMobSpawning.

    Friends server (our opinion). Turning it off makes a calm creative world, but also removes animals and farms that depend on spawning.

    Show the value/gamerule spawn_mobs
    Change it/gamerule spawn_mobs false
  • spawn_monsters

    true or falseSometimes worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether hostile monsters spawn naturally, judging by its name.

    Friends server (our opinion). Useful for a build-only world with no hostile monsters.

    Show the value/gamerule spawn_monsters
    Change it/gamerule spawn_monsters false
  • spawn_patrols

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether pillager patrols spawn. Mojang renamed it from doPatrolSpawning.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule spawn_patrols
    Change it/gamerule spawn_patrols false
  • spawn_phantoms

    true or falseOften worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether phantoms spawn. Mojang renamed it from doInsomnia.

    Friends server (our opinion). A change worth considering (our opinion): phantoms show up for players who have not slept, which can annoy groups with different schedules. Turning this off removes them.

    Show the value/gamerule spawn_phantoms
    Change it/gamerule spawn_phantoms false
  • spawn_wandering_traders

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether wandering traders spawn. Mojang renamed it from doTraderSpawning.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule spawn_wandering_traders
    Change it/gamerule spawn_wandering_traders false
  • spawn_wardens

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether wardens spawn. Mojang renamed it from doWardenSpawning.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule spawn_wardens
    Change it/gamerule spawn_wardens false
  • spawner_blocks_work

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether mob spawner blocks produce mobs. Mojang renamed it from spawnerBlocksEnabled.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule spawner_blocks_work
    Change it/gamerule spawner_blocks_work false
  • spectators_generate_chunks

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether players in Spectator mode cause new parts of the world to be generated as they fly.

    Friends server (our opinion). Rarely worth changing. Generating terrain is work for the server, so exploring far in spectator mode is not free (INFERRED).

    Show the value/gamerule spectators_generate_chunks
    Change it/gamerule spectators_generate_chunks false
  • spread_vines

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether vines spread. Mojang renamed it from doVinesSpread.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule spread_vines
    Change it/gamerule spread_vines false
  • tnt_explodes

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether TNT can explode.

    Friends server (our opinion). Turn it off if a stray spark near a friend’s build is a worry.

    Show the value/gamerule tnt_explodes
    Change it/gamerule tnt_explodes false
  • tnt_explosion_drop_decay

    true or falseRarely worth changing (our opinion)

    Default (measured)
    false
    Type
    true or false

    Applies the explosion drop decay to blocks destroyed by TNT. We have not tested the exact effect.

    Friends server (our opinion). Rarely worth changing on a small server.

    Show the value/gamerule tnt_explosion_drop_decay
    Change it/gamerule tnt_explosion_drop_decay true
  • universal_anger

    true or falseRarely worth changing (our opinion)

    Default (measured)
    false
    Type
    true or false

    Whether a mob that is angry at a player makes other neutral mobs of its kind angry at that player too, judging by its name.

    Friends server (our opinion). Rarely worth changing.

    Show the value/gamerule universal_anger
    Change it/gamerule universal_anger true
  • water_source_conversion

    true or falseRarely worth changing (our opinion)

    Default (measured)
    true
    Type
    true or false

    Whether flowing water can turn into source water, which is what makes an infinite water source possible.

    Friends server (our opinion). Rarely worth changing. It is on by default.

    Show the value/gamerule water_source_conversion
    Change it/gamerule water_source_conversion false

Old name lookup (1.21.10 and earlier)

In Java Edition 1.21.10 and earlier, game rules were written in camelCase, like keepInventory; 1.21.11 renamed them. Type an old name, in any letter case, to find the current one. You can also type a current id to check that it exists.

All old names

The full list, for reading without the lookup.

Old nameCurrent idSource
allowEnteringNetherUsingPortalsallow_entering_nether_using_portalsINFERRED, same word
allowFireTicksAwayFromPlayerfire_spread_radius_around_playerMojang release notes, replaced
announceAdvancementsshow_advancement_messagesMojang release notes
blockExplosionDropDecayblock_explosion_drop_decayINFERRED, same word
command_modification_block_limitmax_block_modificationsMojang release notes
commandBlockOutputcommand_block_outputINFERRED, same word
commandBlocksEnabledcommand_blocks_workMojang release notes
disableElytraMovementCheckelytra_movement_checkMojang release notes, value inverted
disablePlayerMovementCheckplayer_movement_checkMojang release notes, value inverted
disableRaidsraidsMojang release notes, value inverted
doDaylightCycleadvance_timeMojang release notes
doEntityDropsentity_dropsMojang release notes
doFireTickfire_spread_radius_around_playerMojang release notes, replaced
doImmediateRespawnimmediate_respawnMojang release notes
doInsomniaspawn_phantomsMojang release notes
doLimitedCraftinglimited_craftingMojang release notes
doMobLootmob_dropsMojang release notes
doMobSpawningspawn_mobsMojang release notes
doPatrolSpawningspawn_patrolsMojang release notes
doTileDropsblock_dropsMojang release notes
doTraderSpawningspawn_wandering_tradersMojang release notes
doVinesSpreadspread_vinesMojang release notes
doWardenSpawningspawn_wardensMojang release notes
doWeatherCycleadvance_weatherMojang release notes
drowningDamagedrowning_damageINFERRED, same word
enderPearlsVanishOnDeathender_pearls_vanish_on_deathINFERRED, same word
fallDamagefall_damageINFERRED, same word
fireDamagefire_damageINFERRED, same word
forgiveDeadPlayersforgive_dead_playersINFERRED, same word
freezeDamagefreeze_damageINFERRED, same word
globalSoundEventsglobal_sound_eventsINFERRED, same word
keepInventorykeep_inventoryINFERRED, same word
lavaSourceConversionlava_source_conversionINFERRED, same word
locatorBarlocator_barINFERRED, same word
logAdminCommandslog_admin_commandsINFERRED, same word
maxCommandChainLengthmax_command_sequence_lengthMojang release notes
maxCommandForkCountmax_command_forksMojang release notes
maxEntityCrammingmax_entity_crammingINFERRED, same word
mobExplosionDropDecaymob_explosion_drop_decayINFERRED, same word
mobGriefingmob_griefingINFERRED, same word
naturalRegenerationnatural_health_regenerationMojang release notes
playersNetherPortalCreativeDelayplayers_nether_portal_creative_delayINFERRED, same word
playersNetherPortalDefaultDelayplayers_nether_portal_default_delayINFERRED, same word
playersSleepingPercentageplayers_sleeping_percentageINFERRED, same word
projectilesCanBreakBlocksprojectiles_can_break_blocksINFERRED, same word
pvppvpINFERRED, same word
randomTickSpeedrandom_tick_speedINFERRED, same word
reducedDebugInforeduced_debug_infoINFERRED, same word
sendCommandFeedbacksend_command_feedbackINFERRED, same word
showDeathMessagesshow_death_messagesINFERRED, same word
snowAccumulationHeightmax_snow_accumulation_heightMojang release notes
spawnerBlocksEnabledspawner_blocks_workMojang release notes
spawnRadiusrespawn_radiusMojang release notes
spectatorsGenerateChunksspectators_generate_chunksINFERRED, same word
tntExplodestnt_explodesINFERRED, same word
tntExplosionDropDecaytnt_explosion_drop_decayINFERRED, same word
universalAngeruniversal_angerINFERRED, same word
waterSourceConversionwater_source_conversionINFERRED, same word

Three rules were inverted. For example, disableRaids true meant no raids, while raids true means raids happen. If you copy an old value across, flip it.

Not on the lookup

We found no primary source for an old name of these rules, so we do not list one: max_minecart_speed, spawn_monsters.

Presets for a friends server

These are our own suggestions, not Mojang’s: a starting point, with one line on each value. Type the lines one after another in the server console without the slash; in game chat, start each with /. A rule not listed stays at its default.

Relaxed co-op

For a group that plays at different times and does not want death or sleep to get in the way.

  • /gamerule keep_inventory true: Nobody loses their items by dying.
  • /gamerule spawn_phantoms false: No phantoms for players who stayed up late.
  • /gamerule players_sleeping_percentage 50: Half the players in bed is enough to skip the night.
  • /gamerule immediate_respawn true: Skip the death screen: you respawn at once.

Builders, no accidents

For a group that mostly builds and wants a base to survive a mistake.

  • /gamerule mob_griefing false: Mobs cannot alter blocks, so a creeper does not damage a build. Test your farms afterwards.
  • /gamerule fire_spread_radius_around_player 0: Fire does not spread (0 turns it off, per Mojang’s release notes).
  • /gamerule pvp false: Players cannot hurt each other.

Related: the server.properties reference.

FAQ

What is the command to change a game rule?

Type /gamerule, the rule name and the new value, for example /gamerule keep_inventory true. With only the name it shows the current value. In the server console, leave out the slash; in game chat, start with /.

Why does /gamerule keepInventory no longer work?

Mojang renamed every game rule from camelCase to snake_case in Java Edition 1.21.11, so the current name is keep_inventory (primary source: Mojang’s 1.21.11 release notes, read 7 October 2026). Use the old-name lookup on this page for any other rule.

How do I turn on keep inventory for my friends?

Run /gamerule keep_inventory true as an operator. The measured default is false, so it is off until you change it. The value is stored in the world save (measured: it survived a restart).

What are the default values?

The defaults on this page are what the official 26.3 server printed for each rule on a default server (flat world, local run), 58 of 59. max_minecart_speed could not be read on a default server.

Do game rules work in Bedrock?

This page covers Java Edition only. Bedrock has its own list of game rules and we did not check it.

Sources

The rule ids are MEASURED (generated 4 October 2026) and the defaults are MEASURED (7 October 2026) from the official Java Edition 26.3 server, run on a development machine with its command tree and one query per rule; the server was then stopped. The renames come from Mojang’s release notes. The effect sentences are our own wording written from the rule names and general knowledge (INFERRED), and no rule was tested in a running game. We did not copy text from the community wiki.