Where to put mods after installing mc-installer snap?

I installed Minecraft on Ubuntu 20.04 with sudo snap install mc-installer. I've also downloaded some mod .jar files, but there doesn't seem to be a "mods" folder within the installation – find ~/snap/mc-installer -name mods prints nothing. Where am I supposed to put the mods?

What I've tried based on suggestions from a couple websites:

  • ~/snap/minecraft/common
  • ~/snap/minecraft/common/mods
  • ~/snap/mc-installer/current/.minecraft/mods

I have made sure the directory and .jar files are owned by the same user as the rest of the package (as you'd expect).

Filed an issue with the package.


Solution 1:

First, just start unmodded Minecraft so that the .minecraft directory is instantiated, and locate it - it will probably appear in Snap's counterpart of ~/.minecraft; it's the per-user directory of the game, as opposed to system-wide. Then run the mod loader installer that matches the mods of your choice (Fabric, Forge etc), giving it the path to .minecraft, e.g.

java -jar fabric-installer.jar client -dir "~/Games/.minecraft"

This will, among others, create the respective .minecraft/mods dir, where you should drop all the mods.