All Mods Resource Packs Data Packs Shaders Modpacks Plugins
TNTUtils

TNTUtils

by ljfa-ag • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

A small mod that provides some config options and tags to control how explosions behave.

TNTUtils can be installed on a server without the clients requiring it.

Note that explosions from other mods are not guaranteed be affected by TNTUtils, unless they use one of the Level.explode overloads.

Current features:

  • Change the size of explosions or disable them entirely
    • in 1.20+, the entity type tags #tntutils:deny_explosions and #tntutils:allow_explosions can be used to disallow or allow certain entity types to create explosions
    • in 1.20+, the entity tags (they are applied with the /tag command, not to be confused with entity type tags) tntutils.deny_explosions and tntutils.allow_explosions can be used to disallow or allow individual entities to create explosions
  • Disable TNT explosions
  • Prevent TNT from chain-reacting
  • A "/explode" command (called "/explosion" in 1.12.2 and earlier)
  • Change blast resistances of individual blocks
  • Modify the chance that a destroyed block will drop as an item
    • in 1.20+, see also the game rules "mobExplosionDropDecay", "tntExplosionDropDecay" and "blockExplosionDropDecay"
  • Prevent explosions from destroying blocks
    • in 1.20+, individual blocks can be blacklisted or whitelisted with the block tags #tntutils:explosion_blacklist and #tntutils:explosion_whitelist, respectively. The whitelist takes precedence over the blacklist and over any config option.
    • in 1.12.2 and earlier, individual blocks can be specified in the config file
  • Prevent Creepers from destroying blocks ("environmentally friendly creepers")
  • Prevent explosions from triggering blocks (e.g. Wind Charge explosion flipping levers)
    • the block tags #tntutils:trigger_blacklist and #tntutils:trigger_whitelist can be used to blacklist or whitelist individual blocks
  • Prevent explosions from damaging all or certain entities
    • in 1.20+, the entity type tags #tntutils:explosion_blacklist and #tntutils:explosion_whitelist can be used to blacklist or whitelist individual entity types
  • Prevent explosions from damaging items laying on the ground
    • in 1.20+, the item tags #tntutils:explosion_blacklist and #tntutils:explosion_whitelist can be used to blacklist or whitelist individual items

All of these features can be toggled in the config file.

Licensing and Credits

You are free to add the mod to a modpack.

TNTUtils is licensed under the MIT license. The Fabric version also includes Fiber for the configuration system, which is licensed under the Apache-2.0 License.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.11
Fabric
3mo ago 1
26.2
Fabric
3mo ago 1
1.20.1
Fabric
3mo ago 1
1.21.1
Fabric
3mo ago 1
26.1.2
Fabric
3mo ago 1
26.2
Fabric
3mo ago 1
26.2
Neoforge
3mo ago 1
26.1.x
Neoforge
8mo ago 1
26.1.x
Fabric
8mo ago 1
1.20.1
Fabric
9mo ago 1
1.20.1
Forge
9mo ago 1
1.21.1
Fabric
9mo ago 1
1.21.1
Neoforge
9mo ago 1
1.21.11
Fabric
10mo ago 1
1.21.11
Neoforge
10mo ago 1
1.21.11
Fabric
10mo ago 1
1.21.11
Neoforge
10mo ago 1
1.21.x
Fabric
last yr. 1
1.21.x
Neoforge
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Neoforge
last yr. 1
1.12.2
Forge
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Forge
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Neoforge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Fabric
last yr. 1
1.21.1
Neoforge
last yr. 1
1.12.x
Forge
last yr. 1
  • \[Fabric only\] Fixed an issue where decimal numbers in the config file are truncated to integers when Jankson is installed (either directly or included in another mod)
[26.2-2.0.5] 26.2-2.0.5 by ljfa-ag on Aug 02, 2026
Download
  • \[Fabric only\] Fixed an issue where decimal numbers in the config file are truncated to integers when Jankson is installed (either directly or included in another mod)
[1.20.1-2.0.5] 1.20.1-2.0.5 by ljfa-ag on Aug 02, 2026
Download
  • \[Fabric only\] Fixed an issue where decimal numbers in the config file are truncated to integers when Jankson is installed (either directly or included in another mod)
[1.21.1-2.0.5] 1.21.1-2.0.5 by ljfa-ag on Aug 02, 2026
Download
  • \[Fabric only\] Fixed an issue where decimal numbers in the config file are truncated to integers when Jankson is installed (either directly or included in another mod)
[26.1.2-2.0.5] 26.1.2-2.0.5 by ljfa-ag on Aug 02, 2026
Download
  • \[Fabric only\] Fixed an issue where decimal numbers in the config file are truncated to integers when Jankson is installed (either directly or included in another mod)
  • Now requires Minecraft 26.1.2
[26.2-2.0.4] 26.2-2.0.4 by ljfa-ag on Jul 13, 2026
Download
Updated to Minecraft 26.2.
[26.2-2.0.4] 26.2-2.0.4 by ljfa-ag on Jul 13, 2026
Download
Updated to Minecraft 26.2.
[26.1-2.0.4] 26.1-2.0.4 by ljfa-ag on Feb 21, 2026
Download
First update for Minecraft 26.1 (snapshots and release). The mod loaders are still unstable, so use at your own risk. Please report any issues that you come across to our [issue tracker](https://github.com/ljfa-ag/TNTUtils/issues).
[26.1-2.0.4] 26.1-2.0.4 by ljfa-ag on Feb 21, 2026
Download
First update for Minecraft 26.1 (snapshots and release). The mod loaders are still unstable, so use at your own risk. Please report any issues that you come across to our [issue tracker](https://github.com/ljfa-ag/TNTUtils/issues).
[1.20.1-2.0.4] 1.20.1-2.0.4 by ljfa-ag on Jan 16, 2026
Download
  • Added the entity type tags #tntutils:deny_explosions and #tntutils:allow_explosions, which can be used to disallow or allow entity types to create explosions, respectively.
  • For example, tagging minecraft:ghast with deny_explosions (in a datapack) allows you to block explosions from Ghast fireballs.*
  • Individual entities (as opposed to entity types) can also be tagged with tntutils.deny_explosions and tntutils.allow_explosions to (dis)allow them to create explosions.
  • The entity tags are not to be confused with entity type tags. They can be applied to an entity with the /tag command. Notice the dot instead of a colon, since the argument to /tag add cannot contain colons.*
  • For example, to make a Creeper that explodes even when explosions are disabled in the config, you can use the command /tag @n[type=creeper] add tntutils.allow_explosions.*
  • Note: While it is possible to tag a player with tntutils.deny_explosions, this will not completely prevent them from causing explosions, as, for example, they can still ignite TNT with a redstone signal.*
  • Added the config option entityDamageMultiplier, which can be used to change the amount of damage applied to entities.
  • Note: Since the implementation of knockbackMultiplier would need to be much more complicated in 1.20.1 than in later versions, I decided not to backport it.*
  • The /explode command will now bypass the disableExplosions config option.
  • Added suggestion for the default explosion strength (4) to the '/explode' command.
[1.20.1-2.0.4] 1.20.1-2.0.4 by ljfa-ag on Jan 16, 2026
Download
  • Added the entity type tags #tntutils:deny_explosions and #tntutils:allow_explosions, which can be used to disallow or allow entity types to create explosions, respectively.
  • For example, tagging minecraft:ghast with deny_explosions (in a datapack) allows you to block explosions from Ghast fireballs.*
  • Individual entities (as opposed to entity types) can also be tagged with tntutils.deny_explosions and tntutils.allow_explosions to (dis)allow them to create explosions.
  • The entity tags are not to be confused with entity type tags. They can be applied to an entity with the /tag command. Notice the dot instead of a colon, since the argument to /tag add cannot contain colons.*
  • For example, to make a Creeper that explodes even when explosions are disabled in the config, you can use the command /tag @n[type=creeper] add tntutils.allow_explosions.*
  • Note: While it is possible to tag a player with tntutils.deny_explosions, this will not completely prevent them from causing explosions, as, for example, they can still ignite TNT with a redstone signal.*
  • Added the config option entityDamageMultiplier, which can be used to change the amount of damage applied to entities.
  • Note: Since the implementation of knockbackMultiplier would need to be much more complicated in 1.20.1 than in later versions, I decided not to backport it.*
  • The /explode command will now bypass the disableExplosions config option.
  • Added suggestion for the default explosion strength (4) to the '/explode' command.
[1.21.1-2.0.4] 1.21.1-2.0.4 by ljfa-ag on Jan 13, 2026
Download
  • Added the entity type tags #tntutils:deny_explosions and #tntutils:allow_explosions, which can be used to disallow or allow entity types to create explosions, respectively.
  • For example, tagging minecraft:ghast with deny_explosions (in a datapack) allows you to block explosions from Ghast fireballs.*
  • Individual entities (as opposed to entity types) can also be tagged with tntutils.deny_explosions and tntutils.allow_explosions to (dis)allow them to create explosions.
  • The entity tags are not to be confused with entity type tags. They can be applied to an entity with the /tag command. Notice the dot instead of a colon, since the argument to /tag add cannot contain colons.*
  • For example, to make a Creeper that explodes even when explosions are disabled in the config, you can use the command /tag @n[type=creeper] add tntutils.allow_explosions.*
  • Note: While it is possible to tag a player with tntutils.deny_explosions, this will not completely prevent them from causing explosions, as, for example, they can still ignite TNT with a redstone signal.*
  • Added the config options entityDamageMultiplier and knockbackMultiplier, which can be used to change the amount of damage and knockback applied to entities, respectively.
  • The /explode command will now bypass the disableExplosions config option.
  • Added suggestion for the default explosion strength (4) to the '/explode' command.
[1.21.1-2.0.4] 1.21.1-2.0.4 by ljfa-ag on Jan 13, 2026
Download
  • Added the entity type tags #tntutils:deny_explosions and #tntutils:allow_explosions, which can be used to disallow or allow entity types to create explosions, respectively.
  • For example, tagging minecraft:ghast with deny_explosions (in a datapack) allows you to block explosions from Ghast fireballs.*
  • Individual entities (as opposed to entity types) can also be tagged with tntutils.deny_explosions and tntutils.allow_explosions to (dis)allow them to create explosions.
  • The entity tags are not to be confused with entity type tags. They can be applied to an entity with the /tag command. Notice the dot instead of a colon, since the argument to /tag add cannot contain colons.*
  • For example, to make a Creeper that explodes even when explosions are disabled in the config, you can use the command /tag @n[type=creeper] add tntutils.allow_explosions.*
  • Note: While it is possible to tag a player with tntutils.deny_explosions, this will not completely prevent them from causing explosions, as, for example, they can still ignite TNT with a redstone signal.*
  • Added the config options entityDamageMultiplier and knockbackMultiplier, which can be used to change the amount of damage and knockback applied to entities, respectively.
  • The /explode command will now bypass the disableExplosions config option.
  • Added suggestion for the default explosion strength (4) to the '/explode' command.
  • Added the entity type tags #tntutils:deny_explosions and #tntutils:allow_explosions, which can be used to disallow or allow entity types to create explosions, respectively.
  • For example, tagging minecraft:ghast with deny_explosions (in a datapack) allows you to block explosions from Ghast fireballs.*
  • Individual entities (as opposed to entity types) can also be tagged with tntutils.deny_explosions and tntutils.allow_explosions to (dis)allow them to create explosions.
  • The entity tags are not to be confused with entity type tags. They can be applied to an entity with the /tag command. Notice the dot instead of a colon, since the argument to /tag add cannot contain colons.*
  • For example, to make a Creeper that explodes even when explosions are disabled in the config, you can use the command /tag @n[type=creeper] add tntutils.allow_explosions.*
  • Note: While it is possible to tag a player with tntutils.deny_explosions, this will not completely prevent them from causing explosions, as, for example, they can still ignite TNT with a redstone signal.*
  • Added the config options entityDamageMultiplier and knockbackMultiplier, which can be used to change the amount of damage and knockback applied to entities, respectively.
  • The /explode command will now bypass the disableExplosions config option.
  • Added the entity type tags #tntutils:deny_explosions and #tntutils:allow_explosions, which can be used to disallow or allow entity types to create explosions, respectively.
  • For example, tagging minecraft:ghast with deny_explosions (in a datapack) allows you to block explosions from Ghast fireballs.*
  • Individual entities (as opposed to entity types) can also be tagged with tntutils.deny_explosions and tntutils.allow_explosions to (dis)allow them to create explosions.
  • The entity tags are not to be confused with entity type tags. They can be applied to an entity with the /tag command. Notice the dot instead of a colon, since the argument to /tag add cannot contain colons.*
  • For example, to make a Creeper that explodes even when explosions are disabled in the config, you can use the command /tag @n[type=creeper] add tntutils.allow_explosions.*
  • Note: While it is possible to tag a player with tntutils.deny_explosions, this will not completely prevent them from causing explosions, as, for example, they can still ignite TNT with a redstone signal.*
  • Added the config options entityDamageMultiplier and knockbackMultiplier, which can be used to change the amount of damage and knockback applied to entities, respectively.
  • The /explode command will now bypass the disableExplosions config option.
Updated to Minecraft 1.21.11.
And with that, Merry Christmas everyone!
Updated to Minecraft 1.21.11.
And with that, Merry Christmas everyone!
[1.21.9-2.0.3] 1.21.9-2.0.3 by ljfa-ag on Oct 01, 2025
Download
Updated to Minecraft 1.21.9.
[1.21.9-2.0.3] 1.21.9-2.0.3 by ljfa-ag on Oct 01, 2025
Download
Updated to Minecraft 1.21.9.
[1.21.7-2.0.3] 1.21.7-2.0.3 by ljfa-ag on Jul 14, 2025
Download
Initial release for Minecraft 1.21.7. Since explosions received a significant refactor in Minecraft, things might not be stable yet or could function a bit differently from before.
  • Added suggestion for the default explosion strength (4) to the '/explode' command
[1.21.7-2.0.3] 1.21.7-2.0.3 by ljfa-ag on Jul 14, 2025
Download
Initial release for Minecraft 1.21.7. Since explosions received a significant refactor in Minecraft, things might not be stable yet or could function a bit differently from before.
  • Added suggestion for the default explosion strength (4) to the '/explode' command
[1.12.2-1.2.4] 1.12.2-1.2.4 by ljfa-ag on Jul 11, 2025
Download
Finally another release for Minecraft 1.12.2 after a very long time! This version fixes a longstanding oversight in the interaction with Applied Energistics 2, and brings the code and metadata more up-to-date. I'm currently not planning to add new features to the 1.12.2 version unless requested.
  • Added the config option 'alwaysAffectAE2Singularities', defaulting to true, which makes sure that Applied Energistics 2 Singularities are still affected by explosions when entity or item damage is disabled, so that it is possible to entangle them.
  • Updated the URL that is shown in the Mods screen
  • Fixed config values unnecessarily being loaded twice
  • Removed some code that is no longer needed
[1.20.1-2.0.3] 1.20.1-2.0.3 by ljfa-ag on Jul 08, 2025
Download
  • Fixed item whitelist not being applied when 'disableEntityDamage' is set to true
  • In particular, AE2 Singularities can now be entangled when entity damage is disabled
  • \[Fabric only\] The config file can now be reloaded using the '/reload-tntutils-config' command ((Neo)Forge already reloads the config file when it is changed)
  • (Note: Primed TNT can't have custom block states in 1.20.1)
  • Changed the way the mod hooks into explosions. This has no impact on vanilla but might affect modded explosions.
[1.20.1-2.0.3] 1.20.1-2.0.3 by ljfa-ag on Jul 08, 2025
Download
  • Fixed item whitelist not being applied when 'disableEntityDamage' is set to true
  • In particular, AE2 Singularities can now be entangled when entity damage is disabled
  • \[Fabric only\] The config file can now be reloaded using the '/reload-tntutils-config' command ((Neo)Forge already reloads the config file when it is changed)
  • (Note: Primed TNT can't have custom block states in 1.20.1)
  • Changed the way the mod hooks into explosions. This has no impact on vanilla but might affect modded explosions.
[1.21.1-2.0.3] 1.21.1-2.0.3 by ljfa-ag on Jul 07, 2025
Download
  • Fixed item whitelist not being applied when 'disableEntityDamage' is set to true
  • In particular, AE2 Singularities can now be entangled when entity damage is disabled
  • \[Fabric only\] The config file can now be reloaded using the '/reload-tntutils-config' command ((Neo)Forge already reloads the config file when it is changed)
  • Primed TNT entities with a custom block state will now drop the corresponding block rather than TNT when 'disableTNT' is set to true
  • Changed the way the mod hooks into explosions. This has no impact on vanilla but might affect modded explosions.
[1.21.1-2.0.3] 1.21.1-2.0.3 by ljfa-ag on Jul 07, 2025
Download
  • Fixed item whitelist not being applied when 'disableEntityDamage' is set to true
  • In particular, AE2 Singularities can now be entangled when entity damage is disabled
  • \[Fabric only\] The config file can now be reloaded using the '/reload-tntutils-config' command ((Neo)Forge already reloads the config file when it is changed)
  • Primed TNT entities with a custom block state will now drop the corresponding block rather than TNT when 'disableTNT' is set to true
  • Changed the way the mod hooks into explosions. This has no impact on vanilla but might affect modded explosions.
Fixed java.lang.NoSuchMethodError crash when trying to load a world. I accidentally uploaded the wrong JAR file for the Forge version.

Initial release for Minecraft 1.20.1 with Fabric and Forge.

Has the same features as 1.21.1-2.0.2 (excluding of course the options and tags relating to block triggering, which was only added in Minecraft 1.21).
[1.20.1-2.0.2] 1.20.1-2.0.2 by ljfa-ag on May 27, 2025
Download
Initial release for Minecraft 1.20.1 with Fabric and Forge.

Has the same features as 1.21.1-2.0.2 (excluding of course the options and tags relating to block triggering, which was only added in Minecraft 1.21).

[1.21.1-2.0.2] 1.21.1-2.0.2 by ljfa-ag on May 08, 2025
Download
In commemoration of the 80th anniversary of the end of World War II in Europe. Let us keep defusing bombs!
  • Added the config option disableCreeperBlockDamage: Prevents Creepers from destroying blocks
  • Added the config option modifyExplosionResistances: Allows changing of explosion resistances for individual blocks
  • \[Fabric only\] The config file will now be backed up if it contains syntax errors (NeoForge already handles this)
  • TNT minecarts will now be damaged and destroyed by explosions when preventChainExplosions is turned on, rather than be immune to explosion damage
  • Fixed desync issues with TNT and TNT minecarts when client and server have differing config options

[1.21.1-2.0.2] 1.21.1-2.0.2 by ljfa-ag on May 08, 2025
Download
In commemoration of the 80th anniversary of the end of World War II in Europe. Let us keep defusing bombs!
  • Added the config option disableCreeperBlockDamage: Prevents Creepers from destroying blocks
  • Added the config option modifyExplosionResistances: Allows changing of explosion resistances for individual blocks
  • \[Fabric only\] The config file will now be backed up if it contains syntax errors (NeoForge already handles this)
  • TNT minecarts will now be damaged and destroyed by explosions when preventChainExplosions is turned on, rather than be immune to explosion damage
  • Fixed desync issues with TNT and TNT minecarts when client and server have differing config options

TNTUtils Icon
Download TNTUtils
Select game version
Select platform