Useful Minecraft Game Rules for Your Server
Keep inventory, mob griefing, sleeping percentage and the other game rules server owners change most.
December 5, 20263 min read
How to change a rule
From the console, or in game as operator:
gamerule keepInventory true
gamerule playersSleepingPercentage 30Recent releases renamed game rules to forms such as keep_inventory. Press Tab after gamerule to see the names your version accepts.
The most used
| Rule | Effect |
|---|---|
| keepInventory | players keep items on death |
| mobGriefing | mobs can change blocks (also affects some villager behaviour) |
| doDaylightCycle | time passes |
| doWeatherCycle | weather changes |
| playersSleepingPercentage | share of players needed to skip the night |
| announceAdvancements | advancements shown in chat |
Careful with mobGriefing
Turning it off stops creeper block damage, but also stops villagers from farming.