if(e.getEntityType() == EntityType.EGG){
BlockIterator iterator = new BlockIterator(e.getEntity().getWorld(), e.getEntity().getLocation().toVector(), e.getEntity().getVelocity().normalize(), 0.0D, 4);
Block hitBlock = null;
while (iterator.hasNext()) {
hitBlock = iterator.next();
if (hitBlock.getTypeId() != 0) {
break;
}
}
if (hitBlock.getType() == Material.TNT) {
hitBlock.getWorld().playEffect(hitBlock.getLocation(), Effect.STEP_SOUND, hitBlock.getTypeId());
hitBlock.getWorld().createExplosion(e.getEntity().getLocation().getX(), e.getEntity().getLocation().getY(),e.getEntity().getLocation().getZ(), 3F, false, true);
Location en2 = e.getEntity().getLocation();
PlayEffect.play(VisualEffect.EXPLOSION, en2, "offset:0.5 num:20");
}else
hitBlock.getWorld().playEffect(hitBlock.getLocation(), Effect.STEP_SOUND, hitBlock.getTypeId());
hitBlock.setType(Material.AIR); //здесь мне надо добавить радиус.
Location en = e.getEntity().getLocation();
PlayEffect.play(VisualEffect.SPELL, en, "num:60 offset:0.3");
PlayEffect.play(VisualEffect.EXPLOSION, en, "offset:0.2 num:10");
PlayEffect.play(VisualEffect.SOUND, en, "type:ANVIL_LAND volume:1 pitch:1");