You may have already found yourself wanting to modify certain aspects of the game, but didn’t know how. This is where the /gamerule command comes in. Released in version 1.4, this Minecraft command lets you modify many of your game’s parameters, easily and in Vanilla ! By the end of this article, you’ll know what each of these gamerules is for, and how to use them.
The different ways to set the gamerules of a Minecraft world
To begin with, it’s important to understand how gamerules can be set, and how they’re composed, so you can use them later. There are 2 ways of setting the game’s gamerules: either via the /gamerule command, or when creating your world (you can click on the “game rules” button, and a menu containing all the game’s gamerules will appear (see image below). Although easier to use, you can only use this menu when creating your world. Once created, you’ll be forced to use the controls. This menu is also not accessible on the Bedrock version of the game.
The command is composed as follows :
- The command base (/gamerule)
- The name of the rule you wish to modify (complete list in the table below)
- What you want to do with this gamerule. In general, you should write true or false to indicate how you want the gamerule to behave. Some gamerules, however, require a number to function.
The gamerule list
Name | Description | default value | Availability | Release version (Java version) |
announceAdvancements | Allows you to hide (false) or show (true) progress announcements in chat. | true | Only Java | 1.12 |
blockExplosionDropDecay | Lets you control whether, when a block explodes (except for TNT), the quantity of items falling to the ground should be 100% (false) or random (true). | true | Only Java | 1.19.3 |
commandBlocksEnabled | Allows you to enable (true) or disable (false) command blocks. | true | Only Bedrock | – |
commandBlockOutput | Allows you to enable (true) or disable (false) the sending of a message to server administrators when a command block executes a command. | true | Java & Bedrock | 1.4.2 |
disableElytraMovementCheck | Allows you to enable (false) or disable (true) the server’s verification of the player’s speed when moving with elytra. | false | Only Java | 1.9 |
disableRaids | Enables (false) or disables (true) village raids. | false | Only Java | 1.14.3 |
doDaylightCycle | Enables (true) or disables (false) the day/night cycle. | true | Java & Bedrock | 1.6 |
doEntityDrops | Allows you to activate (true) or deactivate (false) the item drop when an entity other than a creature is broken (e.g. a boat). | true | Java & Bedrock | 1.8.1 |
doFireTick | Enables (true) or disables (false) fire propagation. | true | Java & Bedrock | 1.4.2 |
doInsomnia | Enables (true) or disables (false) ghost spawn. | true | Java & Bedrock | 1.15 |
doImmediateRespawn | Allows you to enable (true) or disable (false) immediate reappearance after death. | false | Java & Bedrock | 1.15 |
doLimitedCrafting | Allows you to prohibit (true) or authorize (false) the crafting of unlocked recipes. | false | Only Java | 1.12 |
doMobLoot | Allows you to activate (true) or deactivate (false) the drop of items and experience when a creature dies. | true | Java & Bedrock | 1.4.2 |
doMobSpawning | Allows you to activate (true) or deactivate (false) the natural spawn of monsters. | true | Java & Bedrock | 1.4.2 |
doPatrolSpawning | Allows you to enable (true) or disable (false) the natural appearance of illageois. | true | Only Java | 1.15.2 |
doTileDrops | Enables (true) or disables (false) item drop when a block is broken. | true | Java & Bedrock | 1.4.2 |
doTraderSpawning | Allows you to enable (true) or disable (false) the appearance of street vendors. | true | Only Java | 1.15.2 |
doWeatherCycle | Enables (true) or disables (false) the weather cycle. | true | Java & Bedrock | 1.11 |
doWardenSpawning | Allows you to enable (true) or disable (false) the appearance of Wardens in ancient cities. | true | Only Java | 1.19 |
drowningDamage | Allows you to activate (true) or deactivate (false) drowning damage. | true | Java & Bedrock | 1.15 |
fallDamage | Allows you to activate (true) or deactivate (false) fall damage. | true | Java & Bedrock | 1.15 |
fireDamage | Allows you to activate (true) or deactivate (false) fire damage. | true | Java & Bedrock | 1.15 |
forgiveDeadPlayers | Allows you to prevent monsters from continuing to attack players when they have reappeared after a death (true). | true | Only Java | 1.16 |
freezeDamage | Allows you to activate (true) or deactivate (false) frost damage (damage sustained in powdery snow). | true | Java & Bedrock | 1.17 |
globalSoundEvents | Allows you to prevent all players on a server from hearing the sounds of in-game events (such as the death of the Ender Dragon) (false). | true | Only Java | 1.19.3 |
functionCommandLimit | Allows you to set the maximum number of commands that can be executed by /function at a time. | 10 000 | Only Bedrock | – |
keepInventory | Allows you to enable (true) or disable (false) inventory retention after death. | false | Java & Bedrock | 1.4.2 |
lavaSourceConversion | Allows you to enable (true) or disable (false) the creation of infinite lava sources (in the same way as infinite water sources). | false | Only Java | 1.19.3 |
logAdminCommands | Allows you to enable (true) or disable (false) the recording of administration commands in server logs. | true | Only Java | 1.8 |
maxCommandChainLength | Allows you to set the maximum length of a string of commands that can be executed during a tick. Applies to command blocks and functions. | 65 538 | Java & Bedrock | 1.12 |
maxEntityCramming | Allows you to set the maximum number of entities that can fit on a single block before suffocating. | 24 | Only Java | 1.11 |
mobExplosionDropDecay | Lets you control whether, when a monster explodes, the quantity of items falling to the ground should be 100% (false) or random (true). | true | Only Java | 1.19.3 |
mobGriefing | Allows you to enable (true) or disable (false) terrain modification by creatures. If this gamerule is deactivated, creepers will no longer break blocks by exploding, for example. | true | Java & Bedrock | 1.4.2 |
naturalRegeneration | Allows you to activate (true) or deactivate (false) natural regeneration (i.e. with food). If this gamerule is deactivated, players will be forced to use gold apples to regain life. | true | Java & Bedrock | 1.6 |
playersSleepingPercentage | Allows you to choose the percentage of sleeping players needed to get through the night. For example, if you set this gamerule to 50, then if half the players on the server are asleep, the night will pass. | 100 | Only Java | 1.17 |
pvp | Allows you to activate (true) or deactivate (false) PvP. | true | Only Bedrock | – |
randomTickSpeed | Allows you to choose how often a random block tick occurs (if you increase the random tick speed, certain game events such as plant growth or leaf decomposition will be accelerated. On the other hand, if you lower it, these events will be slowed down). From number 4096 upwards, these events will be instantaneous. | Java : 3 Bedrock : 1 | Java & Bedrock | 1.8 |
reducedDebugInfo | Allows you to display the entire F3 menu (false) or only a reduced version (true). Also enables you to activate (false) or deactivate (true) the F3 + G (which displays chunk borders) and F3 + B (which displays entity hitboxes) shortcuts. | false | Only Java | 1.8 |
respawnBlocksExplode | Allows you to activate (true) or deactivate (false) bed explosions in the nether and ender and reappearance anchors in the overworld and ender. | true | Only Bedrock | – |
sendCommandFeedback | Allows you to enable (true) or disable (false) the sending of a comment message when a player executes a command. | true | Java & Bedrock | 1.8 |
showBorderEffect | Allows you to show (true) or hide (false) border block effects. | true | Only Bedrock | – |
showCoordinates | Allows you to show (true) or hide (false) coordinates. | true | Only Bedrock | – |
showDeathMessages | Allows you to enable (true) or disable (false) the display of death messages. | true | Java & Bedrock | 1.8 |
showTags | ? | ? | Only Bedrock | – |
snowAccumulationHeight | Allows you to set the maximum number of snow layers that can be accumulated on 1 block when it snows. | 1 | Only Java | 1.19.3 |
spawnRadius | Allows you to set the radius around the appearance point in which players can appear when they join a server for the first time, or when they die without having defined a new appearance point. | Java : 10 Bedrock : 5 | Java & Bedrock | 1.9 |
spectatorsGenerateChunks | Allows (true) or disallows (false) the viewer to generate chunks. | true | Only Java | 1.9 |
tntExplodes | Allows you to activate (true) or deactivate (false) TNT explosions after their activation. | true | Only Bedrock | – |
tntExplosionDropDecay | Lets you control whether, when a TNT explodes, the quantity of items falling to the ground should be 100% (false) or random (true). | false | Only Java | 1.19.3 |
universalAnger | Allows you to allow (true) or disallow (false) monsters to attack all nearby players, not just the player who angered them. Works best if the ForgiveDeadPlayers gamerule is disabled. | false | Only Java | 1.16 |
waterSourceConversion | Allows you to enable (true) or disable (false) the creation of infinite water sources. | true | Only Java | 1.19.3 |
Source : Minecraft Fandom
I would really like to toally delete Creepers from the game, but keep all the other mobs. Is there s “No Creeper” command?