Hey, I came across this thinking of blowing up obsidian with TNT. I did a code stealing from BlockHorizon's FactionsPE plugin, and tested the code. PHP: public function explodeInWater(EntityExplodeEvent $event) { $entity = $event->getEntity(); if (!$entity instanceof PrimedTNT) return; $center = $entity->getLevel()->getBlock($entity); if (!$center instanceof Liquid) return; $targets = []; for ($i = 0; $i <= 6; $i++) { $targets[] = $center->getSide($i); } foreach ($targets as $target) { $id = $target->getId(); if ($id != 0 && ($id < 7 || $id > 11) && $id != 49 && $id != 90 && $id != 116 && $id != 119 && $id != 120 && $id != 130) { // Break $target->getLevel()->setBlock($target, Block::get(0)); echo 'Hi'; } } }public function explosion(EntityExplodeEvent $event) { $entity = $event->getEntity(); if (!$entity instanceof PrimedTNT) return; $center = $entity->getLevel()->getBlock($entity); $targets = []; for ($i = 0; $i <= 6; $i++) { $targets[] = $center->getSide($i); } foreach ($targets as $target) { if ($target->getId() === 49) { $target->getLevel()->setBlock($target, Block::get(0)); echo 'Hi'; } } } However, the code isn't working. What could be the problem?