Nothing ruins a survival server faster than coming back to a crater where your base used to be. Creepers are the number-one source of grief complaints on Minecraft servers — and the good news is you have several ways to stop the block damage without turning your world into a sandbox. This guide covers the one-line vanilla fix, exactly what it does (and the side effects most guides skip), and the precise WorldGuard setup that stops creepers from breaking blocks while still letting your players use TNT. Everything here is current for modern Java (including the 1.21.11 game-rule rename) and Bedrock.
The quick fix: the mobGriefing game rule
The fastest way to stop creepers destroying terrain is a single game rule. Run this from the server console or as an op in-game:
/gamerule mobGriefing false
Version note: game rules were renamed to snake_case in Java 1.21.11 (December 2025). On 1.21.11 and newer the rule is mob_griefing; on 1.21.10 and earlier (and most existing servers/tutorials) it’s mobGriefing. The old camelCase name still works on older builds, so use whichever matches your version:
# Java 1.21.11+
/gamerule mob_griefing false
# Java 1.21.10 and earlier
/gamerule mobGriefing false
You can check the current value at any time by running the command with no value (e.g. /gamerule mobGriefing). The setting is stored per-world and persists across restarts.
What mobGriefing actually does
Here’s the part most guides gloss over. mobGriefing doesn’t target creepers specifically — it governs whether any mob can modify blocks or pick up items. Setting it to false stops creeper terrain damage and the block destruction from mob-triggered TNT, but it also changes the behaviour of every other griefing mob.
Crucially: with mobGriefing false, creepers still explode and still hurt players and entities — they just don’t break blocks. So your players still take damage; they just won’t lose their builds.
Affected behaviours when you set it to false:
| Mob / source | What stops when mobGriefing = false |
|---|---|
| Creepers | No longer destroy blocks (still explode & damage players) |
| TNT lit by mobs | No mob-triggered block destruction |
| Endermen | Stop picking up / placing blocks |
| Zombies | Stop breaking doors |
| Withers & ghasts | Explosions stop breaking blocks |
| Sheep / rabbits / villagers | Stop eating grass / crops, farming |
| Snow golems, silverfish, ravagers, end crystals | Block-changing behaviours disabled |
For many survival servers that trade-off is fine. But if you rely on iron-farm villager mechanics, enderman behaviour, or you want players to keep using TNT for mining, you need a more surgical tool — and that’s where WorldGuard comes in.
Stop creepers but KEEP TNT (WorldGuard)
Vanilla cannot separate creepers from the rest of mob-griefing — there’s no game rule that isolates them. If you want creeper explosions blocked but functional TNT (and the rest of mob behaviour intact), you need the WorldGuard plugin (which requires a Bukkit/Spigot/Paper server). WorldGuard adds region flags that control explosions independently:
| Flag | Controls | Values |
|---|---|---|
creeper-explosion | Whether creeper explosions do damage | allow / deny |
tnt | Whether TNT detonation & block damage is permitted | allow / deny |
other-explosion | Other explosions (ghasts, end crystals, beds in the Nether) | allow / deny |
To block creeper damage everywhere while keeping TNT functional, apply the flags to the special __global__ region (which covers the entire world):
/rg flag __global__ creeper-explosion deny
/rg flag __global__ tnt allow
(You can leave tnt unset to keep its default behaviour — explicitly setting it to allow just makes your intent clear.) To protect only a specific build instead of the whole world, define a region first and flag that region by name:
//wand (select two corners with WorldEdit)
/rg define spawn
/rg flag spawn creeper-explosion deny
/rg flag spawn tnt allow
This is the correct, server-tested way to stop creeper terrain damage while keeping the rest of the game — including mining with TNT — fully functional. Leave mobGriefing at its default true when you use this method.
Bedrock servers
Bedrock Dedicated Server has its own mobgriefing game rule (all lowercase), set the same way: /gamerule mobgriefing false. It behaves like the Java rule — creepers stop breaking blocks but still explode and damage players. Bedrock doesn’t support WorldGuard, so for surgical, region-based control you’d use a behaviour pack or an add-on rather than a plugin.
Other options
- Stop creepers spawning at all — if you’d rather not deal with them, region-based
mob-spawning deny(WorldGuard) or reducing hostile spawns limits them, though this affects all hostile mobs. - Difficulty — on
peaceful, hostile mobs including creepers don’t spawn at all (but you lose all combat). - Charged creepers — note that lightning-charged creepers deal a much larger explosion; the same flags/rules apply.
If you’re tuning a lot of these world rules at once, our guides on stopping the day/night cycle and stopping the Warden from spawning cover the same game-rule and region approach. For the full configuration reference, see the Minecraft server documentation.
Frequently Asked Questions
Does mobGriefing false stop creepers from exploding?
No — creepers still explode and still damage players and entities. The rule only stops them (and other mobs) from breaking blocks. If you want to stop the explosion damage itself in an area, use WorldGuard’s creeper-explosion deny flag.
How do I stop creeper damage but keep TNT?
Vanilla can’t separate them — mobGriefing affects both. Use WorldGuard: /rg flag __global__ creeper-explosion deny and leave tnt at allow. That blocks creeper block damage server-wide while keeping functional TNT.
What’s the command on newer versions?
On Java 1.21.11+ the rule is mob_griefing (snake_case); on 1.21.10 and earlier it’s mobGriefing. On Bedrock it’s mobgriefing. The behaviour is the same on all three.
Will this affect my villager or iron farms?
Yes — mobGriefing false disables villager farming behaviour and other mob block interactions, which can break some farms. If that matters, use the WorldGuard creeper-explosion flag instead and leave mobGriefing on.
Want creeper-proofing handled without editing configs by hand? Our managed Minecraft servers ship with Paper, WorldGuard-ready setups and a one-click config editor so you can apply these rules in seconds.
Free Minecraft Tools
Speed up your server with our free Minecraft tools:
Ready to play?
Run your own Minecraft server with XGamingServer
Spin up an always-on Minecraft server your friends can join in minutes — no port-forwarding, no tech headaches.






