---
title: Using Gamerules in Minecraft | Java & Bedrock Edition Guide
description: "Learn all about Minecraft gamerules and how to use them! Includes a master list of gamerules! "
source: "https://nodecraft.com/support/games/minecraft/general/using-gamerules-in-minecraft"
image: "https://dynamic-assets.nodecraft.com/signedurl/w7vokBAexMnVlnMZ1Q/image.jpg?modifications=W3sibmFtZSI6ImdhbWVfYmciLCJpbWFnZV91cmwiOiJodHRwczovL2Ntcy1hLm5vZGVjcmFmdC5jb20vZi8xMzM5MzIvMjAwMHg1NTAvZGNiMGFkNjkzOC9jYXZlcy1hbmQtY2xpZmZzLXB0LTItMS0yLTAucG5nL20vIn0seyJuYW1lIjoiZ2FtZV9sb2dvIiwiaW1hZ2VfdXJsIjoiaHR0cHM6Ly9jbXMtYS5ub2RlY3JhZnQuY29tL2YvMTMzOTMyLzM3NXgxNTAvM2MxZGIyYmFiNS9taW5lY3JhZnQucG5nL20vIn0seyJuYW1lIjoiY3RhX3RleHQiLCJ0ZXh0IjoiQ3JlYXRlIHlvdXIgb3duIHNlcnZlciEifSx7Im5hbWUiOiJ0ZXh0IiwidGV4dCI6IlVzaW5nIEdhbWVydWxlcyBpbiBNaW5lY3JhZnQgfCBKYXZhICYgQmVkcm9jayBFZGl0aW9uIEd1aWRlIn1d&s=0c7caf0364b50eda18ca8b0aff61f1871abea2fcf5fe288bd545a765e2ed24d6"
published: "2016-09-20T21:29:05.753Z"
updated: "2026-01-29T16:03:00.000Z"
---

# Using Gamerules in Minecraft | Java & Bedrock Edition Guide

Learn all about Minecraft gamerules and how to use them! Includes a master list of gamerules! 

Gamerules control various aspects of the gameplay and provide a lot of customization for server owners. Check out the steps below on how to use gamerules and for a master list of all the available Minecraft gamerules for Java Edition and Bedrock Edition as of **Minecraft version 1.21.11**.

## Gamerule Commands

### How to Set the Value

`/gamerule <rule name> <value>`

### How to Get the Current Value

`/gamerule <rule name>`

- A `rule name` is the name of the specific gamerule that you would like to set, or view. A list of these can be seen below.
- The `value` is the value you wish to assign to a specific rule name. In the majority of cases, this is a boolean `true` or `false` value, but can sometimes be a number.
- Each command must be entered into either an Admin/OP's chat in game or in the server console.
- For Bedrock servers when the command is entered in the server console the "/" must be obmitted, otherwise the following error will occur:
  `Unknown command: /. Please check that the command exists and that you have permission to use it.`
- The following example uses the gamerule fallDamage in the Nodecraft server console for Java:
  ![An example of getting and setting a gamerule in the Nodecraft server console](https://s3-assets.nodecraft.com/attachments/hADHk8dSWWXqo87NEEYw_Capture.PNG)

## List of Gamerules

| Rule Name | Description | Possible Values | Java Edition | Bedrock Edition |
| --- | --- | --- | --- | --- |
| minecraft:fire_spread_radius_around_player | Whether fire and lava ticks can occur outside of an 8 chunk range of a player. | # (number) | ✔️ | ❌ |
| minecraft:show_advancement_messages | Whether advancements should be announced in chat | true/false | ✔️ | ❌ |
| minecraft:block_explosion_drop_decay | 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 (e.g. clicking a bed in dimensions other than the Overworld). | true/false | ✔️ | ❌ |
| minecraft:command_blocks_work | Whether command blocks should be enabled in-game | true/false | ❌ | ✔️ |
| minecraft:command_block_output | Whether command blocks should notify admins when they perform commands | true/false | ✔️ | ✔️ |
| minecraft:max_block_modifications | Controls the maximum number of blocks changed when using /clone, /fill, or /fillbiome. | # (number) | ✔️ | ❌ |
| minecraft:elytra_movement_check | Whether the server should skip checking player speed when the player is wearing elytra | true/false | ✔️ | ❌ |
| minecraft:player_movement_check | Whether the server should skip checking player speed. | true/false | ✔️ | ❌ |
| minecraft:raids | Whether raids are disabled or not | true/false | ✔️ | ❌ |
| minecraft:advance_time | Whether the day-night cycle and moon phases progress | true/false | ✔️ | ✔️ |
| minecraft:entity_drops | Whether entities that are not mobs should have drops | true/false | ✔️ | ✔️ |
| minecraft:fire_spread_radius_around_player | Whether fire should spread and naturally extinguish | true/false | ✔️ | ✔️ |
| minecraft:spawn_phantoms | Whether phantoms can spawn in the nightmare | true/false | ✔️ | ✔️ |
| minecraft:immediate_respawn | Players respawn immediately without showing the death screen. (Bedrock: immediateRespawn) | true/false | ✔️ | ✔️ |
| minecraft:limited_crafting | Whether players should only be able to craft recipes that they've unlocked first | true/false | ✔️ | ❌ |
| minecraft:mob_drops | Whether mobs should drop items | true/false | ✔️ | ✔️ |
| minecraft:spawn_mobs | Whether mobs should naturally spawn | true/false | ✔️ | ✔️ |
| minecraft:spawn_patrols | Whether patrols can spawn | true/false | ✔️ | ❌ |
| minecraft:block_drops | Whether blocks should have drops | true/false | ✔️ | ✔️ |
| minecraft:spawn_wandering_traders | Whether wandering traders can spawn | true/false | ✔️ | ❌ |
| minecraft:spread_vines | Whether vines can spread to other blocks. Cave vines, weeping vines, and twisting vines are not affected. | true/false | ✔️ | ❌ |
| minecraft:advance_weather | Whether the weather will change | true/false | ✔️ | ✔️ |
| minecraft:spawn_wardens | Whether wardens can spawn. | true/false | ✔️ | ❌ |
| minecraft:drowning_damage | Whether the player should take damage when drowning | true/false | ✔️ | ✔️ |
| minecraft:ender_pearls_vanish_on_death | Controls whether thrown ender pearls vanish when the player dies. | true/false | ✔️ | ❌ |
| minecraft:fall_damage | Whether the player should take fall damage | true/false | ✔️ | ✔️ |
| minecraft:fire_damage | Whether the player should take fire damage | true/false | ✔️ | ✔️ |
| minecraft:forgive_dead_players | Makes angered neutral mobs stop being angry when the targeted player dies nearby. | true/false | ✔️ | ❌ |
| minecraft:freeze_damage | Whether the player should take damage when inside powder snow | true/false | ✔️ | ✔️ |
| functionCommandLimit | The maximum number of commands that can be executed by /function at once | # (number) | ❌ | ✔️ |
| minecraft:global_sound_events | Whether certain sound events are heard by all players regardless of location. | true/false | ✔️ | ❌ |
| minecraft:keep_inventory | Whether the player should keep items in their inventory after death | true/false | ✔️ | ✔️ |
| minecraft:lava_source_conversion | Whether new sources of lava are allowed to form. | true/false | ✔️ | ❌ |
| minecraft:log_admin_commands | Whether to log admin commands to server log | true/false | ✔️ | ❌ |
| minecraft:max_command_sequence_length | Determines the number at which the chain command block acts as a "chain" | # (number) | ✔️ | ✔️ |
| minecraft:max_command_forks | Modifies the maximum number of forks in a function or command block that can be created during one tick. | # (number) | ✔️ | ❌ |
| minecraft:max_entity_cramming | The maximum number of pushable entities another entity can try to push, before taking suffocation damage. Setting to 0 disables the rule. Affects players and mobs only (excluding bats) | # (number) | ✔️ | ❌ |
| minecraft:max_minecart_speed | The maximum speed in which minecarts can go. | # (number) | ✔️ | ❌ |
| minecraft:mob_explosion_drop_decay | 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). | true/false | ✔️ | ❌ |
| minecraft:mob_griefing | Whether creepers, zombies, endermen, ghasts, withers, ender dragons, rabbits, sheep, and villagers should be able to change blocks and whether villagers, zombies, skeletons, and zombie pigmen can pick up items | true/false | ✔️ | ✔️ |
| naminecraft:natural_health_regeneration | 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.) | true/false | ✔️ | ✔️ |
| minecraft:players_nether_portal_creative_delay | Control how many ticks the player in Survival or Adventure mode has to wait in the nether portal in order to travel through dimensions through it. | # (number) | ✔️ | ❌ |
| minecraft:players_nether_portal_default_delay | 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. | # (number) | ✔️ | ❌ |
| minecraft:players_sleeping_percentage | What percentage of players must sleep to skip the night. | # (number) | ✔️ | ❌ |
| minecraft:projectiles_can_break_blocks | Control whenever do projectiles can break blocks (like trident breaks pointed dripstone). | true/false | ✔️ | ❌ |
| minecraft:pvp | Whether the player can fight with other players | true/false | ❌ | ✔️ |
| minecraft:random_tick_speed | How often a random block tick occurs (such as plant growth, leaf decay, etc.) per chunk section per game tick. 0 will disable random ticks, higher numbers will increase random ticks | # (number) | ✔️ | ✔️ |
| recipesUnlock | Controls whether the player needs to collect items to unlock recipes in the recipe book. | true/false | ❌ | ✔️ |
| minecraft:reduced_debug_info | 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 | true/false | ✔️ | ❌ |
| respawnBlocksExplode | Prevents beds/respawn anchors from exploding in other dimensions. | true/false | ❌ | ✔️ |
| minecraft:send_command_feedback | 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 | true/false | ✔️ | ✔️ |
| showBorderEffect | Whether border blocks create red particles that float up to indicate a border. | true/false | ❌ | ✔️ |
| showCoordinates | Whether the player's coordinates are displayed | true/false | ❌ | ✔️ |
| minecraft:show_death_messages | Whether a message appears in chat when a player dies | true/false | ✔️ | ✔️ |
| showTags | Hides the "Can place on" and "Can destroy" block lists from item lore, as well as item lock indicators. | true/false | ❌ | ✔️ |
| minecraft:max_snow_accumulation_height | The maximum number of snow layers that can be accumulated on each block. | # (number) | ✔️ | ❌ |
| minecraft:respawn_radius | The number of blocks outward from the world spawn coordinates that a player will spawn in when first joining a server or when dying without a spawnpoint | # (number) | ✔️ | ✔️ |
| minecraft:spectators_generate_chunks | Whether players in spectator mode can generate chunks | true/false | ✔️ | ❌ |
| minecraft:tnt_explodes | Whether TNT will explode or not after activation | true/false | ❌ | ✔️ |
| minecraft:tnt_explosion_drop_decay | 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. | true/false | ✔️ | ❌ |
| minecraft:universal_anger | Makes angered neutral mobs attack any nearby player, not just the player that angered them. Works best if you disable forgiveDeadPlayers. | true/false | ✔️ | ❌ |
| minecraft:water_source_conversion | Whether new sources of water are allowed to form. | true/false | ✔️ | ❌ |

List accurate as of Minecraft 1.21.11

**⚠️Note: Gamerules are an advanced feature of Minecraft. Invalid or misuse of gamerules can cause unpredictable or damaging behavior.**

For more information about gamerules, and the effects they can have on gameplay, be sure to reference the [Minecraft Gamerule Wiki](https://minecraft.gamepedia.com/Commands/gamerule).
