TNTUtils

TNTUtils

Mod

Provides various config options to control explosions

Server Game MechanicsUtility

33.1k downloads
6 followers
Follow Save

A small mod that provides some config options 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
  • 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 entities
  • 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.


Project members

ljfa-ag

Member

Details

Licensed MIT
Published 7 months ago
Updated a month ago