How to Disable TNT and Creeper Explosions in Minecraft

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. 

NOTE: You must be a server operator (OP) to be able to use the /gamerule and /region commands. If you are not yet an operator, check out our tutorial here: Giving Operator (OP) to a Player

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:

COMMAND DESCRIPTION
/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.

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:

Note: These commands will only affect the worlds where they are used in. You will need to teleport to the worlds in your server and enter the commands to change explosion settings for each world. 
COMMAND DESCRIPTION
/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

If you require any further assistance, please contact our support at: https://shockbyte.com/billing/submitticket.php

Mitchell Smith

Managing Director @ Shockbyte

  • tnt, explosions, creeper, game rules, command, worldedit, worldguard, explanation, plugin
  • 62 Users Found This Useful
Was this answer helpful?

Related Articles

How to Configure Autosaving of Your Minecraft World

Minecraft servers have the ability to automatically save world data periodically. By default,...

How to Disable Player Advancement Announcements

Advancement is a feature available exclusively on Minecraft Java Edition wherein players can...

How to Download Your Minecraft Server World

We have a video tutorial on downloading your Minecraft server world: If you want to use your...

How to Modify Spigot Configuration (spigot.yml)

The Spigot Config file has many options and settings that can be modified to change the behavior...

How to Reset The Nether on Your Minecraft Server

With the drastic change to the nether in the latest 1.16 update, many players may want to reset...