We have a video tutorial on how to disable TNT and creeper explosions in Minecraft:
Explosions can be very dangerous and can cause damages to your builds, the terrain, or player health.
Although it is possible, undoing the effects of explosions may be difficult. It is for this reason that options in game are available to control explosions in your server. You can also enable or disable specific kinds like TNT and creeper explosions. These are made possible using plugins and game rules.
CONTROL EXPLOSIONS USING GAME RULES
Game rule is a feature available to Minecraft by default which allows you to modify gameplay without the use of mods or plugins. Below are the game rule commands to enable and disable different kinds of explosions:
|/gamerule tntexplodes <true|false>||
This command will only work in the Bedrock Edition of Minecraft. For Java Edition, refer to the “Control Explosions Using Plugin” section below.
If set to true, TNT explosions are enabled in your Minecraft worlds. This is the default value.
If set to false, TNT explosions are disabled in your Minecraft worlds.
|/gamerule mobGriefing <true|false>||
If set to true, explosions caused by mobs will be enabled. This is the default value.
If set to false, explosions caused by mobs will be disabled.
This game rule will also affect the ability of mobs to make changes to the world or pick items up e.g. endermen
You can find more information on Game Rules in this article: How to Use Game Rules in Minecraft
CONTROL EXPLOSIONS USING PLUGIN (WORLDGUARD)
If you are running a server type that allows plugins like Spigot, and would like to have more control on the specific explosions you would like to control, you can use the plugin called WorldGuard to do this.
You need to have WorldGuard and WorldEdit plugins installed on your server to use this option.
- WorldGuard plugin page: https://dev.bukkit.org/projects/worldguard
- WorldEdit plugin page: https://dev.bukkit.org/projects/worldedit
You may refer to our knowledgebase tutorial on installing plugins to your server: How to Install Plugins on Your Minecraft Server
If you already have these plugins installed, you may refer to the commands below to control explosions on your server:
|/region flag __global__ tnt <allow|deny>||
If set to allow, TNT explosions are enabled in your Minecraft worlds. This is the default value.
If set to deny, TNT explosions are disabled in you Minecraft worlds.
|/region flag __global__ creeper-explosion <allow|deny>||
If set to allow, explosions caused by creepers will be enabled. This is the default value.
If set to deny, explosions caused by creepers will be disabled.
|/region flag __global__ other-explosion <allow|deny>||
If set to allow, other kinds of explosions will be enabled. This is the default value.
If set to deny, other kinds of explosions will be disabled.