Using gamerules in Minecraft

Last updated: 07/19/18
written by  Nodecraft Staff

Gamerules can control various aspects of the gameplay, and provide a lot of customisation for server owners.

Gamerule command

Setting the value of a gamerule

/gamerule <rule name> <value>

Getting the current value of a gamerule

/gamerule <rule name>

  • A rule name is the name of the specific gamerule that you would like to set, or view. A list can be seen below.
  • The value is the value you wish to assign to a specific rule name. In the majority of cases, this is a boolean true or false value, but can sometimes be a number.

List of gamerules

Rule Name Description Possible Values Default Value Java Edition Bedrock Edition
announceAdvancements Whether advancements should be announced in chat true/false true ✔️
commandBlockOutput Whether command blocks should notify admins when they perform commands true/false true ✔️ ✔️
disableElytraMovementCheck Whether the server should skip checking player speed when the player is wearing elytra true/false false ✔️
doDaylightCycle Whether the day-night cycle and moon phases progress true/false true ✔️ ✔️
doEntityDrops Whether entities that are not mobs should have drops true/false true ✔️ ✔️
doFireTick Whether fire should spread and naturally extinguish true/false true ✔️ ✔️
doLimitedCrafting Whether players should only be able to craft recipes that they've unlocked first true/false false ✔️
doMobLoot Whether mobs should drop items true/false true ✔️ ✔️
doMobSpawning Whether mobs should naturally spawn true/false true ✔️ ✔️
doTileDrops Whether blocks should have drops true/false true ✔️ ✔️
doWeatherCycle Whether the weather will change true/false true ✔️ ✔️
drowningdamage Whether the player should take damage when drowning true/false true ✔️
falldamage Whether the player should take fall damage true/false true ✔️
firedamage Whether the player should take fire damage true/false true ✔️
keepInventory Whether the player should keep items in their inventory after death true/false false ✔️ ✔️
logAdminCommands Whether to log admin commands to server log true/false true ✔️
maxCommandChainLength Determines the number at which the chain command block acts as a "chain" number 65536 ✔️ ✔️
maxEntityCramming The maximum number of pushable entities another entity can try to push, before taking suffocation damage. Setting to 0 disables the rule. Affects players and mobs only (excluding bats) number 24 ✔️
mobGriefing Whether creepers, zombies, endermen, ghasts, withers, ender dragons, rabbits, sheep, and villagers should be able to change blocks and whether villagers, zombies, skeletons, and zombie pigmen can pick up items true/false true ✔️ ✔️
naturalRegeneration Whether the player can regenerate health naturally if their hunger is full enough (doesn't affect external healing, such as golden apples, the Regeneration effect, etc.) true/false true ✔️ ✔️
pvp Whether the player can fight with other players true/false true ✔️
randomTickSpeed How often a random block tick occurs (such as plant growth, leaf decay, etc.) per chunk section per game tick. 0 will disable random ticks, higher numbers will increase random ticks number 3 ✔️
reducedDebugInfo Whether the debug screen shows all or reduced information; and whether the effects of F3+B (entity hitboxes) and F3+G (chunk boundaries) are shown true/false false ✔️
sendCommandFeedback Whether the feedback from commands executed by a player should show up in chat. Also affects the default behavior of whether command blocks store their output text true/false true ✔️ ✔️
showDeathMessages Whether a message appears in chat when a player dies true/false true ✔️
spawnRadius The number of blocks outward from the world spawn coordinates that a player will spawn in when first joining a server or when dying without a spawnpoint number 10 ✔️
spectatorsGenerateChunks Whether players in spectator mode can generate chunks true/false true ✔️
tnt explodes Whether tnt will explode or not true/false true ✔️

List accurate as of Minecraft 1.13.

Gamerules are an advanced feature of Minecraft. Invalid or misuse of gamerules can cause unpredictable or damaging behaviour.

Can't find answers to your questions?

Feel free to contact our support team for personal and professional help.

Write Articles, Get FREE Servers!

More information coming soon.

Chat blocked!

Nodecraft is an ad-free website! Disable adblock if you have any questions.