mc-node.net →

What are Minecraft gamerules and how do I set them?

⛏️ Minecraft · Updated 28/01/2025
A gamerule is a rule within the game. It lets you add or change various easy/difficult things in the game. In this knowledge base article we explain which gamerules exist, what they do, and how you can change them.Note that these may differ per Minecraft version and framework type (Spigot, Paper etc..)

You can set or change a gamerule with the following command:

/gamerule <gamerule> <waarde>

To view the current value of a gamerule, do the following:

/gamerule <gamerule>

The gamerules are displayed as follows; Gamerule | Waarde | Standaard optie. Below this line you will find a description of the gamerule.
  • announceAdvancements | True/False | Default: true

This gamerule determines whether advancement changes are announced.

  • commandBlocksEnabled | True/False | Default: true

This gamerule determines whether command blocks are enabled in-game.

  • commandBlockOutput | True/False | Default: true

This gamerule determines whether command blocks should notify an admin when they are executed.

  • disableElytraMovementCheck | True/False | Default: false

This gamerule determines whether the speed of a player using an elytra should be checked.

  • disableRaids | True/False | Default: false

This gamerule determines whether raids are enabled or disabled in-game.

  • doDaylightCycle | True/False | Default: true

This gamerule determines whether the day and night cycle continues in the game. If you turn this off, day or night stands still.

  • doEntityDrops | True/False | Default: true

This gamerule determines whether entities that are not mobs should drop items.

  • doFireTick | True/False | Default: true

This gamerule determines whether fire should spread and extinguish naturally.

  • doInsomnia | True/False | Default: true

This gamerule determines whether phantoms can spawn at night or not.

  • doImmediateRespawn | True/False | Default: false

This gamerule determines whether players respawn immediately without showing the death screen.

  • doLimitedCrafting | True/False | Default: false

This gamerule determines whether players can only craft recipes they have unlocked first

  • doMobLoot | True/False | Default: true

This gamerule determines whether mobs should drop items and experience points

  • doMobSpawning | True/False | Default: true

This gamerule determines whether mobs should spawn naturally. This does not affect monster spawners.

  • doPatrolSpawning | True/False | Default: true

This gamerule determines whether pillagers can spawn in-game.

  • doTileDrops | True/False | Default: true

This gamerule determines whether broken blocks drop an item.

  • doTraderSpawning | True/False | Default: true

This gamerule determines whether traders can spawn in-game.

  • doWeatherCycle | True/False | Default: true

This gamerule determines whether the weather can change naturally. The /weather command can still change the weather.

  • doWardenSpawning | True/False | Default: true

This gamerule determines whether wardens can spawn in-game.

  • drowningDamage | True/False | Default: true

This gamerule determines whether the player should take damage when drowning.

  • fallDamage | True/False | Default: true

This gamerule determines whether the player should take fall damage.

  • fireDamage | True/False | Default: true

This gamerule determines whether the player should take damage in fire, lava, campfires, or on magma blocks.

  • forgiveDeadPlayers | True/False | Default: true

This gamerule determines whether angered mobs stop being angry when the targeted player dies nearby.

  • freezeDamage | True/False | Default: true

This gamerule determines whether the player should take damage in powder snow.

  • functionCommandLimit | A number | Default: 10000

This gamerule sets the maximum number of commands that can be executed at once by /function.

  • keepInventory | True/False | Default: false

This gamerule determines whether the player keeps items and experience levels in their inventory after death. (If you want to use this, you need to enable it in the overworld, the nether, and the end.)

  • logAdminCommands | True/False | Default: true

This gamerule determines whether admin commands should be saved to the server log.

  • maxCommandChainLength | A number | Default: 65536

This gamerule sets the maximum length of a chain of commands that can be executed during one tick. Applies to command blocks and functions.

  • maxEntityCramming | A number | Default: 24

If there are more mobs in a 1x1 space than this setting, all mobs in the space will take suffocation damage until the number of mobs drops below the setting.

  • mobGriefing | True/False | Default: true

This gamerule determines whether monsters or animals can damage the world. (Moving blocks, creeper explosions etc.)

  • naturalRegeneration | True/False | Default: true

This gamerule determines whether the player can naturally regenerate health when their hunger bar is full enough (does not affect external healing, such as golden apples, the Regeneration effect, etc.)

  • playersSleepingPercentage | A number | Default: 100

This gamerule sets what percentage of players must sleep to skip the night.

  • pvp | True/False | Default: true

This gamerule determines whether the player can fight other players.

  • randomTickSpeed | A number | Default: 3

This gamerule sets how many block ticks you want per server tick.

  • reducedDebugInfo | True/False | Default: false

This gamerule determines whether the debug screen shows all or less information; and whether the effects of F3 + B (entity hitboxes) and F3 + G (chunk borders) are shown.

  • respawnBlocksExplode | True/False | Default: true

This gamerule determines whether beds are allowed to explode in other dimensions.

  • sendCommandFeedback | True/False | Default: true

This gamerule determines whether the feedback from commands executed by a player should appear in chat.

  • showCoordinates | True/False | Default: true

This gamerule determines whether the player's coordinates are shown

  • showDeathMessages | True/False | Default: true

This gamerule determines whether death messages are put in chat when a player dies. (Also affects whether a message is sent to the pet's owner when the pet dies.)

  • spawnRadius | A number | Default: 10

This gamerule sets the number of blocks outside the world spawn within which a player can spawn.

  • spectatorsGenerateChunks | True/False | Default: true

This gamerule determines whether players in spectator mode can generate chunks.

  • tntExplodes | True/False | Default: true

This gamerule determines whether TNT explodes after activation

  • universalAnger | True/False | Default: false

This gamerule determines whether angered mobs attack any nearby player, not only the player who angered them.

  • showTags | True/False | Default: true

Hides the "Can be placed on" and "Can destroy" block lists in item tooltips, as well as item slot indicators.

With this article, you should now know the gamerules and how to change them. If you still haven't managed to do so, our staff is ready to help you: Contact us