In this study, we present the simulations and experimental observations of photonic jet (PJ) shaping by control of tangential electric field components at illuminating wavelengths of 405 nm, 532 nm, and 671 nm. The PJs are generated by a single dielectric 4-micrometer cube that was fabricated from polydimethylsiloxane (PDMS). The dielectric cube is deposited on a silicon substrate and placed on two aluminum masks with a width equal to the side length of the cube. Due to the appearance of the metal masks, the focal length and decay length of the generated PJs decreased almost twice, while the PJ resolution increased 1.2 times. Thus, PJ shaping can be controlled by the presence of the metal mask along the lateral surface of the cube without changing the external shape or internal structure of the cube. This effect is based on the control of the tangential components of the electric field along the lateral surface of the cube. In the case of a one-sided metal mask, the effect of optical deflection and bending is predicted to form a photonic hook. Due to the low cost of these dielectric cubes, they have potential in far-field systems to better meet the requirements of modern optical integration circuits and switches.