Game rules are a set of customizable options for a specific in-game world. Players can use commands to change the game rules or choose them when creating the world. In single player, one can do this at any time but on a multi-player server, only the server owner can do this.

Changing the game rules can increase or decrease the difficulty of Minecraft exponentially. In this article, Gurugamer is going to showcase a complete guide on how to change game rules in Minecraft.

Wallpaper Minecraft Alex Steve Universe

1. How to change game rules in Minecraft

In Bedrock Edition, players can change about half of the game rules using the toggles on the "World Settings" and "Cheats" sections of the world's Game Settings screen. The rest, however, can only be changed using commands.

In Java Edition, all game rules can be changed using the toggle buttons on the Edit Game Rules menu when creating a new world. The rules are split into various categories, from Player to Mobs and Spawning... etc.

Players can also change the game rules in-game by using the /gamerule (rule) (value) command.

  • rule is the name of the game rule. It can either be true or false.
  • value is an allowed value, which depends on the type of the game rule.

2. List of all game rules

Minecraft Creeper 4
mobgriefing can prevent creepers from blowing up your buildings.
Rule nameDescription
announceAdvancementsWhether advancements should be announced in chat
commandBlocksEnabledWhether command blocks should be enabled in-game
commandBlockOutputWhether command blocks should notify admins when they perform commands
disableElytraMovementCheckWhether the server should skip checking player speed when the player is wearing elytra. Often helps with jittering due to lag in multiplayer.
disableRaidsWhether raids are disabled.
doDaylightCycleWhether the daylight cycle and moon phases progress
doEntityDropsWhether entities that are not mobs should have drops
doFireTickWhether fire should spread and naturally extinguish
doInsomniaWhether phantoms can spawn in the nighttime
doImmediateRespawnPlayers respawn immediately without showing the death screen
doLimitedCraftingWhether players should be able to craft only those recipes that they've unlocked first
doMobLootWhether mobs should drop items and experience orbs
doMobSpawningWhether mobs should naturally spawn. Does not affect monster spawners.
doPatrolSpawningWhether patrols can spawn
doTileDropsWhether blocks should have drops
doTraderSpawningWhether wandering traders can spawn
doWeatherCycleWhether the weather can change naturally. The /weather command can still change weather.
doWardenSpawningWhether wardens can spawn
drowningDamageWhether the player should take damage when drowning
fallDamageWhether the player should take fall damage
fireDamageWhether the player should take damage in fire, lava, campfires, or on magma blocks.
forgiveDeadPlayersMakes angered neutral mobs stop being angry when the targeted player dies nearby
freezeDamageWhether the player should take damage when inside powder snow
functionCommandLimitThe maximum number of commands that can be executed by /function at once
keepInventoryWhether the player should keep items and experience in their inventory after death
logAdminCommandsWhether to log admin commands to server log
maxCommandChainLengthThe maximum length of a chain of commands that can be executed during one tick. Applies to command blocks and functions.
maxEntityCrammingThe maximum number of pushable entities a mob or player can push, before taking 6 suffocation damage per half-second. Setting to 0 or lower disables the rule. Damage affects survival-mode or adventure-mode players, and all mobs but bats. Pushable entities include non-spectator-mode players, any mob except bats, as well as boats and minecarts.
mobGriefingWhether 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. When mobGriefing is disabled, piglins will not pick up gold ingots, but a player can still barter with them by using the item on the mob. Similarly, villagers will not pick up food items but can still breed until they run out of any food already in their inventory. This also affects the capability of zombie-like creatures like zombified piglins and drowned to pathfind to turtle eggs.
naturalRegenerationWhether 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.)
playersSleepingPercentageWhat percentage of players must sleep to skip the night.
pvpWhether the player can fight with other players
randomTickSpeedHow 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.
reducedDebugInfoWhether the debug screen shows all or reduced information; and whether the effects of F3 + B (entity hitboxes) and F3 + G (chunk boundaries) are shown.
respawnBlocksExplodePrevents beds/respawn anchors from exploding in other dimensions.
sendCommandFeedbackWhether 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
showBorderEffectWhether border blocks effects are shown
showCoordinatesWhether the player's coordinates are displayed
showDeathMessagesWhether 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.
showTagsHides the "Can place on" and "Can destroy" block lists from item lore, as well as item lock indicators.
spawnRadiusThe 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.
spectatorsGenerateChunksWhether players in spectator mode can generate chunks
tntExplodesWhether TNT explodes after activation
universalAngerMakes angered neutral mobs attack any nearby player, not just the player that angered them. Works best if forgiveDeadPlayers is disabled.

>>> Read more: Everything Known So Far About Minecraft Live 2022: New Features, Mob Vote, And More!