Lithium niobate (LiNbO3) nonlinear photonic crystals have been widely used in nonlinear wave front modulation for the π-phase difference between the second-harmonic (SH) waves from positive and negative domains. Aided by optimizing algorithms, we can control the diffraction patterns of SH vortex beams by designing nonlinear fork gratings with supercell structures in LiNbO3 crystals. In experiment, we demonstrate that the diffraction energies can be equally distributed in each order or concentrated on certain orders, in agreement with theoretical designs. Potential applications include controllable vortex beam generation, nondestructive parallel vortex detection, and so on.