Articles on: Minecraft

How to Change Game Rules in Minecraft

Learn how to quickly change game rules in Minecraft to suit your play style. This guide walks you through easy steps to customize settings like mob griefing, spawn rates, and more. Whether you’re a beginner or a seasoned player, these simple commands and tips can help you tweak the rules on your Minecraft server.


In order to change gamerules, you must have OP access. Check out our guide on how to give someone OP on your Minecraft server for more information.


Changing Game Rules


To change game rules in Minecraft, type "/gamerule <rule> <value>"


Replace <rule> with the specific rule you want to adjust, and <value> with your desired setting. To view all available game rules, just enter /gamerule without any additional arguments.


Key points:


  • Command Format: /gamerule <rule> <value>


  • Accessing Rules: Type /gamerule to list all available rules.


  • Boolean Values: Use true or false to enable or disable features.


  • Integer Values: Some rules require numerical values. Check the table below to see those rules.


Examples:


  • Disable mob griefing (prevent mobs from destroying blocks):\
    /gamerule mobGriefing false


  • Speed up the day cycle:\
    /gamerule randomTickSpeed 10


List of Minecraft Game Rules


Below is a list of every important Game Rule in Minecraft:


Gamerule

Description

Default Value

Value Type

Works on Java

Works on Bedrock

announceAdvancements

An added game rule that determines if player achievements are broadcast in chat.

true

Bool

Yes

No

blockExplosionDropDecay

Controls whether block loot is dropped by all blocks or randomly – depending on how far the explosion center is – when a block explosion occurs (block loot is dropped).

true

Bool

Yes

No

commandBlockOutput

Determines if command blocks store their output text and notify admins when executing commands (no yes commandblockoutput).

true

Bool

Yes

Yes

commandBlocksEnabled

Specifies whether command blocks are enabled in game; note this is a Bedrock Edition game rule.

true

Bool

No

Yes

commandModificationBlockLimit

Sets the maximum number of blocks that can be modified using command blocks with commands executed in a single game tick (maximum number of blocks modified).

32768

Int

Yes

No

disableElytraMovementCheck

Skips checking player speed while wearing elytra – the server should skip checking player speed – to reduce lag-related jitter.

false

Bool

Yes

No

disablePlayerMovementCheck

Skips checking player speed for all players.

false

Bool

Yes

No

disableRaids

Prevents raids from being triggered (yes no disableraids).

false

Bool

Yes

No

doDaylightCycle

Enables the natural progression of day, night, and moon phases so that weather can change naturally (yes no doweathercycle).

true

Bool

Yes

Yes

doEntityDrops

Controls if non-mob entities drop items when destroyed.

true

Bool

Yes

Yes

doFireTick

Allows fire to spread naturally and extinguish on its own.

true

Bool

Yes

Yes

doInsomnia

Determines if phantoms can spawn during the night.

true

Bool

Yes

Yes

doImmediateRespawn

Enables doimmediaterespawn so that players respawn immediately without showing the death screen.

false

Bool

Yes

Yes

doLimitedCrafting

Restricts players to crafting only those recipes they have unlocked – recipesunlock controls only those recipes.

false

Bool

Yes

Yes

doMobLoot

Controls whether mobs drop items and experience orbs upon defeat.

true

Bool

Yes

Yes

doMobSpawning

Enables natural mob spawning (excluding effects from spawner blocks) according to the list of game rules.

true

Bool

Yes

Yes

doPatrolSpawning

Allows natural spawning of mob patrols.

true

Bool

Yes

No

doTileDrops

Specifies if blocks drop items when broken (yes no dotiledrops).

true

Bool

Yes

Yes

doTraderSpawning

Controls whether wandering traders spawn naturally.

true

Bool

Yes

No

doVinesSpread

Determines if vines can spread to adjacent blocks (excluding certain vine types).

true

Bool

Yes

No

doWardenSpawning

Controls whether wardens can spawn naturally.

true

Bool

Yes

No

doWeatherCycle

Enables natural weather changes so that weather can change naturally (yes no doweathercycle).

true

Bool

Yes

Yes

drowningDamage

Determines if players take damage when drowning.

true

Bool

Yes

Yes

enderPearlsVanishOnDeath

Specifies whether thrown ender pearls vanish when the player dies.

true

Bool

Yes

No

fallDamage

Determines if players receive fall damage (fall damage).

true

Bool

Yes

Yes

fireDamage

Controls if players take damage from fire sources like lava, campfires, or magma blocks.

true

Bool

Yes

Yes

forgiveDeadPlayers

Makes angered neutral mobs stop attacking the targeted player when that player dies (targeted player).

true

Bool

Yes

No

freezeDamage

Specifies if players take damage when in contact with powder snow.

true

Bool

Yes

Yes

globalSoundEvents

Ensures that certain sound events are audible to all players regardless of location.

true

Bool

Yes

No

functionCommandLimit

Sets the maximum number of commands executed by a /function at once (commands executed).

10000

Int

No

Yes

keepInventory

Determines if players retain their items and experience after death – default behavior is no on Bedrock and yes on Java (no yes keepinventory).

false

Bool

Yes

Yes

lavaSourceConversion

Controls whether new lava source blocks are allowed to form (allowed value).

false

Bool

Yes

No

logAdminCommands

Determines if admin commands are recorded in the server log (log admin commands).

true

Bool

Yes

No

maxCommandChainLength

Specifies the maximum length of a chain of commands executed in one game tick for command blocks and functions (yes no maxcommandchainlength; maximum length).

65536

Int

Yes

Yes

maxCommandForkCount

Sets the upper limit for the number of command forks allowed during command execution.

65536

Int

Yes

No

maxEntityCramming

Limits how many pushable entities non spectator mode players can push before incurring cramming damage – damage affects survival mode players every half second.

24

Int

Yes

No

minecartMaxSpeed

Specifies the maximum speed permitted for minecarts.

8

Int

Yes

No

mobExplosionDropDecay

Controls if block loot is dropped by all blocks or varies based on distance from the explosion center during mob explosions (block loot is dropped).

true

Bool

Yes

No

mobGriefing

Determines if mobs, including zombie like creatures, can change blocks or pick up items.

true

Bool

Yes

Yes

naturalRegeneration

Allows players to regenerate health naturally when hunger is sufficient, though it does not affect external healing (regenerate health naturally; affect external healing).

true

Bool

Yes

Yes

playersNetherPortalCreativeDelay

Sets the tick delay for Creative mode players using Nether portals.

1

Int

Yes

No

playersNetherPortalDefaultDelay

Sets the tick delay for Survival and adventure mode players using Nether portals.

80

Int

Yes

No

playersSleepingPercentage

Specifies the percentage of players required to sleep to skip the night.

100

Int

Yes

Yes

projectilesCanBreakBlocks

Determines if projectiles, such as tridents, can break blocks.

true

Bool

Yes

No

pvp

Controls whether players can engage in combat with one another.

true

Bool

No

Yes

randomTickSpeed

Defines how often random ticks occur for plant growth and leaf decay; negative values disable random ticks, and numbers over 4096 result in plant growth leaf decay and even leaf decay instantaneous (random ticks occur; negative values disables random ticks; growth leaf decay etc).

3 (JE) / 1 (BE)

Int

Yes

Yes

recipesUnlock

Controls whether players must collect items to unlock only those recipes in the recipe book, recipesunlock controls only those recipes.

true

Bool

No

Yes

reducedDebugInfo

Determines if the debug screen shows less detailed information, including chunk boundaries, compared to full detail.

false

Bool

Yes

No

respawnBlocksExplode

Prevents beds and respawn anchors from exploding in dimensions where they aren’t native.

true

Bool

No

Yes

Still have some questions?


Feel free to reach out to our support team. Just open a ticket!


By: Mason B.

Updated on: 04/03/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!