Minecraft Guidance

List of Gamerules

JustKris ๐ŸŒ•JustKris ๐ŸŒ•
Updated November 2, 2026ยท31 views

List of Gamerules

Gamerules let you customize how your Minecraft world works. You can set a gamerule using the following command in your console:

Java Edition & Bedrock Edition: gamerule <rule_name> <value>

๐Ÿ“ Note: On Bedrock, do not include the / when typing commands in the console โ€” only use it in-game. Also, as of Java Edition 26.x, gamerule names have changed from camelCase (e.g. keepInventory) to snake_case (e.g. keep_inventory). Bedrock still uses camelCase.


Bedrock Edition Gamerules

World & Environment

  • doDaylightCycle โ€” Whether the day/night cycle is enabled. Default: true
  • doWeatherCycle โ€” Whether weather changes over time. Default: true
  • doFireTick โ€” Whether fire spreads and burns out. Default: true
  • tntExplodes โ€” Whether TNT can explode. Default: true
  • mobGriefing โ€” Whether mobs can destroy blocks. Default: true
  • randomTickSpeed โ€” How fast random block updates occur. Default: 1

Mob Spawning & Drops

  • doMobSpawning โ€” Whether mobs naturally spawn. Default: true
  • doMobLoot โ€” Whether mobs drop loot when killed. Default: true
  • doEntityDrops โ€” Whether entities drop items. Default: true
  • doTileDrops โ€” Whether blocks drop items when broken. Default: true
  • doInsomnia โ€” Whether phantoms spawn when players don't sleep. Default: true

Player

  • keepInventory โ€” Whether players keep their inventory on death. Default: false
  • doImmediateRespawn โ€” Whether players respawn immediately without the death screen. Default: false
  • naturalRegeneration โ€” Whether players regenerate health naturally. Default: true
  • fallDamage โ€” Whether players take fall damage. Default: true
  • fireDamage โ€” Whether players take fire damage. Default: true
  • drowningDamage โ€” Whether players take drowning damage. Default: true
  • pvp โ€” Whether players can damage each other. Default: true
  • showDeathMessages โ€” Whether death messages are shown in chat. Default: true
  • spawnRadius โ€” The radius around the spawn point where players can spawn. Default: 5
  • playerWaypoints โ€” Whether the player locator bar is shown. Default: true

Commands & UI

  • commandBlocksEnabled โ€” Whether command blocks can be used. Default: true
  • commandBlockOutput โ€” Whether command blocks output to chat. Default: true
  • sendCommandFeedback โ€” Whether command feedback is shown in chat. Default: true
  • showCoordinates โ€” Whether coordinates are shown on screen. Default: false
  • showTags โ€” Whether tags are shown above players. Default: true
  • maxCommandChainLength โ€” Maximum number of commands in a chain. Default: 65536

Java Edition Gamerules

๐Ÿ“ Note: As of Java Edition 26.x, gamerule names use snake_case (e.g. keep_inventory). Older versions use camelCase (e.g. keepInventory).

World & Environment

  • do_daylight_cycle โ€” Whether the day/night cycle is enabled. Default: true
  • do_weather_cycle โ€” Whether weather changes over time. Default: true
  • do_fire_tick โ€” Whether fire spreads and burns out. Default: true
  • mob_griefing โ€” Whether mobs can destroy blocks. Default: true
  • random_tick_speed โ€” How fast random block updates occur. Default: 3
  • do_vines_spread โ€” Whether vines spread to other blocks. Default: true
  • snow_accumulation_height โ€” Maximum layers of snow that can accumulate. Default: 1

Mob Spawning & Drops

  • do_mob_spawning โ€” Whether mobs naturally spawn. Default: true
  • spawn_monsters โ€” Whether hostile mobs spawn. Default: true
  • do_mob_loot โ€” Whether mobs drop loot when killed. Default: true
  • do_entity_drops โ€” Whether entities drop items. Default: true
  • do_tile_drops โ€” Whether blocks drop items when broken. Default: true
  • do_insomnia โ€” Whether phantoms spawn when players don't sleep. Default: true
  • do_trader_spawning โ€” Whether wandering traders spawn. Default: true
  • do_warden_spawning โ€” Whether wardens can spawn. Default: true
  • do_patrol_spawning โ€” Whether pillager patrols spawn. Default: true

Player

  • keep_inventory โ€” Whether players keep their inventory on death. Default: false
  • natural_regeneration โ€” Whether players regenerate health naturally. Default: true
  • fall_damage โ€” Whether players take fall damage. Default: true
  • fire_damage โ€” Whether players take fire damage. Default: true
  • drowning_damage โ€” Whether players take drowning damage. Default: true
  • freeze_damage โ€” Whether players take freeze damage in powder snow. Default: true
  • pvp โ€” Whether players can damage each other. Default: true
  • show_death_messages โ€” Whether death messages are shown in chat. Default: true
  • forgive_dead_players โ€” Whether angered neutral mobs stop being angry when the player dies. Default: true
  • players_sleeping_percentage โ€” Percentage of players that need to sleep to skip the night. Default: 100
  • spawn_radius โ€” The radius around the spawn point where players can spawn. Default: 10
  • locator_bar โ€” Whether the player locator bar is shown. Default: true

Commands & UI

  • command_block_output โ€” Whether command blocks output to chat. Default: true
  • send_command_feedback โ€” Whether command feedback is shown in chat. Default: true
  • announce_advancements โ€” Whether advancements are announced in chat. Default: true
  • reduced_debug_info โ€” Whether the debug screen shows reduced information. Default: false
  • max_command_chain_length โ€” Maximum number of commands in a chain. Default: 65536
  • disable_elytra_movement_check โ€” Whether the server skips checking elytra speed. Default: false

Explosions & Drops

  • tnt_explosion_drop_decay โ€” Whether TNT explosions randomly drop loot. Default: false
  • mob_explosion_drop_decay โ€” Whether mob explosions randomly drop loot. Default: true
  • block_explosion_drop_decay โ€” Whether block explosions randomly drop loot. Default: true
  • global_sound_events โ€” Whether certain sounds are heard by all players. Default: true

Other

  • do_limited_crafting โ€” Whether players can only craft recipes they've unlocked. Default: false
  • spectators_generate_chunks โ€” Whether spectators generate chunks. Default: true
  • disable_raids โ€” Whether raids are disabled. Default: false
  • max_entity_cramming โ€” Maximum entities that can be in the same block. Default: 24

Was this article helpful?

List of Gamerules | BaoHost Help Center