Using gamerules in Minecraft
Game Rules control various aspects of the game play and provide additional customization for your server. You can change the game rules in console or in game as an Op. There's a lot of other Minecraft game rules, but these are some of the more commonly used. To change these game rules, you'll need to start the command with /gamerule in game or gamerule in console.
Game Rules
| Rule Name | Description | Possible Values | Default Value | Version |
|---|---|---|---|---|
advance_time | Whether the day-night cycle and moon phases progress. | true/false | true | 1.6+ |
advance_weather | Whether the weather will change. | true/false | true | 1.15+ |
command_block_output | Whether command blocks should notify admins when they perform commands. | true/false | true | 1.4+ |
command_blocks_work | Whether command blocks should be enabled. | true/false | true | 1.21.9+ |
drowning_damage | Whether the player should take damage when drowning. | true/false | true | 1.15+ |
elytra_movement_check | Whether the server should skip checking player speed when the player is wearing elytra. This can help with lag. | true/false | true | 1.9+ |
entity_drops | Whether entities that are not mobs should have drops. | true/false | true | 1.8+ |
fall_damage | Whether the player should take fall damage. | true/false | true | 1.15+ |
keep_inventory | Whether the player should keep items and experience in their inventory after death. | true/false | false | 1.4+ |
mob_griefing | Whether mobs should be able to change blocks, and whether mobs can pick up items. | true/false | true | 1.4+ |
players_sleeping_percentage | What percentage of players must sleep to skip the night. | 0-100 | 100 | 1.17+ |
pvp | Whether players can damage other players. | true/false | true | 1.21.9+ |
raids | Whether raids are disabled or not. | true/false | true | 1.14+ |
respawn_radius | The number of blocks outward from the world spawn coordinates that a player spawns in when first joining a server or when dying without a personal spawn point. | 0-? | 10 | 1.9+ |
show_avancement_messages | Whether advancements should be announced in chat. | true/false | true | 1.12+ |
spawn_phantoms | Whether phantoms can spawn in the nighttime. | true/false | true | 1.16+ |
spawn_wandering_traders | Whether wandering traders can spawn. | true/false | true | 1.15+ |
max_entity_cramming | The maximum number of pushable entities a mob or player can push, before taking 6♥♥♥ entity cramming damage per half-second. Setting to 0 or lower disables the rule. Damage affects Survival-mode or Adventure-mode players, and all mobs but bats. Pushable entities include non-Spectator-mode players, any mob except bats, as well as boats and minecarts. | 0-100 | 24 | 1.11+ |
Legacy Game Rules
The following are commonly used Game Rules prior to Minecraft 1.21.11
| Rule Name | Description | Possible Values | Default Value | Version |
|---|---|---|---|---|
| announceAdvancements | Whether advancements should be announced in chat | true/false | true | 1.12+ |
| mobGriefing | Whether mobs should be able to change blocks, and whether mobs can pick up items. | true/false | true | 1.4+ |
| disableElytraMovementCheck | Whether the server should skip checking player speed when the player is wearing elytra. This can help with lag. | true/false | false | 1.9+ |
| disableRaids | Whether raids are disabled or not | true/false | false | 1.14+ |
| doTraderSpawning | Whether wandering traders can spawn | true/false | true | 1.15+ |
| doWeatherCycle | Whether the weather will change | true/false | true | 1.15+ |
| doDaylightCycle | Whether the day-night cycle and moon phases progress | true/false | true | 1.6+ |
| playersSleepingPercentage | What percentage of players must sleep to skip the night. | 0-100 | 100 | 1.17+ |
| keepInventory | Whether the player should keep items and experience in their inventory after death | true/false | false | 1.4+ |
| spawnRadius | The number of blocks outward from the world spawn coordinates that a player spawns in when first joining a server or when dying without a personal spawnpoint | 0-? | 10 | 1.9+ |
| commandBlockOutput | Whether command blocks should notify admins when they perform commands | true/false | false | 1.4+ |
| doEntityDrops | Whether entities that are not mobs should have drops | true/false | true | 1.8+ |
| doFireTick | Whether fire should spread and naturally extinguish | true/false | true | 1.4+ |
| fallDamage | Whether the player should take fall damage | true/false | true | 1.15+ |
| drowningDamage | Whether the player should take damage when drowning | true/false | true | 1.15+ |
| doInsomnia | Whether phantoms can spawn in the nighttime | true/false | true | 1.16+ |
| maxEntityCramming | The maximum number of pushable entities a mob or player can push, before taking 6♥♥♥ entity cramming damage per half-second. Setting to 0 or lower disables the rule. Damage affects Survival-mode or Adventure-mode players, and all mobs but bats. Pushable entities include non-Spectator-mode players, any mob except bats, as well as boats and minecarts. | 0-100 | 24 | 1.11+ |
Updated 9 days ago

