promotional bannermobile promotional banner

ModSorter

Sorts mods in different folders

A lightweight mod that automatically organizes Minecraft mods folder

ModSorter scans your mods, identifies them by their modId, and sorts them into subfolders according to a configurable database

Requires FFModSubfolders to discover mods stored in subfolders


Usage

Config

Overrides and replacement

  • useOverrides [true/false] - Whether to load custom entries from override.json
  • alwaysOverride [true/false] - Replaces an already installed mod if another JAR with the same modId is found
  • resort [true/false] - Resorts mods if destination changed

Folder management

  • deleteEmptyFolders [true/false] - Removes empty directories after sorting
  • deleteClientMods [true/false] - Deletes /client/ folder
  • deleteServerMods [true/false] - Deletes /server/ folder
  • deleteClientAndServerMods [true/false] - Deletes /client-server/ folder

Defragmentation

  • defragmentation [true/false] - Moves all JAR files from subfolders back into the root /mods/ folder
  • rewriteOnConflict [true/false] - Determines what happens when a file with the same name already exists in /mods/: replaces it if enabled, or adds a numbered suffix if disabled

Database

  • autoUpdateDatabase [true/false] - Automatically checks for and downloads database updates from GitHub
  • database [String] - URL of the database JSON file. Uses the default GitHub database if not specified
  • timeout [Integer] - HTTP request timeout in seconds

Misc

  • exitOnComplete [true/false] - Stops Minecraft when sorting completed

Sorting

ModSorter uses main.json to determine where each mod should be placed Example:

{
  "formatVersion" : 1,
  "databaseVersion" : 1,
  "mods" : {
    "prickle" : {
      "path" : "lib"
    },
    "reforged" : {
      "path" : "server/rpg"
    },
    "sliceanddice" : {
      "path" : "server/tech/create"
    }
  }
}

Each entry maps a mod's modId to a destination path relative to the mods directory

Custom Overrides

The default database is periodically updated. If you want to add your own rules or override existing entries, use override.json

It follows the same structure as main.json, but is stored separately and is never overwritten by automatic database updates

If you want to contribute new entries to the shared database, please open an issue on GitHub


Features

  1. Already sorted mods are moved if their configured destination changes
  2. When a new JAR with the same modId is detected, the old version can be replaced (alwaysOverride)
  3. You can host your own database and provide its URL in the configuration.
  4. Add or override entries without modifying the default database

Restrictions and Compatibility

Not every mod can be sorted into subfolders

Mods that rely on early-loading mechanisms may need to remain directly inside the root /mods/ directory. For example, some mods perform hardware detection or initialize transformation services before regular mod discovery

Launcher compatibility: Some launchers may not display mods stored in subfolders in their mod lists. ModSorter is particularly useful for dedicated servers and users who do not rely on their launcher's mod list to manage installed mods

Keep in mind that sorting does not guarantee compatibility between mods or prevent conflicts caused by other mods


Warning!

Backup your /mods/ folder if using folder-deleting (config)

ModSorter Team

profile avatar
  • 5
    Projects
  • 2.5K
    Downloads

Тут прочерк

More from classicAkkView all