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 name Description
announceAdvancements Whether advancements should be announced in chat
commandBlocksEnabled Whether command blocks should be enabled in-game
commandBlockOutput Whether command blocks should notify admins when they perform commands
disableElytraMovementCheck Whether the server should skip checking player speed when the player is wearing elytra. Often helps with jittering due to lag in multiplayer.
disableRaids Whether raids are disabled.
doDaylightCycle Whether the daylight cycle and moon phases progress
doEntityDrops Whether entities that are not mobs should have drops
doFireTick Whether fire should spread and naturally extinguish
doInsomnia Whether phantoms can spawn in the nighttime
doImmediateRespawn Players respawn immediately without showing the death screen
doLimitedCrafting Whether players should be able to craft only those recipes that they've unlocked first
doMobLoot Whether mobs should drop items and experience orbs
doMobSpawning Whether mobs should naturally spawn. Does not affect monster spawners.
doPatrolSpawning Whether patrols can spawn
doTileDrops Whether blocks should have drops
doTraderSpawning Whether wandering traders can spawn
doWeatherCycle Whether the weather can change naturally. The /weather command can still change weather.
doWardenSpawning Whether wardens can spawn
drowningDamage Whether the player should take damage when drowning
fallDamage Whether the player should take fall damage
fireDamage Whether the player should take damage in fire, lava, campfires, or on magma blocks.
forgiveDeadPlayers Makes angered neutral mobs stop being angry when the targeted player dies nearby
freezeDamage Whether the player should take damage when inside powder snow
functionCommandLimit The maximum number of commands that can be executed by /function at once
keepInventory Whether the player should keep items and experience in their inventory after death
logAdminCommands Whether to log admin commands to server log
maxCommandChainLength The maximum length of a chain of commands that can be executed during one tick. Applies to command blocks and functions.
maxEntityCramming The 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.
mobGriefing 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. 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.
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.)
playersSleepingPercentage What percentage of players must sleep to skip the night.
pvp Whether the player can fight with other players
randomTickSpeed 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 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.
respawnBlocksExplode Prevents beds/respawn anchors from exploding in other dimensions.
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
showBorderEffect Whether border blocks effects are shown
showCoordinates Whether the player's coordinates are displayed
showDeathMessages 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.
showTags Hides the "Can place on" and "Can destroy" block lists from item lore, as well as item lock indicators.
spawnRadius 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 Whether players in spectator mode can generate chunks
tntExplodes Whether TNT explodes after activation
universalAnger Makes 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!