IImpactTnt

interface IImpactTnt(source)

A TNT, which can be configured to explode when collides (with blocks or other entities).

Properties

Link copied to clipboard
Data tracker for TNT's explodes on impact property.
Link copied to clipboard
val EXPLODES_ON_IMPACT_NBT_KEY: String = "ExplodesOnImpact"
NBT Key for TNT's explodes on impact property.

Functions

Link copied to clipboard
abstract fun explodeOnImpact(explode: Boolean)
Configures the current TNT to explode or not, when it collides.
Link copied to clipboard
abstract fun explodesOnImpact(): Boolean
Returns if the current TNT explodes, when it collides.