#Multiple versions of a mod in the same mods folder

8 messages · Page 1 of 1 (latest)

winter blaze
#

Does Fabric allow you to have multiple versions of a mod in the same mods folder? I tried running multiple versions of create mod together as a test and it seemed to work, my mods folder looked like this:

mods/
├── create-fabric-0.5.1-j-build.1631+mc1.20.1.jar
└── create-fabric-0.5.1-j-build.1609+mc1.20.1.jar

I don't really understand why this worked, and some other mods end up crashing if there are multiple versions of it. Is there anyway to check if a mod is ok with having multiple versions of itself, somewhere in the fabric.mod.json maybe? I'm making a program that needs to read the jar files to extract this kind of data.

vital prism
#

loader will pick the latest

winter blaze
#

Ah ok, that makes sense

vital prism
#

you can check the logs, only one will appear

winter blaze
#

I did check the logs but I saw multiple fabric api versions and assumed it was loading all of them at the same time somehow

Mods:
  ...
  [✔️] fabric-api-0.86.1+1.20.1.jar
  [✔️] fabric-api-0.92.2+1.20.1.jar
  [✔️] fabric-api-0.92.5+1.20.1.jar
  ...

But yeah it does make sense that it just selects the latest, thank you so much!

vital prism
#

that looks like a prism log

#

you should look down in the log, there's another list of mods loaded

#

those are just mods in the folder