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_explosionsand#tntutils:allow_explosionscan be used to disallow or allow certain entity types to create explosions - in 1.20+, the entity tags (they are applied with the
/tagcommand, not to be confused with entity type tags)tntutils.deny_explosionsandtntutils.allow_explosionscan be used to disallow or allow individual entities to create explosions
- in 1.20+, the entity type tags
- 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_blacklistand#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
- in 1.20+, individual blocks can be blacklisted or whitelisted with the block tags
- 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_blacklistand#tntutils:trigger_whitelistcan be used to blacklist or whitelist individual blocks
- the block tags
- Prevent explosions from damaging all or certain entities
- in 1.20+, the entity type tags
#tntutils:explosion_blacklistand#tntutils:explosion_whitelistcan be used to blacklist or whitelist individual entity types
- in 1.20+, the entity type tags
- Prevent explosions from damaging items laying on the ground
- in 1.20+, the item tags
#tntutils:explosion_blacklistand#tntutils:explosion_whitelistcan be used to blacklist or whitelist individual items
- in 1.20+, the item tags
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 |
|---|---|---|---|---|---|
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 8mo ago | 1 | ||||
| 8mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| 10mo ago | 1 | ||||
| 10mo ago | 1 | ||||
| 10mo ago | 1 | ||||
| 10mo ago | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| 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)
- \[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)
- \[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)
- \[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)
- \[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
- Added the entity type tags
#tntutils:deny_explosionsand#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_explosionsandtntutils.allow_explosionsto (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
/tagcommand. Notice the dot instead of a colon, since the argument to/tag addcannot 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
/explodecommand will now bypass thedisableExplosionsconfig option. - Added suggestion for the default explosion strength (4) to the '/explode' command.
- Added the entity type tags
#tntutils:deny_explosionsand#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_explosionsandtntutils.allow_explosionsto (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
/tagcommand. Notice the dot instead of a colon, since the argument to/tag addcannot 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
/explodecommand will now bypass thedisableExplosionsconfig option. - Added suggestion for the default explosion strength (4) to the '/explode' command.
- Added the entity type tags
#tntutils:deny_explosionsand#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_explosionsandtntutils.allow_explosionsto (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
/tagcommand. Notice the dot instead of a colon, since the argument to/tag addcannot 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
entityDamageMultiplierandknockbackMultiplier, which can be used to change the amount of damage and knockback applied to entities, respectively. - The
/explodecommand will now bypass thedisableExplosionsconfig option. - Added suggestion for the default explosion strength (4) to the '/explode' command.
- Added the entity type tags
#tntutils:deny_explosionsand#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_explosionsandtntutils.allow_explosionsto (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
/tagcommand. Notice the dot instead of a colon, since the argument to/tag addcannot 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
entityDamageMultiplierandknockbackMultiplier, which can be used to change the amount of damage and knockback applied to entities, respectively. - The
/explodecommand will now bypass thedisableExplosionsconfig option. - Added suggestion for the default explosion strength (4) to the '/explode' command.
- Added the entity type tags
#tntutils:deny_explosionsand#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_explosionsandtntutils.allow_explosionsto (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
/tagcommand. Notice the dot instead of a colon, since the argument to/tag addcannot 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
entityDamageMultiplierandknockbackMultiplier, which can be used to change the amount of damage and knockback applied to entities, respectively. - The
/explodecommand will now bypass thedisableExplosionsconfig option.
- Added the entity type tags
#tntutils:deny_explosionsand#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_explosionsandtntutils.allow_explosionsto (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
/tagcommand. Notice the dot instead of a colon, since the argument to/tag addcannot 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
entityDamageMultiplierandknockbackMultiplier, which can be used to change the amount of damage and knockback applied to entities, respectively. - The
/explodecommand will now bypass thedisableExplosionsconfig option.
And with that, Merry Christmas everyone!
And with that, Merry Christmas everyone!
- Added suggestion for the default explosion strength (4) to the '/explode' command
- Added suggestion for the default explosion strength (4) to the '/explode' command
- 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
- 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.
- 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.
- 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 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.
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).
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).
- 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
preventChainExplosionsis 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
- 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
preventChainExplosionsis 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