How To Enable/Disable Different Gamerules?

This article shows you step-by-step on how to enable/disable different gamerules on your Minecraft server.

info icon
Gamerules are a set of customizable options for your Minecraft world that allow configuring world settings without any additional mods, plugins, or datapacks.

Gamerules can be modified using the "/gamerule [rule] <value>" command. For more information regarding gamerules, please check out this website.

In this article we'll be going to all the configurable gamerules and what they do.

How to Change Gamerules?

  1. Head over to the Game Panel and make sure your server is running?

  2. Easiest way to browse through all the gamerules is through in-game by typing "/gamerule" and clicking on TAB to scroll through all the gamerules.

  1. This can also be done through the console as shown in the following image. Note that the commands are case-sensitive.

What are the Different Gamerules?

Here's a list of each gamerule and what they do. Source is the official Minecraft Fandom Wiki.

Java Edition Gamerules

  • announceAdvancements true/false | Whether advancements should be announced in chat.

  • blockExplosionDropDecay true/false | Whether block loot is dropped by all blocks (false) or randomly (true) depending on how far the block is from the center of a block explosion.

  • commandBlockOutput true/false | Whether command blocks should notify admins when they perform commands.

  • commandModificationBlockLimit 32768/number | Controls the maximum number of blocks changed when using /clone, /fill, or /fillbiome.

  • disableElytraMovementCheck true/false | Whether the server should skip checking player speed when the player is wearing elytra. Often helps with jittering due to lag in multiplayer.

  • disableRaids true/false | Whether raids are enabled/disabled.

  • doDaylightCycle true/false | Whether the daylight cycle and moon phases progress.

  • doEntityDrops true/false | Whether entities that are not mobs should have drops.

  • doFireTick true/false | Whether fire should spread and naturally extinguish.

  • doImmediateRespawn true/false | Players respawn immediately without showing the death screen.

  • doInsomnia true/false | Whether phantoms can spawn in the nighttime.

  • doLimitedCrafting true/false | Whether players can craft only those recipes that they have unlocked.

  • doMobLoot true/false | Whether mobs should drop items and experience orbs.

  • doMobSpawning true/false | Whether mobs should naturally spawn. Does not affect monster spawners.

  • doPatrolSpawning true/false | Whether patrols can spawn.

  • doTileDrops true/false | Whether blocks should have drops.

  • doTraderSpawning true/false | Whether wandering traders can spawn.

  • doVinesSpread true/false | Whether vines can spread to other blocks. Cave vines, weeping vines, and twisting vines are not affected.

  • doWardenSpawning true/false | Whether wardens can spawn.

  • doWeatherCycle true/false | Whether the weather can change naturally. The "/weather" command can still change weather.

  • drowningDamage true/false | Whether the player should take damage when drowning.

  • enderPearlsVanishOnDeath true/false | Controls whether thrown ender pearls vanish when the player dies.

  • fallDamage true/false | Whether the player should take fall damage.

  • fireDamage true/false | Whether the player should take damage in fire, lava, campfires, or on magma blocks.

  • forgiveDeadPlayers true/false | Makes angered neutral mobs stop being angry when the targeted player dies nearby.

  • freezeDamage true/false | Whether the player should take damage when inside powder snow.

  • globalSoundEvents true/false | Whether certain sound events are heard by all players regardless of location.

  • keepInventory true/false | Whether the player should keep items and experience in their inventory after death.

  • lavaSourceConversion true/false | Whether new sources of lava are allowed to form.

  • logAdminCommands true/false | Whether to log admin commands to server log.

  • maxCommandChainLength 65536/number | The maximum length of a chain of commands that can be executed during one tick. Applies to command blocks and functions.

  • maxEntityCramming 24/number | The maximum number of pushable entities a mob or player can push, before taking 6 (♥♥♥) entity cramming damage per half-second.

  • mobExplosionDropDecay true/false | Whether block loot is dropped by all blocks (false) or randomly (true) depending on how far the block is from the center of a mob explosion (e.g. Creeper explosion).

  • mobGriefing true/false | Whether creepers, zombies, endermen, ghasts, withers, ender dragons, rabbits, sheep, villagers, silverfish, snow golems, and end crystals should be able to change blocks, and whether mobs can pick up items.

  • naturalRegeneration true/false | 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.).

  • playersSleepingPercentage 100/number | What percentage of players in the Overworld must sleep to skip the night. A percentage value of 0 or less will allow the night to be skipped by just 1 player, and a percentage value more than 100 will prevent players from ever skipping the night.

  • randomTickSpeed 3/number | How often a random block tick occurs (such as plant growth, leaf decay, etc.) per chunk section per game tick. 0 and negative values disables random ticks, higher numbers increase random ticks. Setting to a high integer results in high speeds of decay and growth. Numbers over 4096 make plant growth or leaf decay instantaneous.

  • reducedDebugInfo true/false | 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.

  • sendCommandFeedback true/false | 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.

  • showDeathMessages true/false | Whether death messages are put into chat when a player dies. Also affects whether a message is sent to the pet's owner when the pet dies.

  • snowAccumulationHeight 1/number | The maximum number of snow layers that can be accumulated on each block.

  • spawnRadius 10/number | 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. Has no effect on servers where the default game mode is Adventure.

  • spectatorsGenerateChunks true/false | Whether players in Spectator mode can generate chunks.

  • tntExplosionDropDecay true/false | Whether block loot is dropped by all blocks (false) or randomly (true) depending on how far the block is from the center of a TNT explosion.

  • universalAnger true/false | Makes angered neutral mobs attack any nearby player, not just the player that angered them. Works best if `forgiveDeadPlayers` is disabled.

  • waterSourceConversion true/false | Whether new sources of water are allowed to form.

🎉 Congratulations, you're familiar on how gamerules work. If you have any issues or concerns, please contact us through the ticket system.

Did this answer your question?
😞
😐
😁