20% OFF Your first order with SAVE20
Background image of the page

Help Article

Video tutorial

How To Enable/Disable Different Gamerules?

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

Last updated on  Apr 18, 2026

Gamerules are server-wide settings that let you control core gameplay behaviours, from whether fire spreads to whether players keep their inventory on death. They are managed through in-game commands and take effect immediately without a server restart.

This guide covers how to use the /gamerule command and includes a full reference of all gamerule names as updated in Minecraft 1.21.11.

⚠️
IMPORTANT: Gamerule names were fully renamed in version 1.21.11. If your server is running 1.21.11 or later, you must use the new minecraft: prefixed names listed below. Old names will no longer work.

How to Change Gamerules?

Gamerules are changed directly from the in-game console or your server console, no file edits required.

  1. Connect to your server and make sure you have OP permissions.
  2. Type the following command to change a gamerule:
/gamerule <gamerule_name> <value>
  1. Replace <gamerule_name> with the gamerule you want to change (see the reference list below).
  2. Replace <value> with true to enable or false to disable it. For numeric gamerules, enter a number instead.
💡
TIP: You can also change these gamerules in the game panel's console. However, it's important to note that, for example, if you set the keep_inventory gamerule to false via console, it will only affect the overworld.

To make sure the same gamerule applies to other dimensions, you must run the gamerule in those dimensions in-game.

Gamerule Reference (Minecraft 1.21.11+)

Mob and Entity Behavior

Old Name New Name (1.21.11+) Description
mobGriefing minecraft:mob_griefing Controls whether mobs can destroy or alter blocks.
doMobSpawning minecraft:spawn_mobs Toggles natural mob spawning.
spawnMonsters minecraft:spawn_monsters Toggles monster spawning specifically.
doMobLoot minecraft:mob_drops Controls whether mobs drop loot on death.
doEntityDrops minecraft:entity_drops Controls whether entities drop items on death.
maxEntityCramming minecraft:max_entity_cramming Sets the max number of entities that can occupy the same space.
forgiveDeadPlayers minecraft:forgive_dead_players Controls whether angered mobs stop targeting dead players.
universalAnger minecraft:universal_anger Controls whether angered neutral mobs target all players.
doInsomnia minecraft:spawn_phantoms Toggles whether phantoms spawn when players skip sleep.
doPatrolSpawning minecraft:spawn_patrols Toggles patrol spawning.
doTraderSpawning minecraft:spawn_wandering_traders Toggles wandering trader spawning.
doWardenSpawning minecraft:spawn_wardens Toggles warden spawning.

Player Mechanics

Old Name New Name (1.21.11+) Description
keepInventory minecraft:keep_inventory Players keep their inventory on death when set to true.
naturalRegeneration minecraft:natural_health_regeneration Controls passive health regeneration.
doImmediateRespawn minecraft:immediate_respawn Skips the respawn screen when set to true.
pvp minecraft:pvp Enables or disables player versus player damage.
playersSleepingPercentage minecraft:players_sleeping_percentage Sets the percentage of players required to skip the night.
spawnRadius minecraft:respawn_radius Sets the radius around the spawn point where players respawn.
disablePlayerMovementCheck minecraft:player_movement_check Toggles server-side movement validation for players.
disableElytraMovementCheck minecraft:elytra_movement_check Toggles server-side elytra movement validation.
playersNetherPortalDefaultDelay minecraft:players_nether_portal_default_delay Sets the portal teleport delay for survival players.
playersNetherPortalCreativeDelay minecraft:players_nether_portal_creative_delay Sets the portal teleport delay for creative players.
allowEnteringNetherUsingPortals minecraft:allow_entering_nether_using_portals Toggles whether players can use nether portals.
locatorBar minecraft:locator_bar Toggles the locator bar display.
enderPearlsVanishOnDeath minecraft:ender_pearls_vanish_on_death Controls whether ender pearls disappear when a player dies.

Damage Types

Old Name New Name (1.21.11+) Description
drowningDamage minecraft:drowning_damage Toggles drowning damage.
fallDamage minecraft:fall_damage Toggles fall damage.
fireDamage minecraft:fire_damage Toggles fire damage.
freezeDamage minecraft:freeze_damage Toggles freeze damage from powder snow.

World and Environment

Old Name New Name (1.21.11+) Description
doFireTick / allowFireTicksAwayFromPlayer minecraft:fire_spread_radius_around_player Controls fire spread behaviour.
doDaylightCycle minecraft:advance_time Toggles the day/night cycle.
doWeatherCycle minecraft:advance_weather Toggles weather changes.
randomTickSpeed minecraft:random_tick_speed Sets the speed of random block ticks.
doTileDrops minecraft:block_drops Controls whether broken blocks drop items.
blockExplosionDropDecay minecraft:block_explosion_drop_decay Controls drop decay from block explosions.
mobExplosionDropDecay minecraft:mob_explosion_drop_decay Controls drop decay from mob explosions.
tntExplosionDropDecay minecraft:tnt_explosion_drop_decay Controls drop decay from TNT explosions.
tntExplodes minecraft:tnt_explodes Toggles whether TNT explodes.
snowAccumulationHeight minecraft:max_snow_accumulation_height Sets the max height snow can accumulate.
waterSourceConversion minecraft:water_source_conversion Toggles infinite water source creation.
lavaSourceConversion minecraft:lava_source_conversion Toggles infinite lava source creation.
doVinesSpread minecraft:spread_vines Toggles vine spreading.
disableRaids minecraft:raids Toggles raid events.
projectilesCanBreakBlocks minecraft:projectiles_can_break_blocks Controls whether projectiles can break blocks.
globalSoundEvents minecraft:global_sound_events Toggles whether certain sounds are heard globally.

Crafting and Items

Old Name New Name (1.21.11+) Description
doLimitedCrafting minecraft:limited_crafting Restricts crafting to recipes the player has unlocked.

Transport

Old Name New Name (1.21.11+) Description
minecartMaxSpeed minecraft:max_minecart_speed Sets the maximum speed for minecarts.

Admin and Commands

Old Name New Name (1.21.11+) Description
commandBlockOutput minecraft:command_block_output Toggles chat output from command blocks.
logAdminCommands minecraft:log_admin_commands Toggles logging of admin commands.
sendCommandFeedback minecraft:send_command_feedback Toggles feedback messages from commands.
reducedDebugInfo minecraft:reduced_debug_info Reduces debug info shown on the F3 screen.
showDeathMessages minecraft:show_death_messages Toggles death messages in chat.
announceAdvancements minecraft:show_advancement_messages Toggles advancement announcements in chat.
spectatorsGenerateChunks minecraft:spectators_generate_chunks Controls whether spectators cause chunk generation.
maxCommandChainLength minecraft:max_command_sequence_length Sets the max length of a command chain.
maxCommandForkCount minecraft:max_command_forks Sets the max number of command forks.
commandModificationBlockLimit minecraft:max_block_modifications Sets the max block modifications per command.
commandBlocksEnabled minecraft:command_blocks_work Toggles whether command blocks function.
spawnerBlocksEnabled minecraft:spawner_blocks_work Toggles whether spawner blocks function.

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 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.
  • (1.21.6+) locatorBar true/false | Whether you want the Locator Bar to be visible for players.

🧑‍💻
If you still require assistance, please get in touch with our support team by opening a ticket or by joining our community Discord server.