Gamerules change how your Minecraft world works, no mods needed. Freeze time, stop creepers from wrecking builds, keep your items when you die, and much more.
/gamerule [rule] [value]/gamerule [rule] shows its valueValues are true, false or a number. Each world keeps its own gamerules, so changing one world does not affect the others.
/gamerule. See how to enable cheats. You can skip any rule marked Java only.Change Gamerules From Your Panel
- In the left sidebar, under
Tools, clickWorld Manager. - Under
Your worlds, find your world. Have more than one? Pick it from the list at the top. - Click
Game Ruleson the world's card, next toDownload.
- Change the rules you want in the editor that opens.
Java 1.21.11 and Newer: Gamerule Names Changed
In Java 1.21.11 and the newer 26.x versions, every gamerule was renamed to snake_case. For example, keepInventory became keep_inventory (the minecraft: prefix is optional). This change is Java only.
Old names do not work on 1.21.11+, and new names do not work on older versions. Type
/gamerule with no rule name to see every name your server accepts.The rule cards below use the old names. This table covers the names that changed the most:
| Old Name (1.21.10 and earlier) | New Name (1.21.11+ / Version 26.x) | Notes |
|---|---|---|
| announceAdvancements | show_advancement_messages | |
| commandBlocksEnabled | command_blocks_work | Bedrock keeps commandblocksenabled |
| commandModificationBlockLimit | max_block_modifications | Gained a minimum value of 1 |
| disableElytraMovementCheck | elytra_movement_check | Value flipped, see below |
| disablePlayerMovementCheck | player_movement_check | Value flipped, see below |
| disableRaids | raids | Value flipped, see below |
| doDaylightCycle | advance_time | |
| doEntityDrops | entity_drops | |
| doFireTick | Removed (Java only) | Bedrock keeps doFireTick, see below |
| doImmediateRespawn | immediate_respawn | |
| doInsomnia | spawn_phantoms | Bedrock keeps doinsomnia |
| doLimitedCrafting | limited_crafting | |
| doMobLoot | mob_drops | |
| doMobSpawning | spawn_mobs | |
| doPatrolSpawning | spawn_patrols | |
| doTileDrops | block_drops | |
| doTraderSpawning | spawn_wandering_traders | |
| doVinesSpread | spread_vines | |
| doWardenSpawning | spawn_wardens | |
| doWeatherCycle | advance_weather | |
| maxCommandChainLength | max_command_sequence_length | Gained a minimum value of 0 |
| maxCommandForkCount | max_command_forks | Gained a minimum value of 1 |
| naturalRegeneration | natural_health_regeneration | |
| snowAccumulationHeight | max_snow_accumulation_height | Gained a range of 0 to 8 |
| spawnChunkRadius | Removed | Removed in 1.21.9, before the renaming |
| spawnRadius | respawn_radius | Gained a minimum value of 0 |
| spawnerBlocksEnabled | spawner_blocks_work | This rule itself was only added in 1.21.9 |
The new rules mean the opposite, so do not copy the old value across.
disableElytraMovementCheck truebecomeselytra_movement_check falsedisablePlayerMovementCheck truebecomesplayer_movement_check falsedisableRaids truebecomesraids false
- doFireTick is gone on Java 1.21.11+. The new
fire_spread_radius_around_playerlimits how far fire spreads around players (default 128,0stops spreading,-1is unlimited). It works differently, so test it before relying on it to protect a build. Bedrock still usesdoFireTick. - spawnChunkRadius was removed in 1.21.9 with no replacement. Using it to keep spawn farms running? Check how spawn chunks behave on your version before updating.
Environment Rules
Weather, time, fire and other natural processes.
randomTickSpeed
Java and Bedrock. Default: 3 (Java), 1 (Bedrock)
How fast crops grow, grass spreads, leaves decay and ice melts.
- 0: Nature freezes
- 3: Normal Java speed
- 10: Faster growth
- 1000+: Almost instant (can cause lag)
/gamerule randomTickSpeed 10
doDaylightCycle
Java and Bedrock. Default: true
Set to false to freeze the sun and moon right where they are.
/gamerule doDaylightCycle false
doWeatherCycle
Java and Bedrock. Default: true
Set to false to lock the current weather. /weather still works.
/gamerule doWeatherCycle false
doFireTick
Java and Bedrock. Default: true. Removed on Java 1.21.11+
Set to false so fire never spreads and burns in place. Great for stopping lightning forest fires. On Java 1.21.11+, see the naming section above for its replacement.
/gamerule doFireTick false
doVinesSpread
Java only. Default: true
Set to false to stop jungle vines from spreading. Nether and cave vines are not affected.
/gamerule doVinesSpread false
Snow and Liquid Sources
Java only
snowAccumulationHeight: Max snow layers that stack (Default: 1). Range 0 to 8 on 1.21.11+.waterSourceConversion: Two buckets make an infinite water source (Default: true).lavaSourceConversion: Same for lava (Default: false).
/gamerule snowAccumulationHeight 4
/gamerule waterSourceConversion false
globalSoundEvents
Java only. Default: true
Some sounds, like the Ender Dragon dying, play for everyone. Set to false so only nearby players hear them.
/gamerule globalSoundEvents false
respawnBlocksExplode
Bedrock only. Default: true
Set to false so beds and respawn anchors no longer explode in the Nether or End.
/gamerule respawnBlocksExplode false
tntExplodes
Java (1.21.5+) and Bedrock. Default: true
Set to false and lit TNT disappears without exploding.
/gamerule tntExplodes false
spawnChunkRadius
Java only. Default: 2. Removed in 1.21.9
Kept chunks around world spawn loaded with no players nearby, so farms kept running. Only works on versions before 1.21.9.
/gamerule spawnChunkRadius 4
spectatorsGenerateChunks
Java only. Default: true
Set to false so spectators cannot load new chunks. Handy for UHC referees.
/gamerule spectatorsGenerateChunks false
projectilesCanBreakBlocks
Java and Bedrock. Default: true
Set to false so projectiles, like a thrown trident, cannot break blocks.
/gamerule projectilesCanBreakBlocks false
Mob Rules
How mobs spawn and what they can do to your world.
mobGriefing
Java and Bedrock. Default: true
Set to false to stop mobs from changing blocks or picking up items. Among others, this blocks:
- Creeper: Explosion craters
- Enderman: Picking up blocks
- Zombie: Trampling turtle eggs
- Villager: Harvesting and planting
- Wither: Breaking blocks around it
- Allay and Piglin: Picking up items
- Ravager: Breaking crops and leaves
/gamerule mobGriefing false
doMobSpawning
Java and Bedrock. Default: true
Set to false to stop mobs from spawning naturally. Spawners and structure mobs still work.
/gamerule doMobSpawning false
spawnMonsters
Java only (1.21.9+). Default: true
Like doMobSpawning, but only stops hostile monsters. Passive mobs still spawn.
/gamerule spawnMonsters false
doInsomnia
Java and Bedrock. Default: true
Set to false and phantoms stop spawning, no matter how long you skip sleep.
/gamerule doInsomnia false
Specific Spawns
Java only. Default: true
doPatrolSpawning: Pillager patrolsdoTraderSpawning: Wandering traderdoWardenSpawning: Warden
/gamerule doPatrolSpawning false
/gamerule doTraderSpawning false
/gamerule doWardenSpawning false
disableRaids
Java only. Default: false
Set to true to turn off raids. Bad Omen is no longer used up when you enter a village.
1.21.11+: renamed raids and flipped. Use raids false to turn raids off.
/gamerule disableRaids true
Neutral Mob Anger
Java only
universalAnger: Angry mobs attack every nearby player, not just the one who hit them (Default: false).forgiveDeadPlayers: Mobs calm down after the player they are angry at dies (Default: true).
/gamerule universalAnger true
/gamerule forgiveDeadPlayers false
Player Rules
Health, death and respawning.
keepInventory
Java and Bedrock. Default: false
The most popular gamerule! Set to true and players keep their items and XP when they die.
/gamerule keepInventory true
naturalRegeneration
Java and Bedrock. Default: true
Set to false and a full hunger bar no longer heals you. Only potions, golden apples, beacons and totems do. A UHC favorite.
/gamerule naturalRegeneration false
Damage Types
Java and Bedrock. Default: true
Set any of these to false to turn that damage off:
fallDamage: FallingfireDamage: Fire, lava and magmadrowningDamage: DrowningfreezeDamage: Powder snow
/gamerule fallDamage false
/gamerule fireDamage false
/gamerule drowningDamage false
/gamerule freezeDamage false
enderPearlsVanishOnDeath
Java only. Default: true
Set to false and a pearl still in the air can teleport you even after you die and respawn.
/gamerule enderPearlsVanishOnDeath false
doImmediateRespawn
Java and Bedrock (doimmediaterespawn). Default: false
Set to true to skip the death screen and respawn right away.
/gamerule doImmediateRespawn true
showDeathMessages
Java and Bedrock. Default: true
Set to false to hide death messages in chat, including pet deaths.
/gamerule showDeathMessages false
spawnRadius
Java and Bedrock. Default: 10 (Java), 5 (Bedrock)
How far from world spawn new players, or players without a bed, can appear. 10 means a 21 x 21 block area.
/gamerule spawnRadius 0
pvp
Java (1.21.9+) and Bedrock. Default: true
Set to false so players cannot hurt each other. On Java older than 1.21.9, use the pvp setting in server.properties instead (needs a restart).
/gamerule pvp false
Portal Delays
Java only
playersNetherPortalCreativeDelay: Creative players (Default: 0, instant).playersNetherPortalDefaultDelay: Survival and adventure players (Default: 80, 4 seconds).
/gamerule playersNetherPortalDefaultDelay 40
allowEnteringNetherUsingPortals
Java only (1.21.9+). Default: true
Set to false to block Nether portals everywhere, without breaking any portal frames.
/gamerule allowEnteringNetherUsingPortals false
locatorBar
Java only. Default: true
Turns the locator bar (which shows where nearby players are) on or off. On Bedrock, the setting is locatorbar, or playerwaypoints (everyone or off) on newer versions. See our locator bar guide.
/gamerule locatorBar false
playersSleepingPercentage
Java and Bedrock. Default: 100
The percent of online players who must sleep to skip the night.
- 100: Everyone
- 50: Half
- 1: Just one player
- 101+: The night can never be skipped
/gamerule playersSleepingPercentage 25
Drop Rules
What blocks, mobs and entities drop.
doMobLoot
Java and Bedrock. Default: true
Set to false and mobs drop no items or XP when killed. Chicken eggs and sheared wool still drop.
/gamerule doMobLoot false
doTileDrops
Java and Bedrock. Default: true
Set to false and broken blocks drop nothing. Careful: a broken shulker box loses its contents too. Chests still drop what is inside them.
/gamerule doTileDrops false
doEntityDrops
Java and Bedrock. Default: true
Set to false and boats, minecarts, item frames and armor stands drop nothing when broken.
/gamerule doEntityDrops false
Explosion Drop Decay
Java only
When on, blocks farther from an explosion are less likely to drop.
tntExplosionDropDecay: TNT (Default: false)mobExplosionDropDecay: Creepers, Withers and other mobs (Default: true)blockExplosionDropDecay: Beds, end crystals and other blocks (Default: true)
/gamerule mobExplosionDropDecay false
/gamerule blockExplosionDropDecay false
Chat and Display Rules
Chat messages, command feedback and what shows on screen.
sendCommandFeedback
Java and Bedrock. Default: true
Set to false to hide command confirmation messages in chat. Great for servers that run lots of commands.
/gamerule sendCommandFeedback false
commandBlockOutput
Java and Bedrock. Default: true
Set to false so command blocks stop posting results in chat. They still work.
/gamerule commandBlockOutput false
announceAdvancements
Java only. Default: true
Set to false to keep advancements out of chat.
/gamerule announceAdvancements false
logAdminCommands
Java only. Default: true
Set to false to stop writing admin commands to the server log. You lose the record of what admins did.
/gamerule logAdminCommands false
reducedDebugInfo
Java only. Default: false
Set to true to hide coordinates, facing direction and chunk info on the F3 screen, and turn off F3+B and F3+G. Great for keeping coordinates secret.
/gamerule reducedDebugInfo true
Bedrock Display Options
Bedrock only
showCoordinates: Your XYZ position on screen (Default: true)showTags: "Can place on" and "Can destroy" lines on items (Default: true)showBorderEffect: Particles from border blocks (Default: true)showDaysPlayed: In-game day count on the HUD (Default: false)showRecipeMessages: Popups when you unlock a recipe (Default: true)
/gamerule showCoordinates false
/gamerule showTags false
/gamerule showBorderEffect false
Crafting Rules
doLimitedCrafting
Java and Bedrock. Default: false
Set to true so players can only craft recipes they have unlocked.
/gamerule doLimitedCrafting true
recipesUnlock
Bedrock only. Default: true
Set to false and the whole recipe book is open from the start, no unlocking needed.
/gamerule recipesUnlock false
Admin Rules
Technical limits for server owners.
maxEntityCramming
Java only. Default: 24
How many mobs can squeeze into one space before they start taking damage. 0 turns this off.
/gamerule maxEntityCramming 0
Command Limits
Mixed, see each rule
These stop runaway commands. Raising them allows bigger operations but can slow things down.
maxCommandChainLength: Chained commands per tick (Default: 65536)maxCommandForkCount: Command branches per tick (Java, Default: 65536)commandModificationBlockLimit: Blocks one /fill or /clone can change (Java, Default: 32768)functionCommandLimit: Commands per function file (Bedrock, Default: 10000)
/gamerule commandModificationBlockLimit 100000
commandBlocksEnabled
Java (1.21.9+) and Bedrock. Default: true
Set to false and command blocks stop working completely. On older Java versions, use enable-command-block in server.properties instead.
/gamerule commandBlocksEnabled false
minecartMaxSpeed
Java only. Default: 8 (range 1 to 1000)
Top speed for minecarts on rails. Only works when the "Minecart Improvements" experiment is on for the world.
/gamerule minecartMaxSpeed 16
Anti-cheat Checks
Java only. Default: false
Set to true to turn off the server's speed checks. This stops lag rubberbanding, but makes fly and speed hacks easier.
disableElytraMovementCheck: Elytra movementdisablePlayerMovementCheck: All movement
1.21.11+: both are renamed and flipped. See the warning in the naming section above.
/gamerule disableElytraMovementCheck true
Essential Gamerules
The rules most servers change. Old (before 1.21.11) names shown.
| Rule | Java | Bedrock | Standard | Main utility |
|---|---|---|---|---|
| keepInventory | ✅ | ✅ | false | Keep items on death |
| mobGriefing | ✅ | ✅ | true | Terrain protection |
| doDaylightCycle | ✅ | ✅ | true | Time control |
| doWeatherCycle | ✅ | ✅ | true | Weather control |
| naturalRegeneration | ✅ | ✅ | true | Passive health regeneration |
| doMobSpawning | ✅ | ✅ | true | Creature spawning |
| doFireTick | ✅* | ✅ | true | Fire spread (*removed on Java 1.21.11+) |
| randomTickSpeed | ✅ | ✅ | 3/1 | Nature speed |
| playersSleepingPercentage | ✅ | ✅ | 100 | Night transition |
| doInsomnia | ✅ | ✅ | true | Spawn of phantoms |
Recommended Setups
Pick the setup closest to your server and copy the values.
Survival Server
| GameRule | Value | Why |
|---|---|---|
| keepInventory | false | Death should have consequences. It is the heart of survival. |
| mobGriefing | false | Stops creepers and endermen from wrecking builds. A must on community servers. |
| doFireTick | false | Stops fire from spreading and burning wooden builds. |
| playersSleepingPercentage | 30 | The night passes once 30% of players sleep. |
| spawnRadius | 10 | Spreads players out so they do not all respawn on the same block. |
| maxEntityCramming | 24 | The default. Lowering it to 8 can improve performance with little gameplay impact. |
Creative / Building Server
| GameRule | Value | Why |
|---|---|---|
| doDaylightCycle | false | Freezes time so builders can work without night. Set noon first with /time set 6000. |
| doWeatherCycle | false | No rain or storms blocking your view. |
| doMobSpawning | false | No mobs, no distractions. |
| commandBlockOutput | false | Keeps command block messages out of chat. |
| keepInventory | true | No lost items from falling into the void. |
| doFireTick | false | Keeps fire from burning builds in progress. |
PvP Server
| GameRule | Value | Why |
|---|---|---|
| keepInventory | true | No gear lost on death, so players fight more often. |
| naturalRegeneration | false | Healing takes potions or golden food, so fights get more tactical. |
| doMobSpawning | false | No mobs getting in the way. |
| announceAdvancements | false | Keeps chat clean. |
| showDeathMessages | true | Keeps the kill feed. |
| pvp | true | On Java 1.21.8 and older, turn on pvp in server.properties instead. |
Minigame / Adventure Map
| GameRule | Value | Why |
|---|---|---|
| doDaylightCycle | false | Command blocks set the time for each game. |
| doWeatherCycle | false | Weather is set by the game, not by chance. |
| doMobSpawning | false | Only mobs summoned by command appear. |
| mobGriefing | false | Protects arenas and builds. |
| commandBlockOutput | false | Stops command blocks from spamming chat. |
| sendCommandFeedback | false | Hides command feedback from players. |
| randomTickSpeed | 0 | Freezes crops, grass and all natural changes, so the map stays exactly as built. |
FAQ
How do I turn on keepInventory?
Type /gamerule keepInventory true in chat (as an operator) or in your console. Use keep_inventory on Java 1.21.11+. No restart needed. You can also change it with Game Rules in the World Manager.
Can I change gamerules without commands?
Yes! Open World Manager in your panel, find your world under Your worlds, and click Game Rules.
Why is my gamerule command not working?
On Java 1.21.11+, the names changed, so check the table above. Type /gamerule with no rule name to see the names your version accepts. On Bedrock, make sure cheats are on.
How do I stop the day/night cycle?
Type /gamerule doDaylightCycle false (advance_time false on Java 1.21.11+). Want a set time? Run /time set noon or /time set midnight first. Set it back to true to restart the cycle.
How do I reset a gamerule?
There is no reset command. Set it back to its default by hand, like /gamerule randomTickSpeed 3. Each rule's default is listed on its card above.
Are gamerules saved per world?
Yes. Each world stores its own gamerules, and the Game Rules button in World Manager only changes the world you clicked.
Stuck on a gamerule? No worries! Just open a support ticket and our team will gladly jump in and help.