Zarius / Bukkit-OtherBlocks

OtherBlocks (now known as OtherDrops) plugin for Bukkit (dev build: https://www.mediafire.com/?i6ows1g6kus2o0l)
http://dev.bukkit.org/server-mods/otherdrops/
GNU General Public License v3.0
17 stars 17 forks source link

Support Explosion-related Events #343

Open stvncao5 opened 9 years ago

stvncao5 commented 9 years ago

Two new condition-parameters should be supported for handling explosion-related events. The events are when an entity becomes primed (as in the case when block-TNT becomes the primed-TNT entity, and when a creeper activates its charging sequence) and when an entity generates an explosion (as in the case of primed-TNT or a charged-creeper actually exploding).

An example of what can be done with support for the "entity priming event" would be either canceling the explosion (by making the entity get replaced by nothing) or causing the explosion to happen instantly with custom parameters (like make a huge fiery explosion from a creeper).

An example of what can be done with support for the "entity explosion event" would be dropping items after exploding (or adding a delay to the drop since explosions destroy item drops).