October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk8 min

How to Disable TNT and Creeper Explosions on a Minecraft Server

Stop creepers and TNT from destroying your Minecraft server's builds. This guide covers Java 1.21.11+, older Java releases, Bedrock syntax, permissions, global scope, side effects, and fixes when commands fail.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use the gamerule that matches your Minecraft edition and version: on Java Edition 1.21.11 and newer, run /gamerule mob_griefing false to stop creepers and other mobs from changing blocks, and /gamerule tnt_explodes false to disable TNT explosions. On Java 1.21.10 and older, use the camel-case names mobGriefing and tntExplodes. On Bedrock Edition, use /gamerule mobgriefing false and /gamerule tntexplodes false.

The rules are world-wide, require permission to run commands, and have different side effects: mob_griefing also affects other mobs such as endermen and villagers, while it does not prevent mobs from attacking players.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Commands at a glance

Choose the row for your edition and version. Enter the command in chat with the leading slash, or remove the slash when entering it in a server console.

Server Stop creeper and other mob block damage Stop TNT explosions
Java Edition 1.21.11 or newer /gamerule mob_griefing false /gamerule tnt_explodes false
Java Edition 1.21.10 or older /gamerule mobGriefing false /gamerule tntExplodes false (only on versions that provide this rule)
Bedrock Edition /gamerule mobgriefing false /gamerule tntexplodes false

The TNT rule was added to Java in version 1.21.5 (snapshot 25w10a). A Java world on an older release may not recognize a TNT gamerule at all; in that case, the command cannot be enabled without moving to a version that includes it.

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.

Why the edition and version matter

Minecraft has nearly identical-looking gamerules with different spellings. Java changed its gamerule identifiers to snake_case in 1.21.11, while older Java releases used camelCase. Bedrock uses lowercase names without an underscore. A correctly typed command for the wrong edition can be rejected as an unknown rule or appear to have no effect.

Java Edition 1.21.11 and later

Use mob_griefing and tnt_explodes. These are the current Java identifiers in this version line. The 1.21.11 change also moved gamerules into a registry, which is why current documentation and older guides may show different names.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Java Edition 1.21.10 and earlier

Use mobGriefing for mob block interaction. The TNT rule is written tntExplodes where that release supports it. Documentation for older builds is inconsistent about whether a camel-case name remains accepted after an upgrade, so rely on the exact identifier offered by your running server’s command completion rather than assuming both spellings work.

Bedrock Edition

Use mobgriefing and tntexplodes. Do not add an underscore. Java gamerule names will not work as Bedrock names.

Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.

Disable both protections in game

These steps apply when you can join the world as an operator or another player with permission to use commands.

  1. Confirm the server edition and exact version from the server’s startup information or the game’s version display. Do this before choosing a command.
  2. Join the affected world and open the chat or command interface.
  3. Run the mob rule for your platform:
    /gamerule mob_griefing false on Java 1.21.11 or newer;
    /gamerule mobGriefing false on Java 1.21.10 or older;
    /gamerule mobgriefing false on Bedrock.
  4. Run the TNT rule for your platform:
    /gamerule tnt_explodes false on Java 1.21.11 or newer;
    /gamerule tntExplodes false on an older Java release that includes the rule;
    /gamerule tntexplodes false on Bedrock.
  5. Test in a disposable area. Trigger a creeper and, separately, ignite TNT. The test should leave blocks intact when the corresponding rule is false.

To turn either feature back on, run the same command with true instead of false. For example, /gamerule tnt_explodes true restores TNT explosions on current Java.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Run the commands from a server console

Console syntax normally omits the slash. For current Java, enter:

  • gamerule mob_griefing false
  • gamerule tnt_explodes false

Use the matching camel-case Java names or lowercase Bedrock names from the table when your server is on another version or edition. A console command changes the world currently loaded by that server process; if your server hosts several worlds, check each world that needs protection.

Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by

Permission and cheats requirements

Gamerules are commands, not ordinary gameplay settings. In Java, you need sufficient operator permission; in Bedrock, cheats or equivalent command access must be enabled. A server with commands or cheats disabled will not accept these changes. On a hosted server, an operator may still be unable to run slash commands when cheats are off, so enabling the appropriate command permission is the first troubleshooting step.

If you receive a permission error

  • Make sure you are operating the correct server account, not merely an in-game account with a similarly named profile.
  • Ask the server owner to grant the required operator or command permission, or have the owner execute the command from the console.
  • Do not paste a console command, which has no slash, into in-game chat and assume it failed for the same reason; use the syntax appropriate to the interface.

Check whether a rule is already enabled or disabled

Query the rule without supplying a value to display its current state. For example, on current Java use /gamerule mob_griefing and /gamerule tnt_explodes. Substitute mobGriefing, tntExplodes, mobgriefing, or tntexplodes for older Java or Bedrock as appropriate.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A returned value of false means that rule is disabled in the world you queried. If the query itself reports an unknown rule, stop changing values and verify the edition, exact version, spelling, and whether the release contains the TNT rule.

What each gamerule actually changes

mob_griefing, mobGriefing, or mobgriefing

This is the broad mob-interaction switch. Setting it to false prevents creepers from destroying blocks. It also affects other listed mob behaviors that change blocks or pick up items, including endermen and villagers. Therefore it is not a creeper-only setting: farms, item collection, block-moving behavior, and other mechanics that depend on mob interaction may change as well.

Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

The rule does not make hostile mobs harmless. Mobs can still damage players when their normal attack conditions are met. If your goal is to stop deaths rather than block destruction, this gamerule addresses the wrong problem.

tnt_explodes, tntExplodes, or tntexplodes

This is the dedicated TNT explosion switch. Setting it to false prevents TNT from producing its explosion and therefore protects blocks from TNT detonation. It is independent of mob_griefing: turning off mob griefing does not replace the TNT rule, and turning off TNT does not stop creepers.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose the smallest change that meets your goal

Goal Set mob_griefing family Set tnt_explodes family
Stop creepers damaging terrain, but keep TNT available false Leave unchanged or set true
Stop TNT from exploding, but keep normal mob block behavior Leave unchanged or set true false
Protect the entire world from both causes false false
Restore both behaviors true true

Use the smallest change when you operate farms or adventure mechanics that depend on villagers, endermen, or other mob interactions. If the requirement is simply “no holes in the map,” remember that the mob rule has effects beyond creepers.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Global scope: what these commands cannot do

A gamerule applies to the world, not to one player, claim, building, or coordinate range. Setting it to false protects every loaded and future area in that world from the relevant behavior. It cannot create a safe spawn town while leaving a separate arena or mining area unchanged.

If you need different rules in different regions, a global gamerule is not sufficient. That requires a region-protection system or server software feature that supports per-region explosion controls. Such controls are separate from the vanilla gamerules and must be checked against the exact server software and plugin version you run.

Troubleshooting: when explosions still happen

The command says the rule is unknown

  1. Check whether you used Java, Bedrock, or a cross-play server with a particular backend.
  2. Check the version boundary. Java 1.21.11 and later use underscores; Java 1.21.10 and earlier use camelCase; Bedrock uses lowercase without underscores.
  3. Confirm that your Java release includes the TNT gamerule. It was introduced in 1.21.5, so an older server cannot use it.
  4. Use command completion or a no-value gamerule query to see the names recognized by that running server.

Creepers still damage blocks

  • Query the correctly spelled mob-griefing rule in the same world where the incident occurred.
  • Make sure the returned value is false, not merely that the command was sent without an error.
  • Check that the damage was caused by a creeper rather than TNT, a player, or another explosion source. The mob rule does not replace the TNT rule.
  • Remember that the rule prevents block destruction, not mob attacks. A creeper can still approach and threaten players even when terrain damage is disabled.

TNT still explodes

  • Query the TNT rule with the identifier for your edition and version.
  • Confirm that it returns false in the world where the TNT was placed.
  • Check whether the server is actually running the version you assumed; an older Java build may reject the newer snake_case name.
  • Distinguish TNT from a creeper explosion. Disabling TNT does not affect creepers, and disabling mob griefing does not affect TNT.

The setting reverted after changing worlds

Gamerules are world settings. A multi-world server can have different values in different worlds, so query the rule after entering the specific world that needs protection. If a server-management tool or plugin changes gamerules at startup, its configuration may overwrite a manual change; check that system’s documented settings.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Version-change checklist

When upgrading a Java server across the 1.21.10-to-1.21.11 boundary, verify the rules instead of assuming an old command still works.

  1. Record the current values with the gamerule query command before upgrading.
  2. After the upgrade, query mob_griefing and tnt_explodes in each protected world.
  3. If a rule is missing, use the exact name shown by command completion and check whether the server finished loading the intended version.
  4. Run a controlled creeper and TNT test before allowing normal players back into valuable areas.

Operational checklist for a protected server

  • Identify the edition: Java or Bedrock.
  • Identify the exact version, especially whether Java is 1.21.11 or newer.
  • Confirm command or cheat permission before testing.
  • Apply the mob rule and TNT rule separately; they control different causes.
  • Query each rule after setting it.
  • Test both a creeper and TNT in an expendable area.
  • Document that mob griefing also changes endermen, villagers, and other mob interactions.
  • Tell builders that the protection is world-wide, not region-specific.
  • Recheck values after server upgrades, world changes, or automated startup tools.

Practical examples

Current Java survival server: stop both types of damage

Run:

/gamerule mob_griefing false
/gamerule tnt_explodes false

Then verify with:

/gamerule mob_griefing
/gamerule tnt_explodes

Older Java server: stop creeper damage only

Run:

/gamerule mobGriefing false

Leave the TNT rule unchanged if TNT is still intended to work. If you also need to disable TNT, use tntExplodes only if that server version recognizes it.

Bedrock world: disable both

Run:

/gamerule mobgriefing false
/gamerule tntexplodes false

Do not substitute Java’s underscores in these Bedrock commands.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.