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.
How to Install TNTUtils (Mod)
TNTUtils by ljfa-ag is verified for Fabric, Forge, Neoforge across Minecraft versions 1.12, 1.12.2, 1.20.1, 1.21.1, 1.21.10, 1.21.11, 1.21.7, 1.21.8 (latest release: 1.21.11-2.0.5, file size: 234 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.12, 1.12.2, 1.20.1, 1.21.1, 1.21.10, 1.21.11, 1.21.7, 1.21.8) and platform (Fabric, Forge, Neoforge).
- Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge.
- Move the downloaded TNTUtils file into your Minecraft
.minecraft/modsfolder and launch the game.
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 | ||||
| 4mo ago | 1 | ||||
| 4mo ago | 1 | ||||
| 8mo ago | 1 | ||||
| 8mo ago | 1 | ||||
| 10mo ago | 1 | ||||
| 10mo ago | 1 | ||||
| 10mo ago | 1 | ||||
| 10mo 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.