Reduce the amount of water used in the recipe or cook the rice for a shorter duration to achieve a firmer texture.