A TNT explode and take damage on players and destroy a few blocks..... 1) How is this event called? 2) How I can Code this that only special blocks (for Exampel glass blocks) Will destroyed? Thanks Marcelo234
PHP: $e = new Explosion();$e->explodeA(); than you should handle EntityExplodeEvent and there you can add or remove affected blocks, and for entities handle EntityDamageEvent and cancel it if cause is explosion
But how to make that only the glass blocks will destroy? Maybe there is a function $event->GetDestroyedBlocks()???