To disable mob griefing on a Minecraft server, type gamerule mob_griefing false in the console on 1.21.11 or newer, or gamerule mobGriefing false on older versions. Creepers stop blowing holes in builds, endermen stop taking blocks and ghast fireballs stop starting fires. It applies right away, no restart needed. Read the side effects before you do it, though: villagers stop farming too.
The mob griefing game rule by version
In snapshot 25w44a, which became Java Edition 1.21.11, Mojang renamed every game rule from camelCase to snake_case. Old tutorials still show the old name, and the console rejects it on new servers.
| Edition and version | Command |
|---|---|
| Java 1.21.11 and newer (26.x) | gamerule mob_griefing false |
| Java 1.21.10 and older | gamerule mobGriefing false |
| Bedrock | gamerule mobgriefing false |
The default is true. The rule needs permission level 2, so in game you must be an operator and add a slash. If you are not one yet, see how to OP yourself on a Minecraft server.
How to disable mob griefing step by step
- Make a quick backup if your world has farms you care about. On TheGameHosting, use the Backups tab.
- Open the console. On TheGameHosting, that is the Console tab of your server.
- Check your Minecraft version in the startup log.
- Type
gamerule mob_griefing false(orgamerule mobGriefing falseon 1.21.10 and older). - Type the rule name with no value, for example
gamerule mob_griefing, and check the console answersfalse. - On Paper, Purpur and other Paper forks, repeat it for the Nether and the End (see below).
- Test it with a creeper in survival: it should explode and hurt you, but leave the blocks in place.
gamerule mob_griefing false
gamerule mob_griefinggamerule mobGriefing falseWhat turning off mob griefing stops
The Minecraft Wiki describes the rule as controlling whether mobs can change blocks and whether they can pick up items. With it off:
| Mob | What stops |
|---|---|
| Creepers, withers, end crystals | Explosions no longer break blocks (they still damage players and mobs) |
| Ghasts and blazes | Fireballs no longer break blocks or start fires |
| Endermen | No picking up or placing blocks |
| Zombies | No breaking doors, no picking up items, no attacking turtle eggs |
| Ravagers | No breaking crops and leaves |
| Rabbits, sheep, foxes | Rabbits stop eating carrot crops, sheep stop turning grass to dirt, foxes stop picking berries |
| Villagers | No farming and no item pickup |
| Piglins, allays | No picking up dropped items |
| Snow golems, ender dragon | No snow trail, no block destruction |
According to the same page, it has no effect on bees, breezes, frogs, turtles or players. Player TNT is handled by other rules, and fire spread is its own rule too.
What it breaks: farms and villagers
The rule is all or nothing, and some of what it blocks is useful:
- Villager crop farms stop working, because villagers can no longer harvest or plant.
- Piglin bartering with gold thrown on the ground stops, since piglins cannot pick up dropped items. Handing gold to them directly still works, per the wiki.
- Item-collecting allays stop collecting.
- Sheep stop eating grass, but their wool still grows back.
If your players rely on these, a targeted fix is better than the game rule.
Should you turn it off? On a creative server, a build server or a server for young kids, almost always: nobody there needs mobs changing blocks. On a survival SMP it is a group decision. Creepers are part of the challenge for many players, and a rule that also stops villager farms and piglin trading changes the game more than people expect. A middle ground that works for many groups is to leave the rule on and protect the spawn and main bases with region flags.
Paper: one value per world
On Paper and its forks, game rules are stored per world. Running the command in the console only changes the main overworld, so ghasts can still burn things in the Nether. Run it once per dimension:
gamerule mob_griefing false
execute in minecraft:the_nether run gamerule mob_griefing false
execute in minecraft:the_end run gamerule mob_griefing falseExtra worlds from a multiworld plugin need their own run: stand in each world and use /gamerule mob_griefing false from the chat. The same per-world detail applies to keep inventory, as our keep inventory guide explains.
Stop only creepers or endermen with WorldGuard
To keep villagers farming but stop creeper holes, use a region plugin. WorldGuard has separate flags for each kind of damage, and setting a flag on the global region __global__ applies it to the whole world:
/rg flag __global__ creeper-explosion deny
/rg flag __global__ enderman-grief deny
/rg flag __global__ ghast-fireball denyThe WorldGuard docs describe creeper-explosion as whether creeper explosions can do damage, enderman-grief as whether endermen break or place blocks, and ghast-fireball as whether ghast fireballs and wither skulls can do damage. Each world has its own global region, so repeat it in the Nether. For claims that protect each player's base from other players, see our guide to protecting builds on a Minecraft server.
Keep your builds safe with TheGameHosting
On a TheGameHosting Minecraft server you change the game rule in the Console tab in seconds, install WorldGuard from the Plugins tab, and keep restore points in Backups in case a creeper got there first. The server runs 24/7 on AMD Ryzen 9950X and 7950X3D hardware with DDoS protection, and 24/7 chat support can help if a command does not behave. Plans start at $1.90 USD/month; see plans and pricing and use FULL2026 for 15% off for life.
FAQ
Why does gamerule mobGriefing false not work on my server?
Since Java 1.21.11 the rule is called mob_griefing. Use gamerule mob_griefing false. The old name only works on 1.21.10 and older.
Do creepers still hurt players with mob griefing off?
Yes. The explosion still damages players and mobs; it just does not break blocks.
Does disabling mob griefing stop villagers from farming?
Yes. Villagers cannot harvest or plant crops and cannot pick up items. Use WorldGuard flags if you only want to stop creepers or endermen.
Does mob griefing affect TNT placed by players?
No. Player TNT is not a mob. Minecraft has a separate tnt_explodes game rule, and WorldGuard has a tnt flag.
Hosting for these games
Written by TheGameHosting Team, the people who run our servers in Dallas and Amsterdam and answer your tickets.
All posts
TheGameHosting Team
