The message
Skipping jar. File mods/sodium-fabric-0.6.13+mc1.21.1.jar is a Fabric mod and cannot be loaded
File mods/jei-1.20.1-forge-15.20.0.106.jar is for Minecraft Forge or an older version of NeoForge, and cannot be loaded
File mods/example.jar is not a valid mod fileThe full message is in the game folder: logs/latest.log for every start, and crash-reports/ for crashes that got far enough to write a report. In Prism, CurseForge and the Modrinth App, the instance's folder button opens the game folder.
What it means
Fabric, Quilt, Forge and NeoForge load different kinds of files. A mod's page usually has a separate download for each loader it supports, and the file for one does not run on another.
NeoForge says it directly: “is a Fabric mod and cannot be loaded”, “is a Quilt mod”, “is for Minecraft Forge or an older version of NeoForge”. These lines are warnings, so the game goes on and later fails on a missing dependency instead.
Fabric skips files without Fabric metadata silently: the mod just does not appear. Quilt can load most Fabric mods, but not Forge or NeoForge ones.
A line that says a file in libraries/ “is missing mods.toml” is normal on old Forge versions and harmless. Only files in the mods folder matter here.
How to fix it
- 1Find “cannot be loaded”, “Skipping jar” or “is not a valid mod file” lines in logs/latest.log, and note the file names.
- 2Open each mod's page on Modrinth or CurseForge and download the file for your loader and Minecraft version. Modrinth shows the loader on every file; CurseForge lists it under the file's game versions.
- 3If the mod does not exist for your loader, look for a counterpart: Sodium has Embeddium on old Forge, Iris has Oculus, and many mods have a port with another name.
- 4Delete the wrong files from the mods folder.
- 5If “is not a valid mod file” names a mod, the download may be broken. Download it again.
With Packquill
Packquill only offers versions made for the instance's loader and Minecraft version, so a wrong-loader file does not come in through it. When a mod file cannot be read as a mod, it names the file.
Packquill is free for Windows and Linux. It backs up every change, so anything it does can be undone.
Questions
Can I run Fabric mods on Forge?
Only through Sinytra Connector, on some Minecraft versions, and not every mod works through it. It is safer to use each mod's Forge or NeoForge file.
Is a Forge mod the same as a NeoForge mod?
On Minecraft 1.20.1, NeoForge loads most Forge mods. From 1.20.2 on, they are separate and each needs its own file.