Groups IVB and VB transition-metal carbides (TMCs) have the same lattice structure but different preferred slip systems, of which group IVB TMCs favor ⟨110⟩{110} while group VB TMCs favor ⟨110⟩{111}. This distinction suggests that the mechanical properties of high-entropy carbide ceramics ${(\mathrm{HfTiZr})}_{1\ensuremath{-}x}{(\mathrm{NbTa})}_{x}\mathrm{C}$ can be designed by adjusting the concentration of different group metal elements to activate specific slip systems. In this work, we investigated the influence of the proportion and distribution of various metal atoms on mechanical behavior and slip systems using first-principles calculations. The results show that the mechanical properties of ${(\mathrm{HfTiZr})}_{1\ensuremath{-}x}{(\mathrm{NbTa})}_{x}\mathrm{C}$ near the equilibrium point follow the rule of mixture. However, their yield shear strength is influenced by the strength of the metal-C bond located on the slip plane, while the position of the slip plane is primarily determined by the unstable stacking fault energy. Moreover, dissociation on {111} slip plane occurs when $x\ensuremath{\ge}0.5$ (i.e., valence electron concentration $\ensuremath{\ge}8.5$ electrons per formula unit), suggesting the potential to shift the dominant ⟨110⟩{110} slip system of group IVB TMCs to the ⟨110⟩{111} slip system. By adjusting the proportion and distribution of different group metal atoms in ${(\mathrm{HfTiZr})}_{1\ensuremath{-}x}{(\mathrm{NbTa})}_{x}\mathrm{C}$, it is possible to customize the slip behavior and yield shear strength and plasticity.