List of Gamerules
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:truedoWeatherCycleโ Whether weather changes over time. Default:truedoFireTickโ Whether fire spreads and burns out. Default:truetntExplodesโ Whether TNT can explode. Default:truemobGriefingโ Whether mobs can destroy blocks. Default:truerandomTickSpeedโ How fast random block updates occur. Default:1
Mob Spawning & Drops
doMobSpawningโ Whether mobs naturally spawn. Default:truedoMobLootโ Whether mobs drop loot when killed. Default:truedoEntityDropsโ Whether entities drop items. Default:truedoTileDropsโ Whether blocks drop items when broken. Default:truedoInsomniaโ Whether phantoms spawn when players don't sleep. Default:true
Player
keepInventoryโ Whether players keep their inventory on death. Default:falsedoImmediateRespawnโ Whether players respawn immediately without the death screen. Default:falsenaturalRegenerationโ Whether players regenerate health naturally. Default:truefallDamageโ Whether players take fall damage. Default:truefireDamageโ Whether players take fire damage. Default:truedrowningDamageโ Whether players take drowning damage. Default:truepvpโ Whether players can damage each other. Default:trueshowDeathMessagesโ Whether death messages are shown in chat. Default:truespawnRadiusโ The radius around the spawn point where players can spawn. Default:5playerWaypointsโ Whether the player locator bar is shown. Default:true
Commands & UI
commandBlocksEnabledโ Whether command blocks can be used. Default:truecommandBlockOutputโ Whether command blocks output to chat. Default:truesendCommandFeedbackโ Whether command feedback is shown in chat. Default:trueshowCoordinatesโ Whether coordinates are shown on screen. Default:falseshowTagsโ Whether tags are shown above players. Default:truemaxCommandChainLengthโ 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:truedo_weather_cycleโ Whether weather changes over time. Default:truedo_fire_tickโ Whether fire spreads and burns out. Default:truemob_griefingโ Whether mobs can destroy blocks. Default:truerandom_tick_speedโ How fast random block updates occur. Default:3do_vines_spreadโ Whether vines spread to other blocks. Default:truesnow_accumulation_heightโ Maximum layers of snow that can accumulate. Default:1
Mob Spawning & Drops
do_mob_spawningโ Whether mobs naturally spawn. Default:truespawn_monstersโ Whether hostile mobs spawn. Default:truedo_mob_lootโ Whether mobs drop loot when killed. Default:truedo_entity_dropsโ Whether entities drop items. Default:truedo_tile_dropsโ Whether blocks drop items when broken. Default:truedo_insomniaโ Whether phantoms spawn when players don't sleep. Default:truedo_trader_spawningโ Whether wandering traders spawn. Default:truedo_warden_spawningโ Whether wardens can spawn. Default:truedo_patrol_spawningโ Whether pillager patrols spawn. Default:true
Player
keep_inventoryโ Whether players keep their inventory on death. Default:falsenatural_regenerationโ Whether players regenerate health naturally. Default:truefall_damageโ Whether players take fall damage. Default:truefire_damageโ Whether players take fire damage. Default:truedrowning_damageโ Whether players take drowning damage. Default:truefreeze_damageโ Whether players take freeze damage in powder snow. Default:truepvpโ Whether players can damage each other. Default:trueshow_death_messagesโ Whether death messages are shown in chat. Default:trueforgive_dead_playersโ Whether angered neutral mobs stop being angry when the player dies. Default:trueplayers_sleeping_percentageโ Percentage of players that need to sleep to skip the night. Default:100spawn_radiusโ The radius around the spawn point where players can spawn. Default:10locator_barโ Whether the player locator bar is shown. Default:true
Commands & UI
command_block_outputโ Whether command blocks output to chat. Default:truesend_command_feedbackโ Whether command feedback is shown in chat. Default:trueannounce_advancementsโ Whether advancements are announced in chat. Default:truereduced_debug_infoโ Whether the debug screen shows reduced information. Default:falsemax_command_chain_lengthโ Maximum number of commands in a chain. Default:65536disable_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:falsemob_explosion_drop_decayโ Whether mob explosions randomly drop loot. Default:trueblock_explosion_drop_decayโ Whether block explosions randomly drop loot. Default:trueglobal_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:falsespectators_generate_chunksโ Whether spectators generate chunks. Default:truedisable_raidsโ Whether raids are disabled. Default:falsemax_entity_crammingโ Maximum entities that can be in the same block. Default:24