How to have seperate .minecraft directories?

To set separate directories for Minecraft on the latest launcher, you can go to the Installations tab in the launcher, double-click the one with the hacked client, and change the game directory entry to whatever you want. To do this with a graphical file manager, you can use the browse button to bring up Finder, File Explorer, or Nautilus so you can manually select the appropriate folder.