Using gamerules in Minecraft
Game Rules control various aspects of the game play and provide additional customization for your server. You can run the game rules in console or in game as OP. There's a lot of other Minecraft game rule changes but these are some of the more commonly used. To use these commands you'll need to start the command with /gamerule
in game or gamerule
in console.
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 10 months ago