You can modify TNT explosion & placing behavior with this module. Destruction of terrain can be easily disabled with the blockdamage element. If it is set to false
the yield element will have no effect since there won’t be any block drops. TNT damage can be further limited with the disable damage module.
By default dispensers containing TNT will ignite their TNT when exploded. This behavior can be customized with the <dispenser-tnt-limit>
and <dispenser-tnt-multiplier>
elements, setting either of these to 0 will disable it.
If licensing is enabled only players with a TNT license can use TNT. This license is revoked if a player kills too many of their teammates using TNT.
Element | Description | ||
---|---|---|---|
<tnt> </tnt>
|
Node containing the custom TNT settings. | ||
Sub-elements | Value | Default | |
<instantignite>
|
Instantly ignite TNT when placed. | true/false | false |
<blockdamage>
|
Specify if TNT destroys the terrain. | true/false | true |
<yield>
|
Modify the amount of items dropped by the explosion as a percentage. Not valid when blockdamage is false.
|
0 - 1.0 | |
<power>
|
Modify the explosions block radius. | 0 - 20.0 | |
<fuse>
|
Time till the TNT explodes once it is ignited. | Time Period | |
<dispenser-tnt-limit>
|
Max amount of TNT a dispenser ignites when exploded. | 0 - 64 | 16 |
<dispenser-tnt-multiplier>
|
Multiplier for the amount of TNT ignited when a dispenser is exploded. | 0 - 2.0 | 0.25 |
<licensing>
|
TNT usage is restricted to players who are licensed. | true/false | true |
<friendly-defuse>
|
Players may defuse TNT placed by their teammates. | true/false | true |
Examples
<tnt>
<instantignite>on</instantignite>
<fuse>2s</fuse>
</tnt>
<tnt>
<dispenser-tnt-limit>8</dispenser-tnt-limit>
<dispenser-tnt-multiplier>1</dispenser-tnt-multiplier>
</tnt>