Get started

Loafmas Up to 80% off your first payment, with the code added to your order for you See the codes Codes for the Loafmas sale

Guides / Minecraft / Fixes

Fix a mod missing a dependency or present twice

The log names the mod that needs another mod, or the mod in two files. Install what it names, or remove the extra file, then start the server again.

Updated , checked on Minecraft Java 26.3

When a mod needs another mod that is not there, the server stops while it starts, and the log names both. Install the mod the log names, at the version it asks for, or remove the mod that asked. When the same mod sits in mods twice, the log says it is present in multiple files. Turn off or remove the extra copy.

A dependency is a mod that another mod needs in order to load.

Read what the log says

  1. Open Crashes. A missing mod shows as Mods are missing a dependency or need a different version. The page prints the exact lines that matched, up to eight. The panel’s advice there is to install the mods named in those lines, or the versions they ask for. With a modpack, it says to reinstall the pack rather than single mods.
  2. No issue listed? Open the Console and read the first error lines.

On NeoForge 1.21.1 the lines look like these:

  • Mod X requires Y (version range). Currently, Y is (not installed): a dependency is missing or the wrong version.
  • Mod X is incompatible with Y: two mods that cannot run together.
  • Mod X is present in multiple files: the same mod twice.
  • File X is not a jar file: something in mods that is not a mod, for example a partial upload.

Forge 1.20.x words the first one as Mod X requires Y. Other loaders use their own words. The Crashes page looks for phrases such as requires version, depends on, unknown dependency and which is missing!. A mod built for another Minecraft version or loader is not named as a cause there, so read the lines yourself.

Find the cause and fix it

  1. You added a mod that needs another. Open Add-ons, then Mods, and install the mod the log names. Use the same loader and version as the server. If you would rather not, remove the mod you added. See add mods to a modpack.
  2. You turned off or removed a mod of the pack. The pack’s other mods may need it. Under Manage all, filter by Other files and press Turn on. If you removed it, install the same pack version again from the same source you installed it from; the panel treats it as an update, and your added mods stay. An update fetches every file of the new version, so a pack mod you turned off or removed can come back. After an update, open the Mods tab, filter Other files, and check. If the plan says the files in the mods folder are replaced and Start a new world is ticked, it is not an update: press Cancel and use the other source button.
  3. The pack could not fetch a file. Installed modpack lists it. See files the panel cannot fetch.
  4. The log asks for another version. Install the version in the line’s version range, or a build for your Minecraft version.
  5. The same mod is in two files. Open Manage all, search the mod’s name and look at both files. Turn off the one you added, or the older one. Turn off renames the file to end in .disabled, which the server skips, and you can turn it back on. Remove deletes it. Installed here lists what you added. Other files lists the pack’s own.
  6. A file is not a jar. Remove it from mods in Files. If it was your upload, upload the real .jar again.

Fix every line the log shows, then start the server. A new line can appear once the first is fixed.

Go back

Did it start failing right after a pack install or update? Roll back restores the backup taken before it, and leaves the server offline until you press Start. See roll back a modpack.

If it does not work

  • The same error comes back. You uploaded a build for another Minecraft version or loader. Read the version range in the line again.
  • Two files remain after you removed one. Search again in Manage all. A file can have a longer name than you typed.
  • A different error appears. A mod made for players’ screens only can stop a server. See client-only mod crash.
  • Nothing shows in Crashes. Read the Console. The page reads crash reports and log files, and a message it does not know is shown as recent output only.

More on the game: Minecraft servers.

Sources: raw.githubusercontent.com: En us.json, raw.githubusercontent.com: En us.json, raw.githubusercontent.com: En us.json

Minecraft server hostingAll Minecraft guides